Mercurial > hg > graal-compiler
comparison src/share/vm/c1/c1_LIRGenerator.cpp @ 7425:1e41b0bc58a0
8004318: JEP-171: Support Unsafe fences intrinsics
Summary: Add three memory-ordering intrinsics to the sun.misc.Unsafe class.
Reviewed-by: twisti, kvn
Contributed-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
author | kvn |
---|---|
date | Tue, 18 Dec 2012 17:37:44 -0800 |
parents | 8e47bac5643a |
children | 989155e2d07a db9981fd3124 |
comparison
equal
deleted
inserted
replaced
7424:c4bd2eccea46 | 7425:1e41b0bc58a0 |
---|---|
2975 break; | 2975 break; |
2976 case vmIntrinsics::_compareAndSwapLong: | 2976 case vmIntrinsics::_compareAndSwapLong: |
2977 do_CompareAndSwap(x, longType); | 2977 do_CompareAndSwap(x, longType); |
2978 break; | 2978 break; |
2979 | 2979 |
2980 case vmIntrinsics::_loadFence : | |
2981 if (os::is_MP()) __ membar_acquire(); | |
2982 break; | |
2983 case vmIntrinsics::_storeFence: | |
2984 if (os::is_MP()) __ membar_release(); | |
2985 break; | |
2986 case vmIntrinsics::_fullFence : | |
2987 if (os::is_MP()) __ membar(); | |
2988 break; | |
2989 | |
2980 case vmIntrinsics::_Reference_get: | 2990 case vmIntrinsics::_Reference_get: |
2981 do_Reference_get(x); | 2991 do_Reference_get(x); |
2982 break; | 2992 break; |
2983 | 2993 |
2984 default: ShouldNotReachHere(); break; | 2994 default: ShouldNotReachHere(); break; |