Blocks :
|
|
Relates :
|
|
Relates :
|
working on JDK-8134102 I've slightly improved hotspot/test/compiler/unsafe/UnsafeGetConstantField.java test: now it also checks that even if field's value is changed, testDirect and testUnsafe return the previous value. those changes revealed that Unsafe.getCharUnaligned() loads for @Stable and final fields aren't folded in case JVM is started w/ -XX:-UseUnalignedAccesses
|