mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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
|
@ -164,6 +164,7 @@ public class SunMiscUnsafeAccessTestInt {
|
|||
}
|
||||
|
||||
|
||||
|
||||
UNSAFE.putInt(base, offset, 1);
|
||||
|
||||
// Compare
|
||||
|
@ -181,6 +182,7 @@ public class SunMiscUnsafeAccessTestInt {
|
|||
assertEquals(x, 2, "failing compareAndSwap int value");
|
||||
}
|
||||
|
||||
|
||||
// Compare set and get
|
||||
{
|
||||
int o = UNSAFE.getAndSetInt(base, offset, 1);
|
||||
|
@ -209,3 +211,4 @@ public class SunMiscUnsafeAccessTestInt {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue