Merge branch 'master' of github.com:OpenHFT/Chronicle-Map

This commit is contained in:
epickrram
2017-12-11 12:12:01 +00:00
3 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>chronicle-map</artifactId>
<version>3.14.4-SNAPSHOT</version>
<version>3.14.5-SNAPSHOT</version>
<name>OpenHFT/Chronicle-Map</name>
<description>Chronicle-Map</description>
<packaging>bundle</packaging>
@@ -17,10 +17,8 @@
package net.openhft.chronicle.hash.impl.util.jna;
import com.sun.jna.IntegerType;
import com.sun.jna.Native;
import com.sun.jna.Platform;
import com.sun.jna.Pointer;
import com.sun.jna.*;
import net.openhft.chronicle.core.OS;
import java.io.IOException;
@@ -36,7 +34,8 @@ public final class PosixMsync {
private static native int msync(Pointer addr, size_t length, int flags);
static {
Native.register(PosixMsync.class, Platform.C_LIBRARY_NAME);
NativeLibrary clib = NativeLibrary.getInstance(Platform.C_LIBRARY_NAME);
Native.register(PosixMsync.class, clib);
}
private PosixMsync() {}
@@ -50,7 +50,7 @@ public final class WindowsMsync {
// Finally calls FlushFileBuffers
raf.getChannel().force(false);
} else {
throw new IOException(Kernel32Util.formatMessage(lastError));
throw new IOException(Kernel32Util.formatMessageFromLastErrorCode(lastError));
}
}