Some unsafe methods, like objectFieldOffset0 and staticFieldBase0, throw unspecified IAE that has been relied on by Platform APIs like AtomicIntegerFieldUpdater. We should note these in Unsafe.
objectFieldOffset1 does not properly filter static fields; this patch trivially adds that.
staticFieldBase and staticFieldOffset currently throw NoClassDefFoundError when it tries to throw a java/lang/InvalidClassException (there's one in java.io). Since they are exposed in sun.misc.Unsafe, we will preserve this behavior for now.
objectFieldOffset1 does not properly filter static fields; this patch trivially adds that.
staticFieldBase and staticFieldOffset currently throw NoClassDefFoundError when it tries to throw a java/lang/InvalidClassException (there's one in java.io). Since they are exposed in sun.misc.Unsafe, we will preserve this behavior for now.
- relates to
-
JDK-8360541 AtomicXXXFieldUpdater.newUpdater does not specify IllegalArgumentException when field is a static field
-
- Open
-
- links to
-
Review(master) openjdk/jdk/25945