Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptions.java @ 15591:55977f9fa56f
fixed assertion position and documented critical class initialization dependency
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sun, 11 May 2014 22:00:06 +0200 |
parents | c55f44b3c5e5 |
children | b7fb36e57da8 |
comparison
equal
deleted
inserted
replaced
15590:1e63e4b5ef6d | 15591:55977f9fa56f |
---|---|
31 import java.lang.reflect.*; | 31 import java.lang.reflect.*; |
32 import java.nio.charset.*; | 32 import java.nio.charset.*; |
33 import java.nio.file.*; | 33 import java.nio.file.*; |
34 import java.util.*; | 34 import java.util.*; |
35 | 35 |
36 import com.oracle.graal.api.runtime.*; | |
36 import com.oracle.graal.compiler.common.*; | 37 import com.oracle.graal.compiler.common.*; |
37 import com.oracle.graal.debug.*; | 38 import com.oracle.graal.debug.*; |
38 import com.oracle.graal.hotspot.logging.*; | 39 import com.oracle.graal.hotspot.logging.*; |
39 import com.oracle.graal.options.*; | 40 import com.oracle.graal.options.*; |
40 import com.oracle.graal.phases.common.inlining.*; | 41 import com.oracle.graal.phases.common.inlining.*; |
245 public static void finalizeOptions(boolean timeCompilations) { | 246 public static void finalizeOptions(boolean timeCompilations) { |
246 if (timeCompilations || PrintCompRate.getValue() != 0) { | 247 if (timeCompilations || PrintCompRate.getValue() != 0) { |
247 unconditionallyEnableTimerOrMetric(InliningUtil.class, "InlinedBytecodes"); | 248 unconditionallyEnableTimerOrMetric(InliningUtil.class, "InlinedBytecodes"); |
248 unconditionallyEnableTimerOrMetric(CompilationTask.class, "CompilationTime"); | 249 unconditionallyEnableTimerOrMetric(CompilationTask.class, "CompilationTime"); |
249 } | 250 } |
251 assert !Debug.Initialization.isDebugInitialized() : "The class " + Debug.class.getName() + " must not be initialized before the Graal runtime has been initialized. " + | |
252 "This can be fixed by placing a call to " + Graal.class.getName() + ".runtime() on the path that triggers initialization of " + Debug.class.getName(); | |
250 if (areDebugScopePatternsEnabled()) { | 253 if (areDebugScopePatternsEnabled()) { |
251 assert !Debug.Initialization.isDebugInitialized(); | |
252 System.setProperty(Debug.Initialization.INITIALIZER_PROPERTY_NAME, "true"); | 254 System.setProperty(Debug.Initialization.INITIALIZER_PROPERTY_NAME, "true"); |
253 } | 255 } |
254 } | 256 } |
255 | 257 |
256 /** | 258 /** |