changeset 1753:3f9a70eb8b1f

6989368: Regression in scimark2.MonteCarlo in jdk7_b112 on Linux Summary: Fix ciMethod::instructions_size() to return correct value Reviewed-by: kvn, twisti
author iveresov
date Tue, 05 Oct 2010 00:19:21 -0700
parents 52e82a6bedaf
children fe08403130db
files src/share/vm/ci/ciMethod.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/ci/ciMethod.cpp	Mon Oct 04 17:09:18 2010 -0700
+++ b/src/share/vm/ci/ciMethod.cpp	Tue Oct 05 00:19:21 2010 -0700
@@ -979,7 +979,7 @@
   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;
   )