comparison src/share/vm/runtime/thread.hpp @ 1410:b30a2cd5e3a2

Added methods to c1x_VMExits.cpp Some memos: - the result is not stored in a jobject, but in an oop! => (oop)get_as_jobject() - we get problems with locks hold by the user program when disabling background compilation => currently this makes an assert, we need a better solution
author Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
date Wed, 12 May 2010 16:29:41 +0200
parents 93767e6a2dfd
children abc670a709dc
comparison
equal deleted inserted replaced
1407:09e7826ecf01 1410:b30a2cd5e3a2
1574 1574
1575 ciEnv* _env; 1575 ciEnv* _env;
1576 CompileLog* _log; 1576 CompileLog* _log;
1577 CompileTask* _task; 1577 CompileTask* _task;
1578 CompileQueue* _queue; 1578 CompileQueue* _queue;
1579 bool _is_compiling;
1579 1580
1580 public: 1581 public:
1581 1582
1582 static CompilerThread* current(); 1583 static CompilerThread* current();
1583 1584
1584 CompilerThread(CompileQueue* queue, CompilerCounters* counters); 1585 CompilerThread(CompileQueue* queue, CompilerCounters* counters);
1585 1586
1587 bool is_compiling() const { return _is_compiling; }
1588 void set_compiling(bool b) { _is_compiling = b; }
1586 bool is_Compiler_thread() const { return true; } 1589 bool is_Compiler_thread() const { return true; }
1587 // Hide this compiler thread from external view. 1590 // Hide this compiler thread from external view.
1588 bool is_hidden_from_external_view() const { return true; } 1591 bool is_hidden_from_external_view() const { return true; }
1589 1592
1590 CompileQueue* queue() { return _queue; } 1593 CompileQueue* queue() { return _queue; }