mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8152698: Remove obsolete Unsafe.putOrdered{X} methods, usages, runtime and compiler support
Reviewed-by: kvn, psandoz
This commit is contained in:
parent
752d1b46bb
commit
d8f23ea33b
26 changed files with 32 additions and 85 deletions
|
@ -135,6 +135,7 @@ public class SunMiscUnsafeAccessTestObject {
|
|||
}
|
||||
|
||||
|
||||
|
||||
UNSAFE.putObject(base, offset, "foo");
|
||||
|
||||
// Compare
|
||||
|
@ -152,6 +153,7 @@ public class SunMiscUnsafeAccessTestObject {
|
|||
assertEquals(x, "bar", "failing compareAndSwap Object value");
|
||||
}
|
||||
|
||||
|
||||
// Compare set and get
|
||||
{
|
||||
Object o = UNSAFE.getAndSetObject(base, offset, "foo");
|
||||
|
@ -163,3 +165,4 @@ public class SunMiscUnsafeAccessTestObject {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue