6989368: Regression in scimark2.MonteCarlo in jdk7_b112 on Linux
Summary: Fix ciMethod::instructions_size() to return correct value
Reviewed-by: kvn, twisti
--- 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;
)