Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/thread.cpp @ 4559:723df37192d6
Make it possible again to build a real client libjvm, drop the UseGraal flag.
Use the --vm option instead of a special -vm option in the bench command
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Fri, 10 Feb 2012 17:04:03 +0100 |
parents | 04b9a2566eec |
children | 33df1aeaebbf |
comparison
equal
deleted
inserted
replaced
4558:3706975946e4 | 4559:723df37192d6 |
---|---|
27 #include "classfile/javaClasses.hpp" | 27 #include "classfile/javaClasses.hpp" |
28 #include "classfile/systemDictionary.hpp" | 28 #include "classfile/systemDictionary.hpp" |
29 #include "classfile/vmSymbols.hpp" | 29 #include "classfile/vmSymbols.hpp" |
30 #include "code/scopeDesc.hpp" | 30 #include "code/scopeDesc.hpp" |
31 #include "compiler/compileBroker.hpp" | 31 #include "compiler/compileBroker.hpp" |
32 #ifdef GRAAL | |
32 #include "graal/graalCompiler.hpp" | 33 #include "graal/graalCompiler.hpp" |
34 #endif | |
33 #include "interpreter/interpreter.hpp" | 35 #include "interpreter/interpreter.hpp" |
34 #include "interpreter/linkResolver.hpp" | 36 #include "interpreter/linkResolver.hpp" |
35 #include "interpreter/oopMapCache.hpp" | 37 #include "interpreter/oopMapCache.hpp" |
36 #include "jvmtifiles/jvmtiEnv.hpp" | 38 #include "jvmtifiles/jvmtiEnv.hpp" |
37 #include "memory/oopFactory.hpp" | 39 #include "memory/oopFactory.hpp" |
3015 return NULL; | 3017 return NULL; |
3016 } | 3018 } |
3017 | 3019 |
3018 static void compiler_thread_entry(JavaThread* thread, TRAPS) { | 3020 static void compiler_thread_entry(JavaThread* thread, TRAPS) { |
3019 assert(thread->is_Compiler_thread(), "must be compiler thread"); | 3021 assert(thread->is_Compiler_thread(), "must be compiler thread"); |
3020 //CompileBroker::compiler_thread_loop(); | 3022 // XXX (gd) currently we still start c1 compiler threads even with Graal, they just die immediately, more compileBroker cleanup is needed to eliminate that |
3023 #ifndef GRAAL | |
3024 CompileBroker::compiler_thread_loop(); | |
3025 #endif | |
3021 } | 3026 } |
3022 | 3027 |
3023 // Create a CompilerThread | 3028 // Create a CompilerThread |
3024 CompilerThread::CompilerThread(CompileQueue* queue, CompilerCounters* counters) | 3029 CompilerThread::CompilerThread(CompileQueue* queue, CompilerCounters* counters) |
3025 : JavaThread(&compiler_thread_entry) { | 3030 : JavaThread(&compiler_thread_entry) { |