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
those changes revealed that Unsafe.getCharUnaligned() loads for @Stable and final fields aren't folded in case JVM is started w/ -XX:-UseUnalignedAccesses
- blocks
- 
                    JDK-8149844 Update test/compiler/unsafe/UnsafeGetConstantField.java once JDK-8148518 and Jake are integrated -           
- Closed
 
-         
- relates to
- 
                    JDK-8078629 VM should constant fold Unsafe.get*() loads from final fields -           
- Resolved
 
-         
- 
                    JDK-8156124 Update compiler/unsafe/UnsafeGetConstantField after JDK-8148518 is fixed -           
- Resolved
 
-