8327729: Remove deprecated xxxObject methods from jdk.internal.misc.Unsafe

Reviewed-by: martin, alanb, mchung
This commit is contained in:
Eirik Bjørsnøs 2024-03-12 17:37:48 +00:00
parent 313e814bc9
commit 5b41466275
4 changed files with 7 additions and 94 deletions

View file

@ -61,7 +61,7 @@ public class BufferedInputStream extends FilterInputStream {
/**
* As this class is used early during bootstrap, it's motivated to use
* Unsafe.compareAndSetObject instead of AtomicReferenceFieldUpdater
* Unsafe.compareAndSetReference instead of AtomicReferenceFieldUpdater
* (or VarHandles) to reduce dependencies and improve startup time.
*/
private static final Unsafe U = Unsafe.getUnsafe();