Unsafe.newSpecialArray is creating an array out of a field layout code for binary equivalence comparison. This is currently an opaque token to Unsafe.compareAndSetFlatValueAsBytes, that memory access to the resulting array cannot be understood by C2. C2 should recognize the arrays produced by this API (given the class and layout are constant) and inline and constant fold the cas routines.
- relates to
-
JDK-8357245 [lworld] Improve performance of Flat array var handles
-
- Open
-
-
JDK-8369835 [lworld] Intrinsify new instance-accepting array unsafe operations
-
- Resolved
-
-
JDK-8372362 [lworld] VarHandle performance might need an investigation
-
- New
-