Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8292038

Split factories to create sequence layouts

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • repo-panama
    • 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).

            pminborg Per-Ake Minborg
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: