Mercurial > hg > graal-jvmci-8
diff src/share/vm/compiler/compileBroker.cpp @ 1406:35069ca331f2
Hooked C1XCompiler class into the system.
Two new flags:
-XX:+UseC1X makes sure that the C1X compiler is used instead of C1
-XX:TraceC1X=0 sets the trace level for C1X (value between 0=no output and 5=verbose)
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Tue, 11 May 2010 18:19:17 +0200 |
parents | a2ea687fdc7c |
children | b30a2cd5e3a2 |
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp Tue May 11 14:46:49 2010 +0200 +++ b/src/share/vm/compiler/compileBroker.cpp Tue May 11 18:19:17 2010 +0200 @@ -542,7 +542,11 @@ // Set the interface to the current compiler(s). #ifdef COMPILER1 - _compilers[0] = new Compiler(); + if (UseC1X) { + _compilers[0] = new C1XCompiler(); + } else { + _compilers[0] = new Compiler(); + } #ifndef COMPILER2 _compilers[1] = _compilers[0]; #endif @@ -1527,7 +1531,8 @@ system_dictionary_modification_counter = SystemDictionary::number_of_modifications(); } - NoHandleMark nhm; + // (tw) Check if we may do this? + //NoHandleMark nhm; ThreadToNativeFromVM ttn(thread); ciEnv ci_env(task, system_dictionary_modification_counter);