diff 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
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.hpp	Tue May 11 19:24:14 2010 +0200
+++ b/src/share/vm/runtime/thread.hpp	Wed May 12 16:29:41 2010 +0200
@@ -1576,6 +1576,7 @@
   CompileLog*   _log;
   CompileTask*  _task;
   CompileQueue* _queue;
+  bool          _is_compiling;
 
  public:
 
@@ -1583,6 +1584,8 @@
 
   CompilerThread(CompileQueue* queue, CompilerCounters* counters);
 
+  bool is_compiling() const                      { return _is_compiling; }
+  void set_compiling(bool b)                     { _is_compiling = b; }
   bool is_Compiler_thread() const                { return true; }
   // Hide this compiler thread from external view.
   bool is_hidden_from_external_view() const      { return true; }