Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/javaCalls.cpp @ 4981:1b8d02e10ee8
Remove the hacks around "is_Compiler_thread" assertions; Graal no longer uses the compiler thread mechanisms; don't create a C++ compilation queue or any compiler threads.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 27 Feb 2012 22:15:05 +0100 |
parents | 04b9a2566eec |
children | 897b7d18bebc |
line wrap: on
line diff
--- a/src/share/vm/runtime/javaCalls.cpp Mon Feb 27 21:49:51 2012 +0100 +++ b/src/share/vm/runtime/javaCalls.cpp Mon Feb 27 22:15:05 2012 +0100 @@ -61,8 +61,7 @@ guarantee(thread->is_Java_thread(), "crucial check - the VM thread cannot and must not escape to Java code"); assert(!thread->owns_locks(), "must release all locks when leaving VM"); - // (tw) may we do this? - // guarantee(!thread->is_Compiler_thread(), "cannot make java calls from the compiler"); + guarantee(!thread->is_Compiler_thread(), "cannot make java calls from the compiler"); _result = result; // Allocate handle block for Java code. This must be done before we change thread_state to _thread_in_Java_or_stub, @@ -373,8 +372,7 @@ #endif - // (tw) may we do this? - //assert(!thread->is_Compiler_thread(), "cannot compile from the compiler"); + assert(!thread->is_Compiler_thread(), "cannot compile from the compiler"); if (CompilationPolicy::must_be_compiled(method)) { CompileBroker::compile_method(method, InvocationEntryBci, CompilationPolicy::policy()->initial_compile_level(),