Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/thread.cpp @ 8151:b8f261ba79c6
Minimize diff to plain HotSpot version.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 07 Mar 2013 21:00:29 +0100 |
parents | 5fc51c1ecdeb |
children | b9a918201d47 |
comparison
equal
deleted
inserted
replaced
8150:b66f831ac5ab | 8151:b8f261ba79c6 |
---|---|
1408 // Initialize fields | 1408 // Initialize fields |
1409 | 1409 |
1410 // Set the claimed par_id to -1 (ie not claiming any par_ids) | 1410 // Set the claimed par_id to -1 (ie not claiming any par_ids) |
1411 set_claimed_par_id(-1); | 1411 set_claimed_par_id(-1); |
1412 | 1412 |
1413 _env = NULL; | |
1414 _buffer_blob = NULL; | 1413 _buffer_blob = NULL; |
1415 set_saved_exception_pc(NULL); | 1414 set_saved_exception_pc(NULL); |
1416 set_threadObj(NULL); | 1415 set_threadObj(NULL); |
1417 _anchor.clear(); | 1416 _anchor.clear(); |
1418 set_entry_point(NULL); | 1417 set_entry_point(NULL); |
1439 _in_deopt_handler = 0; | 1438 _in_deopt_handler = 0; |
1440 _doing_unsafe_access = false; | 1439 _doing_unsafe_access = false; |
1441 _stack_guard_state = stack_guard_unused; | 1440 _stack_guard_state = stack_guard_unused; |
1442 #ifdef GRAAL | 1441 #ifdef GRAAL |
1443 _graal_alternate_call_target = NULL; | 1442 _graal_alternate_call_target = NULL; |
1444 _debug_scope = NULL; | |
1445 #endif | |
1446 #ifdef HIGH_LEVEL_INTERPRETER | |
1447 _high_level_interpreter_in_vm = false; | |
1448 #endif | 1443 #endif |
1449 _exception_oop = NULL; | 1444 _exception_oop = NULL; |
1450 _exception_pc = 0; | 1445 _exception_pc = 0; |
1451 _exception_handler_pc = 0; | 1446 _exception_handler_pc = 0; |
1452 _is_method_handle_return = 0; | 1447 _is_method_handle_return = 0; |
2192 assert(Threads_lock->is_locked(), "Threads_lock should be locked by safepoint code"); | 2187 assert(Threads_lock->is_locked(), "Threads_lock should be locked by safepoint code"); |
2193 assert(SafepointSynchronize::is_at_safepoint(), "all threads are stopped"); | 2188 assert(SafepointSynchronize::is_at_safepoint(), "all threads are stopped"); |
2194 | 2189 |
2195 // Do not throw asynchronous exceptions against the compiler thread | 2190 // Do not throw asynchronous exceptions against the compiler thread |
2196 // (the compiler thread should not be a Java thread -- fix in 1.4.2) | 2191 // (the compiler thread should not be a Java thread -- fix in 1.4.2) |
2197 | 2192 if (is_Compiler_thread()) return; |
2198 // (thomaswue) May we do this? | |
2199 //if (is_Compiler_thread()) return; | |
2200 | 2193 |
2201 { | 2194 { |
2202 // Actually throw the Throwable against the target Thread - however | 2195 // Actually throw the Throwable against the target Thread - however |
2203 // only if there is no thread death exception installed already. | 2196 // only if there is no thread death exception installed already. |
2204 if (_pending_async_exception == NULL || !_pending_async_exception->is_a(SystemDictionary::ThreadDeath_klass())) { | 2197 if (_pending_async_exception == NULL || !_pending_async_exception->is_a(SystemDictionary::ThreadDeath_klass())) { |
3238 } | 3231 } |
3239 | 3232 |
3240 // Create a CompilerThread | 3233 // Create a CompilerThread |
3241 CompilerThread::CompilerThread(CompileQueue* queue, CompilerCounters* counters) | 3234 CompilerThread::CompilerThread(CompileQueue* queue, CompilerCounters* counters) |
3242 : JavaThread(&compiler_thread_entry) { | 3235 : JavaThread(&compiler_thread_entry) { |
3236 _env = NULL; | |
3243 _log = NULL; | 3237 _log = NULL; |
3244 _task = NULL; | 3238 _task = NULL; |
3245 _queue = queue; | 3239 _queue = queue; |
3246 _counters = counters; | 3240 _counters = counters; |
3247 | 3241 |