From 32ebbc92ecf7e28355a65e41f44d5e9bd3000c18 Mon Sep 17 00:00:00 2001 From: Igor Veresov Date: Tue, 5 Oct 2010 00:19:21 -0700 Subject: [PATCH] 6989368: Regression in scimark2.MonteCarlo in jdk7_b112 on Linux Fix ciMethod::instructions_size() to return correct value Reviewed-by: kvn, twisti --- hotspot/src/share/vm/ci/ciMethod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/src/share/vm/ci/ciMethod.cpp b/hotspot/src/share/vm/ci/ciMethod.cpp index 7190af55e85..9d12b27f110 100644 --- a/hotspot/src/share/vm/ci/ciMethod.cpp +++ b/hotspot/src/share/vm/ci/ciMethod.cpp @@ -979,7 +979,7 @@ int ciMethod::instructions_size(int comp_level) { GUARDED_VM_ENTRY( nmethod* code = get_methodOop()->code(); if (code != NULL && (comp_level == CompLevel_any || comp_level == code->comp_level())) { - return code->code_end() - code->verified_entry_point(); + return code->insts_end() - code->verified_entry_point(); } return 0; )