Loading... (original) (raw)

JDK-8176506

changed the unsafe access logic to be much more conservative for accesses that are not known to be on or off heap. Using profiling of arguments of Unsafe.put* and Unsafe.get*, C2 can often speculate whether an access is on heap or off heap. Better code generation of loops of unsafe accesses should compensate the cost of the extra null check/assert.

relates to

Bug - A problem which impairs or prevents the functions of the product. JDK-8198950 AArch64: org.openjdk.jcstress.tests.varhandles.DekkerTest fails

Bug - A problem which impairs or prevents the functions of the product. JDK-8224182 [Performance] sun.misc.Unsafe.[put|get]* suffer from redundant memory barriers

Enhancement - null JDK-8226409 Enable argument profiling for sun.misc.Unsafe.put*/get*