-
Enhancement
-
Resolution: Fixed
-
P3
-
9
-
b114
With VarHandles, we have the full set of U.put{X}Release methods, which do exactly the same thing as Unsafe.putOrdered{X}. It prompts the cleanup: remove putOrdered methods from jdk.internal.misc.Unsafe.java, remove entries from unsafe.cpp, purge associated vmSymbols, and cleanup compiler code.
The only thing left would be sun.misc.Unsafe.putOrdered{X}, which we cannot yet remove, but we can delegate them to jdk.internal.misc.Unsafe.put{X}Release all the same.
The only thing left would be sun.misc.Unsafe.putOrdered{X}, which we cannot yet remove, but we can delegate them to jdk.internal.misc.Unsafe.put{X}Release all the same.