mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8252990: Intrinsify Unsafe.storeStoreFence
Reviewed-by: dholmes, thartmann, whuang
This commit is contained in:
parent
92be9d8c53
commit
b7a06be98d
16 changed files with 33 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue