--- a/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp Wed Sep 29 18:53:28 2010 +0200
+++ b/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp Wed Sep 29 16:53:42 2010 -0700
@@ -2309,7 +2309,7 @@
// increment invocation counters if needed
if (!method()->is_accessor()) { // Accessors do not have MDOs, so no counting.
- CodeEmitInfo* info = new CodeEmitInfo(scope()->start()->state(), NULL);
+ CodeEmitInfo* info = new CodeEmitInfo(scope()->start()->state()->copy(ValueStack::StateBefore, SynchronizationEntryBCI), NULL);
increment_invocation_counter(info);
}