Fix compilation issue
This commit is contained in:
parent
5615c8019a
commit
5c0434c73f
@ -100,7 +100,7 @@ public class MemorySegmentUtils {
|
|||||||
try {
|
try {
|
||||||
if (!isSupported()) {
|
if (!isSupported()) {
|
||||||
if (PlatformDependent.hasDirectBufferNoCleanerConstructor()) {
|
if (PlatformDependent.hasDirectBufferNoCleanerConstructor()) {
|
||||||
return PlatformDependent.directBuffer(address, (int) size);
|
return PlatformDependent.directBuffer(address, (int) size, null);
|
||||||
}
|
}
|
||||||
throw new UnsupportedOperationException("Foreign Memory Access API is disabled!"
|
throw new UnsupportedOperationException("Foreign Memory Access API is disabled!"
|
||||||
+ " Please set \"" + MemorySegmentUtils.getSuggestedArgs() + "\"",
|
+ " Please set \"" + MemorySegmentUtils.getSuggestedArgs() + "\"",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user