-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
None
-
Affects Version/s: repo-panama
-
Component/s: core-libs
A sequence layout can be created using a -1 element count, which means the element count is _inferred_, by dividing Long.MAX_VALUE with the byte size of the sequence element layout.
It would be better if, instead of using a negative index, we would just use an overloaded index-less factory, as this feature has hidden bugs in the past (e.g. where a negative index was accidentally passed to the wrong API).
It would be better if, instead of using a negative index, we would just use an overloaded index-less factory, as this feature has hidden bugs in the past (e.g. where a negative index was accidentally passed to the wrong API).
- relates to
-
CODETOOLS-7903253 sync jextract tests for sequence layout factory split
-
- Resolved
-
-
JDK-8291826 Rework MemoryLayout Sealed Hierarchy
-
- Resolved
-