From 74bb715689e7e817a04326e87285a4db0080b614 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sat, 30 May 2015 11:19:14 -0400 Subject: [PATCH] code cleanups --- src/main/java/org/elasticsearch/bootstrap/JNACLibrary.java | 7 +------ src/main/java/org/elasticsearch/bootstrap/JNANatives.java | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/org/elasticsearch/bootstrap/JNACLibrary.java b/src/main/java/org/elasticsearch/bootstrap/JNACLibrary.java index b4344bd09ef..c43a45a1709 100644 --- a/src/main/java/org/elasticsearch/bootstrap/JNACLibrary.java +++ b/src/main/java/org/elasticsearch/bootstrap/JNACLibrary.java @@ -29,9 +29,8 @@ import org.elasticsearch.common.logging.Loggers; import java.util.Arrays; import java.util.List; - /** - * + * java mapping to some libc functions */ final class JNACLibrary { @@ -70,8 +69,4 @@ final class JNACLibrary { private JNACLibrary() { } - - public static void main(String args[]) throws Exception { - JNANatives.tryMlockall(); - } } diff --git a/src/main/java/org/elasticsearch/bootstrap/JNANatives.java b/src/main/java/org/elasticsearch/bootstrap/JNANatives.java index a9adce4641e..463330d8040 100644 --- a/src/main/java/org/elasticsearch/bootstrap/JNANatives.java +++ b/src/main/java/org/elasticsearch/bootstrap/JNANatives.java @@ -26,8 +26,6 @@ import org.elasticsearch.common.logging.ESLogger; import org.elasticsearch.common.logging.Loggers; import org.elasticsearch.monitor.jvm.JvmInfo; -import java.util.Locale; - import static org.elasticsearch.bootstrap.JNAKernel32Library.SizeT; /**