hotspot Cdiff src/share/vm/runtime/thread.hpp (original) (raw)

src/share/vm/runtime/thread.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/runtime/thread.hpp Print this page


*** 327,336 **** --- 327,339 ---- virtual bool is_Watcher_thread() const { return false; } virtual bool is_ConcurrentGC_thread() const { return false; } virtual bool is_Named_thread() const { return false; } virtual bool is_Worker_thread() const { return false; }
+ // Can this thread make Java upcalls + virtual bool can_call_java() const { return false; } + // Casts virtual WorkerThread* as_Worker_thread() const { return NULL; }
virtual char* name() const { return (char*)"Unknown thread"; }

*** 890,899 **** --- 893,939 ---- stack_guard_enabled // enabled };

private:


*** 904,913 **** --- 944,954 ---- volatile oop _exception_oop; // Exception thrown in compiled code volatile address _exception_pc; // PC where exception happened volatile address _exception_handler_pc; // PC for handler of exception volatile int _is_method_handle_return; // true (== 1) if the current exception PC is a MethodHandle call site.


*** 991,1000 **** --- 1032,1042 ----
void cleanup_failed_attach_current_thread();
// Testers virtual bool is_Java_thread() const { return true; } + virtual bool can_call_java() const { return true; }
// Thread chain operations JavaThread* next() const { return _next; } void set_next(JavaThread* p) { _next = p; }

*** 1249,1258 **** --- 1291,1312 ---- void set_vm_result_2 (Metadata* x) { _vm_result_2 = x; }

MemRegion deferred_card_mark() const           { return _deferred_card_mark; }
void set_deferred_card_mark(MemRegion mr)      { _deferred_card_mark = mr;   }

*** 1349,1358 **** --- 1403,1420 ---- static ByteSize vm_result_offset() { return byte_offset_of(JavaThread, _vm_result); } static ByteSize vm_result_2_offset() { return byte_offset_of(JavaThread, _vm_result_2); } static ByteSize thread_state_offset() { return byte_offset_of(JavaThread, _thread_state); } static ByteSize saved_exception_pc_offset() { return byte_offset_of(JavaThread, _saved_exception_pc); } static ByteSize osthread_offset() { return byte_offset_of(JavaThread, _osthread); }


*** 1818,1829 **** static CompilerThread* current();

CompilerThread(CompileQueue* queue, CompilerCounters* counters);

bool is_Compiler_thread() const                { return true; }

! // Hide this compiler thread from external view. ! bool is_hidden_from_external_view() const { return true; }

void set_compiler(AbstractCompiler* c)         { _compiler = c; }
AbstractCompiler* compiler() const             { return _compiler; }

CompileQueue* queue()        const             { return _queue; }

--- 1880,1894 ---- static CompilerThread* current();

CompilerThread(CompileQueue* queue, CompilerCounters* counters);

bool is_Compiler_thread() const                { return true; }

! ! virtual bool can_call_java() const; ! ! // Hide native compiler threads from external view. ! bool is_hidden_from_external_view() const { return !can_call_java(); }

void set_compiler(AbstractCompiler* c)         { _compiler = c; }
AbstractCompiler* compiler() const             { return _compiler; }

CompileQueue* queue()        const             { return _queue; }

src/share/vm/runtime/thread.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File