mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
use OS.isLinux() instead of Platform.isLinux() for consistency
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
|
||||
package net.openhft.chronicle.hash.impl;
|
||||
|
||||
import com.sun.jna.Platform;
|
||||
import net.openhft.chronicle.algo.locks.*;
|
||||
import net.openhft.chronicle.bytes.BytesStore;
|
||||
import net.openhft.chronicle.bytes.MappedBytesStoreFactory;
|
||||
@@ -964,7 +963,7 @@ public abstract class VanillaChronicleHash<K,
|
||||
// This kind of fragmented file may hang the program and cause dmesg reports
|
||||
// "XFS: ... possible memory allocation deadlock size ... in kmem_alloc (mode:0x250)".
|
||||
// We can fix this by trying calling posix_fallocate to preallocate the space.
|
||||
if (Platform.isLinux()) {
|
||||
if (OS.isLinux()) {
|
||||
PosixFallocate.fallocate(raf.getFD(), 0, minFileSize);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user