comparison 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
comparison
equal deleted inserted replaced
3554:b20889b42d12 3555:22d11b3bc561
1243 void JavaThread::initialize() { 1243 void JavaThread::initialize() {
1244 // Initialize fields 1244 // Initialize fields
1245 1245
1246 // Set the claimed par_id to -1 (ie not claiming any par_ids) 1246 // Set the claimed par_id to -1 (ie not claiming any par_ids)
1247 set_claimed_par_id(-1); 1247 set_claimed_par_id(-1);
1248 1248
1249 _env = NULL;
1250 _buffer_blob = NULL;
1249 set_saved_exception_pc(NULL); 1251 set_saved_exception_pc(NULL);
1250 set_threadObj(NULL); 1252 set_threadObj(NULL);
1251 _anchor.clear(); 1253 _anchor.clear();
1252 set_entry_point(NULL); 1254 set_entry_point(NULL);
1253 set_jni_functions(jni_functions()); 1255 set_jni_functions(jni_functions());
2938 } 2940 }
2939 2941
2940 // Create a CompilerThread 2942 // Create a CompilerThread
2941 CompilerThread::CompilerThread(CompileQueue* queue, CompilerCounters* counters) 2943 CompilerThread::CompilerThread(CompileQueue* queue, CompilerCounters* counters)
2942 : JavaThread(&compiler_thread_entry) { 2944 : JavaThread(&compiler_thread_entry) {
2943 _env = NULL;
2944 _log = NULL; 2945 _log = NULL;
2945 _task = NULL; 2946 _task = NULL;
2946 _queue = queue; 2947 _queue = queue;
2947 _counters = counters; 2948 _counters = counters;
2948 _is_compiling = false; 2949 _is_compiling = false;
2949 _buffer_blob = NULL;
2950 _scanned_nmethod = NULL; 2950 _scanned_nmethod = NULL;
2951 2951
2952 #ifndef PRODUCT 2952 #ifndef PRODUCT
2953 _ideal_graph_printer = NULL; 2953 _ideal_graph_printer = NULL;
2954 #endif 2954 #endif