Since arrays are now polymorphic, it would be helpful if core libraries can access properties of arrays to classify them quickly. Here are some desired APIs in Unsafe:
1. arrayLayout0 - the actual type of array (combined with class)
2. arrayInstanceBaseOffset0 - the offset from the flat/refArrayKlass
3. arrayInstanceIndexScale0 - the scale from the flat/refArrayKlass
These were introduced byJDK-8368933 (and renamed by JDK-8368933).
1. arrayLayout0 - the actual type of array (combined with class)
2. arrayInstanceBaseOffset0 - the offset from the flat/refArrayKlass
3. arrayInstanceIndexScale0 - the scale from the flat/refArrayKlass
These were introduced by
- blocks
-
JDK-8357245 [lworld] Improve performance of Flat array var handles
-
- Open
-
- duplicates
-
JDK-8369866 [lworld] Intrinsify new unsafe methods added by JDK-8369835
-
- Closed
-
- relates to
-
JDK-8366705 [lworld] Re-work of arrays meta-data
-
- Resolved
-