1.1 --- a/src/share/vm/runtime/thread.hpp Wed Sep 03 17:01:57 2014 +0200 1.2 +++ b/src/share/vm/runtime/thread.hpp Thu Sep 04 11:21:08 2014 +0200 1.3 @@ -40,6 +40,7 @@ 1.4 #include "runtime/safepoint.hpp" 1.5 #include "runtime/stubRoutines.hpp" 1.6 #include "runtime/threadLocalStorage.hpp" 1.7 +#include "runtime/thread_ext.hpp" 1.8 #include "runtime/unhandledOops.hpp" 1.9 #include "utilities/macros.hpp" 1.10 1.11 @@ -257,6 +258,8 @@ 1.12 1.13 TRACE_DATA _trace_data; // Thread-local data for tracing 1.14 1.15 + ThreadExt _ext; 1.16 + 1.17 int _vm_operation_started_count; // VM_Operation support 1.18 int _vm_operation_completed_count; // VM_Operation support 1.19 1.20 @@ -436,6 +439,9 @@ 1.21 1.22 TRACE_DATA* trace_data() { return &_trace_data; } 1.23 1.24 + const ThreadExt& ext() const { return _ext; } 1.25 + ThreadExt& ext() { return _ext; } 1.26 + 1.27 // VM operation support 1.28 int vm_operation_ticket() { return ++_vm_operation_started_count; } 1.29 int vm_operation_completed_count() { return _vm_operation_completed_count; } 1.30 @@ -1002,6 +1008,7 @@ 1.31 // not specified, use the priority of the thread object. Threads_lock 1.32 // must be held while this function is called. 1.33 void prepare(jobject jni_thread, ThreadPriority prio=NoPriority); 1.34 + void prepare_ext(); 1.35 1.36 void set_saved_exception_pc(address pc) { _saved_exception_pc = pc; } 1.37 address saved_exception_pc() { return _saved_exception_pc; } 1.38 @@ -1956,6 +1963,8 @@ 1.39 // Deoptimizes all frames tied to marked nmethods 1.40 static void deoptimized_wrt_marked_nmethods(); 1.41 1.42 + static JavaThread* find_java_thread_from_java_tid(jlong java_tid); 1.43 + 1.44 }; 1.45 1.46