Mercurial > hg > graal-compiler
diff src/share/vm/runtime/thread.cpp @ 3555:22d11b3bc561
Various hacks to be able to install machine code from a Java thread.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 24 Aug 2011 01:05:02 +0200 |
parents | be4ca325525a |
children | bc95d122df79 |
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.cpp Mon Aug 22 19:55:06 2011 +0200 +++ b/src/share/vm/runtime/thread.cpp Wed Aug 24 01:05:02 2011 +0200 @@ -1245,7 +1245,9 @@ // Set the claimed par_id to -1 (ie not claiming any par_ids) set_claimed_par_id(-1); - + + _env = NULL; + _buffer_blob = NULL; set_saved_exception_pc(NULL); set_threadObj(NULL); _anchor.clear(); @@ -2940,13 +2942,11 @@ // Create a CompilerThread CompilerThread::CompilerThread(CompileQueue* queue, CompilerCounters* counters) : JavaThread(&compiler_thread_entry) { - _env = NULL; _log = NULL; _task = NULL; _queue = queue; _counters = counters; _is_compiling = false; - _buffer_blob = NULL; _scanned_nmethod = NULL; #ifndef PRODUCT