# HG changeset patch # User Doug Simon # Date 1370595168 -7200 # Node ID 44fcf49b746f1cb081d19028b945666560868d4d # Parent af909f4b80a9f5d0c07057e5172abe4a05cf4db6 fixed class initialization ordering issue; HotSpotOptions. must not trigger initialization of other classes that depend on the effect of option setting in their diff -r af909f4b80a9 -r 44fcf49b746f graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java Thu Jun 06 23:16:45 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java Fri Jun 07 10:52:48 2013 +0200 @@ -35,20 +35,15 @@ import com.oracle.graal.compiler.*; import com.oracle.graal.debug.*; import com.oracle.graal.debug.internal.*; +import com.oracle.graal.hotspot.bridge.*; import com.oracle.graal.hotspot.meta.*; import com.oracle.graal.nodes.*; import com.oracle.graal.nodes.spi.*; -import com.oracle.graal.options.*; import com.oracle.graal.phases.*; import com.oracle.graal.phases.common.*; public final class CompilationTask implements Runnable, Comparable { - //@formatter:off - @Option(help = "") - public static final OptionValue SlowQueueCutoff = new OptionValue<>(100000); - //@formatter:on - public static final ThreadLocal withinEnqueue = new ThreadLocal() { @Override @@ -116,7 +111,7 @@ } inProgress = true; if (DynamicCompilePriority.getValue()) { - int threadPriority = priority < SlowQueueCutoff.getValue() ? Thread.NORM_PRIORITY : Thread.MIN_PRIORITY; + int threadPriority = priority < VMToCompilerImpl.SlowQueueCutoff.getValue() ? Thread.NORM_PRIORITY : Thread.MIN_PRIORITY; if (Thread.currentThread().getPriority() != threadPriority) { Thread.currentThread().setPriority(threadPriority); } diff -r af909f4b80a9 -r 44fcf49b746f graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java Thu Jun 06 23:16:45 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java Fri Jun 07 10:52:48 2013 +0200 @@ -73,6 +73,9 @@ @Option(help = "Print compilation queue activity periodically") private static final OptionValue PrintQueue = new OptionValue<>(false); + @Option(help = "") + public static final OptionValue SlowQueueCutoff = new OptionValue<>(100000); + @Option(help = "Time limit in milliseconds for bootstrap (-1 for no limit)") private static final OptionValue TimedBootstrap = new OptionValue<>(-1); @@ -177,7 +180,6 @@ } if (DebugEnabled.getValue()) { - Debug.enable(); DebugEnvironment.initialize(log); } diff -r af909f4b80a9 -r 44fcf49b746f make/build-graal.xml --- a/make/build-graal.xml Thu Jun 06 23:16:45 2013 +0200 +++ b/make/build-graal.xml Fri Jun 07 10:52:48 2013 +0200 @@ -84,7 +84,6 @@ -