Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalCompiler.hpp @ 16399:4481cf549cfc
removed (Java based) CompilationQueue
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 03 Jul 2014 23:28:35 +0200 |
parents | d32be0297274 |
children | 4a6e24a8fc2c |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.hpp Thu Jul 03 21:47:59 2014 +0200 +++ b/src/share/vm/graal/graalCompiler.hpp Thu Jul 03 23:28:35 2014 +0200 @@ -32,10 +32,13 @@ #ifdef COMPILERGRAAL bool _bootstrapping; - volatile int _compiled; // no synchronization so may not be 100% accurate - void start_compilation_queue(); - void shutdown_compilation_queue(); + /** + * Number of methods compiled by Graal. This is not synchronized + * so may not be 100% accurate. + */ + volatile int _methodsCompiled; + #endif static GraalCompiler* _instance; @@ -67,15 +70,13 @@ // Compilation entry point for methods virtual void compile_method(ciEnv* env, ciMethod* target, int entry_bci); - void compile_method(methodHandle target, int entry_bci, CompileTask* task, jboolean blocking); + void compile_method(methodHandle target, int entry_bci, CompileTask* task); // Print compilation timers and statistics virtual void print_timers(); // Print compilation statistics void reset_compilation_stats(); - - void shutdown(); #endif // COMPILERGRAAL #ifndef PRODUCT @@ -83,35 +84,4 @@ #endif }; -#ifdef COMPILERGRAAL -/** - * Creates a scope in which scheduling a Graal compilation is disabled. - * Scheduling a compilation can happen anywhere a counter can overflow and - * calling back into the Java code for scheduling a compilation (i.e., - * CompilationTask.compileMetaspaceMethod()) from such arbitrary locations - * can cause objects to be in an unexpected state. - * - * In addition, it can be useful to disable compilation scheduling in - * other circumstances such as when initializing the Graal compilation - * queue or when running the Graal bootstrap process. - */ -class NoGraalCompilationScheduling: public StackObj { - private: - JavaThread* _thread; - public: - - NoGraalCompilationScheduling(JavaThread *thread) { - assert(thread == JavaThread::current(), "not the current thread"); - assert(thread->can_schedule_graal_compilation(), "recursive Graal compilation scheduling"); - _thread = thread; - thread->set_can_schedule_graal_compilation(false); - } - - ~NoGraalCompilationScheduling() { - assert(!_thread->can_schedule_graal_compilation(), "unexpected Graal compilation scheduling state"); - _thread->set_can_schedule_graal_compilation(true); - } -}; -#endif // COMPILERGRAAL - #endif // SHARE_VM_GRAAL_GRAAL_COMPILER_HPP