Mercurial > hg > truffle
comparison src/share/vm/runtime/thread.cpp @ 5056:2f2c6347fce4
comments cleanup/retagging
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 08 Mar 2012 15:01:19 +0100 |
parents | 897b7d18bebc |
children | 0ebca2e35ca5 |
comparison
equal
deleted
inserted
replaced
5053:c53115427ff9 | 5056:2f2c6347fce4 |
---|---|
2038 assert(SafepointSynchronize::is_at_safepoint(), "all threads are stopped"); | 2038 assert(SafepointSynchronize::is_at_safepoint(), "all threads are stopped"); |
2039 | 2039 |
2040 // Do not throw asynchronous exceptions against the compiler thread | 2040 // Do not throw asynchronous exceptions against the compiler thread |
2041 // (the compiler thread should not be a Java thread -- fix in 1.4.2) | 2041 // (the compiler thread should not be a Java thread -- fix in 1.4.2) |
2042 | 2042 |
2043 // (tw) May we do this? | 2043 // (thomaswue) May we do this? |
2044 //if (is_Compiler_thread()) return; | 2044 //if (is_Compiler_thread()) return; |
2045 | 2045 |
2046 { | 2046 { |
2047 // Actually throw the Throwable against the target Thread - however | 2047 // Actually throw the Throwable against the target Thread - however |
2048 // only if there is no thread death exception installed already. | 2048 // only if there is no thread death exception installed already. |
3052 return NULL; | 3052 return NULL; |
3053 } | 3053 } |
3054 | 3054 |
3055 static void compiler_thread_entry(JavaThread* thread, TRAPS) { | 3055 static void compiler_thread_entry(JavaThread* thread, TRAPS) { |
3056 assert(thread->is_Compiler_thread(), "must be compiler thread"); | 3056 assert(thread->is_Compiler_thread(), "must be compiler thread"); |
3057 // XXX (gd) currently we still start c1 compiler threads even with Graal, they just die immediately, more compileBroker cleanup is needed to eliminate that | |
3058 #ifndef GRAAL | |
3059 CompileBroker::compiler_thread_loop(); | 3057 CompileBroker::compiler_thread_loop(); |
3060 #endif | |
3061 } | 3058 } |
3062 | 3059 |
3063 // Create a CompilerThread | 3060 // Create a CompilerThread |
3064 CompilerThread::CompilerThread(CompileQueue* queue, CompilerCounters* counters) | 3061 CompilerThread::CompilerThread(CompileQueue* queue, CompilerCounters* counters) |
3065 : JavaThread(&compiler_thread_entry) { | 3062 : JavaThread(&compiler_thread_entry) { |