Description
$ CONF=linux-x86-server-fastdebug make all-images
...
/home/shade/trunks/jdk-jdk/test/jdk/java/foreign/libNativeAccess.c: In function 'Java_TestNative_allocate':
/home/shade/trunks/jdk-jdk/test/jdk/java/foreign/libNativeAccess.c:121:12: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
return (jlong)malloc(size);
^
/home/shade/trunks/jdk-jdk/test/jdk/java/foreign/libNativeAccess.c: In function 'Java_TestNative_free':
/home/shade/trunks/jdk-jdk/test/jdk/java/foreign/libNativeAccess.c:126:10: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
free((void*) ptr);
^
cc1: all warnings being treated as errors
...
/home/shade/trunks/jdk-jdk/test/jdk/java/foreign/libNativeAccess.c: In function 'Java_TestNative_allocate':
/home/shade/trunks/jdk-jdk/test/jdk/java/foreign/libNativeAccess.c:121:12: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
return (jlong)malloc(size);
^
/home/shade/trunks/jdk-jdk/test/jdk/java/foreign/libNativeAccess.c: In function 'Java_TestNative_free':
/home/shade/trunks/jdk-jdk/test/jdk/java/foreign/libNativeAccess.c:126:10: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
free((void*) ptr);
^
cc1: all warnings being treated as errors
Attachments
Issue Links
- relates to
-
JDK-8236634 Memory Access API tests fail on 32-bit
-
- Resolved
-
-
JDK-8243491 Implementation of Foreign-Memory Access API (Second Incubator)
-
- Resolved
-