Skip to content

Commit bd9b5ec

Browse files
committed
JavaCL: use unsafe pointer for ReusablePointer
1 parent d133dd8 commit bd9b5ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/src/main/java/com/nativelibs4java/opencl/ReusablePointer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class ReusablePointer {
1515

1616
public ReusablePointer(long bytesCapacity) {
1717
this.bytesCapacity = bytesCapacity;
18-
this.pointer = Pointer.allocateBytes(bytesCapacity);
18+
this.pointer = Pointer.allocateBytes(bytesCapacity).withoutValidityInformation();
1919
}
2020
public Pointer<Integer> pointerToInts(int[] values) {
2121
if (values == null)

0 commit comments

Comments
 (0)