< prev index next >
test/jdk/java/foreign/TestByteBuffer.java
Print this page
rev 57826 : 8237521: Memory Access API fixes for 32-bit
Reviewed-by: mcimadamore, dholmes
@@ -392,16 +392,12 @@
}
leaked.asByteBuffer();
}
@Test(expectedExceptions = { UnsupportedOperationException.class,
- OutOfMemoryError.class })
+ IllegalArgumentException.class })
public void testTooBigForByteBuffer() {
- if (System.getProperty("sun.arch.data.model").equals("32")) {
- throw new SkipException("32-bit Unsafe does not support this allocation size");
- }
-
MemorySegment.allocateNative((long) Integer.MAX_VALUE * 2).asByteBuffer();
}
@Test(dataProvider="resizeOps")
public void testCopyHeapToNative(Consumer<MemoryAddress> checker, Consumer<MemoryAddress> initializer, SequenceLayout seq) {
< prev index next >