6989368: Regression in scimark2.MonteCarlo in jdk7_b112 on Linux
authoriveresov
Tue, 05 Oct 2010 00:19:21 -0700
changeset 6754 ab3f0dd8fe9f
parent 6753 74ad1f54eab7
child 6755 58237fa09b63
6989368: Regression in scimark2.MonteCarlo in jdk7_b112 on Linux Summary: Fix ciMethod::instructions_size() to return correct value Reviewed-by: kvn, twisti
hotspot/src/share/vm/ci/ciMethod.cpp
--- a/hotspot/src/share/vm/ci/ciMethod.cpp	Mon Oct 04 17:09:18 2010 -0700
+++ b/hotspot/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;
   )