diff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java @ 9914:84890660eefb

cleaner implementation of stable options
author Doug Simon <doug.simon@oracle.com>
date Thu, 06 Jun 2013 17:29:08 +0200
parents fbad7372eccd
children 44fcf49b746f
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Thu Jun 06 17:27:07 2013 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Thu Jun 06 17:29:08 2013 +0200
@@ -28,7 +28,6 @@
 import static com.oracle.graal.hotspot.CompilationTask.*;
 import static com.oracle.graal.hotspot.HotSpotGraalRuntime.*;
 import static com.oracle.graal.java.GraphBuilderPhase.*;
-import static com.oracle.graal.options.OptionValue.*;
 import static com.oracle.graal.phases.GraalOptions.*;
 
 import java.io.*;
@@ -63,22 +62,22 @@
 
     //@formatter:off
     @Option(help = "File to which compiler logging is sent")
-    private static final OptionValue<String> LogFile = OptionValue.newOption(null);
+    private static final OptionValue<String> LogFile = new OptionValue<>(null);
 
     @Option(help = "Use low priority compilation threads")
-    private static final OptionValue<Boolean> SlowCompileThreads = newOption(false);
+    private static final OptionValue<Boolean> SlowCompileThreads = new OptionValue<>(false);
 
     @Option(help = "Use priority-based compilation queue")
-    private static final OptionValue<Boolean> PriorityCompileQueue = OptionValue.newOption(true);
+    private static final OptionValue<Boolean> PriorityCompileQueue = new OptionValue<>(true);
 
     @Option(help = "Print compilation queue activity periodically")
-    private static final OptionValue<Boolean> PrintQueue = OptionValue.newOption(false);
+    private static final OptionValue<Boolean> PrintQueue = new OptionValue<>(false);
 
     @Option(help = "Time limit in milliseconds for bootstrap (-1 for no limit)")
-    private static final OptionValue<Integer> TimedBootstrap = OptionValue.newOption(-1);
+    private static final OptionValue<Integer> TimedBootstrap = new OptionValue<>(-1);
 
     @Option(help = "Number of compilation threads to use")
-    private static final OptionValue<Integer> Threads = new OptionValue<Integer>(true) {
+    private static final StableOptionValue<Integer> Threads = new StableOptionValue<Integer>() {
 
         @Override
         public Integer initialValue() {
@@ -87,10 +86,10 @@
     };
 
     @Option(help = "")
-    private static final OptionValue<Boolean> GenericDynamicCounters = newOption(false);
+    private static final OptionValue<Boolean> GenericDynamicCounters = new OptionValue<>(false);
 
     @Option(help = "")
-    private static final OptionValue<String> BenchmarkDynamicCounters = OptionValue.newOption(null);
+    private static final OptionValue<String> BenchmarkDynamicCounters = new OptionValue<>(null);
     //@formatter:on
 
     private final HotSpotGraalRuntime graalRuntime;