Relates :
|
|
Relates :
|
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.
|