VarHandle directly.@Deprecated(since="22.1.0") public final class MemoryFence extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
acquire()
Deprecated.
Ensures that loads before the fence will not be reordered with loads and stores after the
fence.
|
static void |
full()
Deprecated.
Ensures that loads and stores before the fence will not be reordered with loads and stores
after the fence.
|
static void |
loadLoad()
Deprecated.
Ensures that loads before the fence will not be reordered with loads after the fence.
|
static void |
release()
Deprecated.
Ensures that loads and stores before the fence will not be reordered with stores after the
fence.
|
static void |
storeStore()
Deprecated.
Ensures that stores before the fence will not be reordered with stores after the fence.
|
public static void full()
public static void acquire()
public static void release()
public static void loadLoad()
public static void storeStore()