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

Memory Access API fixes for 32-bit

XMLWordPrintable

    • b09
    • x86, arm
    • linux

      Two issues:

      The MAX_ALIGN constant in Utils.java should be 8 on 32-bit systems not 16.

      Unsafe::allocateMemory, which is called by Utils::makeNativeSegment, should fail if the aligned-up size overflows a size_t. This happens if passing size (long)Integer.MAX_VALUE * 2 on a 32-bit system.

      Once these are fixed we can remove the test workarounds in JDK-8236634.

            ngasson Nick Gasson
            ngasson Nick Gasson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: