8004318: JEP-171: Support Unsafe fences intrinsics

Add three memory-ordering intrinsics to the sun.misc.Unsafe class.

Reviewed-by: twisti, kvn
This commit is contained in:
Aleksey Shipilev 2012-12-18 17:37:44 -08:00 committed by Vladimir Kozlov
parent 52da261983
commit 4c293ebcd6
5 changed files with 70 additions and 0 deletions

View file

@ -3442,6 +3442,11 @@ bool GraphBuilder::try_inline_intrinsics(ciMethod* callee) {
preserves_state = true;
break;
case vmIntrinsics::_loadFence :
case vmIntrinsics::_storeFence:
case vmIntrinsics::_fullFence :
break;
default : return false; // do not inline
}
// create intrinsic node