diff options
author | roland <none@none> | 2011-08-02 18:36:40 +0200 |
---|---|---|
committer | roland <none@none> | 2011-08-02 18:36:40 +0200 |
commit | 46fee832bd4de8d0ed07d498baa9c16ab826a095 (patch) | |
tree | 77388ecac4e13ad3c9088baf3bed10769aa11f6c /src/share/vm/opto/graphKit.cpp | |
parent | 4de5a395b32581820539e4904e146a0769d854a4 (diff) |
7074017: Introduce MemBarAcquireLock/MemBarReleaseLock nodes for monitor enter/exit code paths
Summary: replace MemBarAcquire/MemBarRelease nodes on the monitor enter/exit code paths with new MemBarAcquireLock/MemBarReleaseLock nodes
Reviewed-by: kvn, twisti
Diffstat (limited to 'src/share/vm/opto/graphKit.cpp')
-rw-r--r-- | src/share/vm/opto/graphKit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/vm/opto/graphKit.cpp b/src/share/vm/opto/graphKit.cpp index db6125896..49717298a 100644 --- a/src/share/vm/opto/graphKit.cpp +++ b/src/share/vm/opto/graphKit.cpp @@ -2856,7 +2856,7 @@ FastLockNode* GraphKit::shared_lock(Node* obj) { // lock has no side-effects, sets few values set_predefined_output_for_runtime_call(lock, mem, TypeRawPtr::BOTTOM); - insert_mem_bar(Op_MemBarAcquire); + insert_mem_bar(Op_MemBarAcquireLock); // Add this to the worklist so that the lock can be eliminated record_for_igvn(lock); @@ -2889,7 +2889,7 @@ void GraphKit::shared_unlock(Node* box, Node* obj) { } // Memory barrier to avoid floating things down past the locked region - insert_mem_bar(Op_MemBarRelease); + insert_mem_bar(Op_MemBarReleaseLock); const TypeFunc *tf = OptoRuntime::complete_monitor_exit_Type(); UnlockNode *unlock = new (C, tf->domain()->cnt()) UnlockNode(C, tf); |