diff src/share/vm/compiler/compileBroker.hpp @ 3619:5e9645341ec3

support for new RiRuntime features: add code without making it the default for the method, executing Java tasks on the compile thread, communicate nmethod reference to Java code as HotSpotCompiledMethod
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 09 Nov 2011 11:27:38 +0100
parents 65981c23c1d6
children 0e8a2a629afb
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.hpp	Tue Oct 25 14:44:32 2011 +0200
+++ b/src/share/vm/compiler/compileBroker.hpp	Wed Nov 09 11:27:38 2011 +0100
@@ -195,7 +195,7 @@
   CompileTask* first()                           { return _first; }
   CompileTask* last()                            { return _last;  }
 
-  CompileTask* get();
+  CompileTask* get(bool& interrupt);
 
   bool         is_empty() const                  { return _first == NULL; }
   int          size()     const                  { return _size;          }
@@ -297,6 +297,8 @@
   static int _sum_nmethod_size;
   static int _sum_nmethod_code_size;
 
+  static bool _poll_java_queue;
+
   static CompilerThread* make_compiler_thread(const char* name, CompileQueue* queue, CompilerCounters* counters, TRAPS);
   static void init_compiler_threads(int c1_compiler_count, int c2_compiler_count);
   static bool compilation_is_complete  (methodHandle method, int osr_bci, int comp_level);
@@ -404,6 +406,8 @@
 
   static void bootstrap_graal();
   static void add_method_to_queue(klassOop k, Symbol* name, Symbol* signature);
+
+  static void notify_java_queue();
 };
 
 #endif // SHARE_VM_COMPILER_COMPILEBROKER_HPP