8252990: Intrinsify Unsafe.storeStoreFence

Reviewed-by: dholmes, thartmann, whuang
This commit is contained in:
Aleksey Shipilev 2021-11-02 10:26:21 +00:00
parent 92be9d8c53
commit b7a06be98d
16 changed files with 33 additions and 6 deletions

View file

@ -3441,16 +3441,14 @@ public final class Unsafe {
* Ensures that stores before the fence will not be reordered with
* stores after the fence.
*
* @implNote
* This method is operationally equivalent to {@link #storeFence()}.
*
* @since 9
*/
@IntrinsicCandidate
public final void storeStoreFence() {
// If storeStoreFence intrinsic is not available, fall back to storeFence.
storeFence();
}
/**
* Throws IllegalAccessError; for use by the VM for access control
* error support.