-
Enhancement
-
Resolution: Unresolved
-
P3
-
repo-valhalla
Unsafe.compareAndSetFlatValueAsBytes is slow, due to:
1. Array var handles must specialize and hold layout as a constant for C2
2. Need minimum arrayLayout0 and newSpecialArray C2 intrinsics for hot compareAndSetFlatValueAsBytes
Old:
This issue's purpose is to keep track of a potential performance regression introduced withJDK-8351569 (and discovered while investigating JDK-8343420). JDK-8351569 introduced a new overloaded version of Unsafe::getAndSet that is not intrinsified (which is used by e.g. VarHandle::getAndSet). We should evaluate how much of a performance impact this can have and potentially intrinsify it or make it call the intrinsified version.
1. Array var handles must specialize and hold layout as a constant for C2
2. Need minimum arrayLayout0 and newSpecialArray C2 intrinsics for hot compareAndSetFlatValueAsBytes
Old:
This issue's purpose is to keep track of a potential performance regression introduced with
- causes
-
JDK-8367346 [lworld] VarHandleTestMethodHandleAccessValue.java fails with a timeout
-
- Open
-
- relates to
-
JDK-8351569 [lworld] Revisit atomic access modes in flat var handles
-
- Resolved
-
-
JDK-8343420 [lworld] compiler/gcbarriers/TestG1BarrierGeneration.java after merging JDK-8334060 in jdk-24+18
-
- Resolved
-