-
Enhancement
-
Resolution: Duplicate
-
P3
-
None
-
21
When the <init> method writes both a final and stable field, c2 emits a barrier for each. The performance difference can be seen in microbenchmarks such as org.openjdk.bench.java.lang.StringBuffers.substring on aarch64 hardware.
- duplicates
-
JDK-8333791 Fix memory barriers for @Stable fields
- Resolved
- relates to
-
JDK-8300148 Consider using a StoreStore barrier instead of Release barrier on ctor exit
- Resolved
-
JDK-8031818 Experimental VM flag for enforcing safe object construction
- Resolved