comparison src/share/vm/runtime/thread.hpp @ 15463:a20be10ad437

made Graal work with the HotSpot compiler queue and compiler threads, enabled by -XX:-UseGraalCompilationQueue
author Doug Simon <doug.simon@oracle.com>
date Fri, 02 May 2014 00:36:27 +0200
parents 4ca6dc0799b6
children 66a9286203a2
comparison
equal deleted inserted replaced
15462:05d3f069cff2 15463:a20be10ad437
319 virtual bool is_Watcher_thread() const { return false; } 319 virtual bool is_Watcher_thread() const { return false; }
320 virtual bool is_ConcurrentGC_thread() const { return false; } 320 virtual bool is_ConcurrentGC_thread() const { return false; }
321 virtual bool is_Named_thread() const { return false; } 321 virtual bool is_Named_thread() const { return false; }
322 virtual bool is_Worker_thread() const { return false; } 322 virtual bool is_Worker_thread() const { return false; }
323 323
324 // Can this thread make Java upcalls
325 virtual bool can_call_java() const { return true; }
326
324 // Casts 327 // Casts
325 virtual WorkerThread* as_Worker_thread() const { return NULL; } 328 virtual WorkerThread* as_Worker_thread() const { return NULL; }
326 329
327 virtual char* name() const { return (char*)"Unknown thread"; } 330 virtual char* name() const { return (char*)"Unknown thread"; }
328 331
1874 static CompilerThread* current(); 1877 static CompilerThread* current();
1875 1878
1876 CompilerThread(CompileQueue* queue, CompilerCounters* counters); 1879 CompilerThread(CompileQueue* queue, CompilerCounters* counters);
1877 1880
1878 bool is_Compiler_thread() const { return true; } 1881 bool is_Compiler_thread() const { return true; }
1882
1883 #ifdef COMPILERGRAAL
1884 virtual bool can_call_java() const;
1885 #endif
1886
1879 // Hide this compiler thread from external view. 1887 // Hide this compiler thread from external view.
1880 bool is_hidden_from_external_view() const { return true; } 1888 bool is_hidden_from_external_view() const { return !can_call_java(); }
1881 1889
1882 void set_compiler(AbstractCompiler* c) { _compiler = c; } 1890 void set_compiler(AbstractCompiler* c) { _compiler = c; }
1883 AbstractCompiler* compiler() const { return _compiler; } 1891 AbstractCompiler* compiler() const { return _compiler; }
1884 1892
1885 CompileQueue* queue() const { return _queue; } 1893 CompileQueue* queue() const { return _queue; }