-
Bug
-
Resolution: Fixed
-
P3
-
14
-
b32
-
x86, arm
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8237034 | 15 | Nick Gasson | P3 | Resolved | Fixed | b06 |
JDK-8237436 | 14.0.1 | Unassigned | P3 | Resolved | Fixed | b01 |
--------
libNativeAccess.c has some build warnings due to casting from a 32-bit pointer to a 64-bit signed jlong:
/home/nicgas01/jdk/test/jdk/java/foreign/libNativeAccess.c: In function 'Java_TestNative_getByteRaw':
/home/nicgas01/jdk/test/jdk/java/foreign/libNativeAccess.c:30:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
jbyte *arr = (jbyte*)addr;
------
java/foreign/TestArrays.java testTooBigForArray() crashes the VM because it tries to allocate a Integer.MAX_VALUE * 2 byte buffer. When this is aligned up to HeapWordSize it overflows a 32-bit size_t.
# Java VM: OpenJDK Server VM (fastdebug 15-internal+0-adhoc.nicgas01.jdk, mixed mode, sharing, g1 gc, linux-arm)
# Problematic frame:
# V [libjvm.so+0x4b5926] Copy::fill_to_memory_atomic(void*, unsigned int, unsigned char)+0xc
------
java/foreign/TestByteBuffer.java fails on 32-bit Arm due to unaligned accesses.
test TestByteBuffer.testResizeRoundtripHeap(TestByteBuffer$$Lambda$69/0xd1ae9438@151acc1, TestByteBuffer$$Lambda$62/0xd1a9a638@1296ffe, [100:B64]): failure
java.lang.IllegalStateException: Misaligned access at address: 12
- backported by
-
JDK-8237034 Memory Access API tests fail on 32-bit
- Resolved
-
JDK-8237436 Memory Access API tests fail on 32-bit
- Resolved
- duplicates
-
JDK-8236939 [TESTBUG] Incorrect initialization in java/foreign/TestArrays.java
- Closed
-
JDK-8236920 32-bit build failures in libNativeAccess.c
- Closed
- relates to
-
JDK-8300942 JDK-8299684 breaks x86 build
- Resolved
-
JDK-8236920 32-bit build failures in libNativeAccess.c
- Closed
-
JDK-8245722 32-bit build failures after JDK-8243491
- Resolved
-
JDK-8237521 Memory Access API fixes for 32-bit
- Resolved