1.1 --- a/src/share/vm/opto/graphKit.cpp Mon Aug 08 13:19:46 2011 -0700 1.2 +++ b/src/share/vm/opto/graphKit.cpp Tue Aug 02 18:36:40 2011 +0200 1.3 @@ -2856,7 +2856,7 @@ 1.4 // lock has no side-effects, sets few values 1.5 set_predefined_output_for_runtime_call(lock, mem, TypeRawPtr::BOTTOM); 1.6 1.7 - insert_mem_bar(Op_MemBarAcquire); 1.8 + insert_mem_bar(Op_MemBarAcquireLock); 1.9 1.10 // Add this to the worklist so that the lock can be eliminated 1.11 record_for_igvn(lock); 1.12 @@ -2889,7 +2889,7 @@ 1.13 } 1.14 1.15 // Memory barrier to avoid floating things down past the locked region 1.16 - insert_mem_bar(Op_MemBarRelease); 1.17 + insert_mem_bar(Op_MemBarReleaseLock); 1.18 1.19 const TypeFunc *tf = OptoRuntime::complete_monitor_exit_Type(); 1.20 UnlockNode *unlock = new (C, tf->domain()->cnt()) UnlockNode(C, tf);