Mercurial > hg > graal-compiler
diff src/share/vm/runtime/javaCalls.cpp @ 1407:09e7826ecf01
Can now call to Java code from the VM.
Need to specify a JAR file with the classes from the Maxine subprojects C1X, CRI, and HotSpotVM in the bootclasspath.
See HotSpotVM/README.txt in the Maxine sources for details.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Tue, 11 May 2010 19:24:14 +0200 |
parents | b9fba36710f2 |
children | 6223633ce7dd |
line wrap: on
line diff
--- a/src/share/vm/runtime/javaCalls.cpp Tue May 11 18:19:17 2010 +0200 +++ b/src/share/vm/runtime/javaCalls.cpp Tue May 11 19:24:14 2010 +0200 @@ -34,7 +34,8 @@ 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"); - guarantee(!thread->is_Compiler_thread(), "cannot make java calls from the compiler"); + // (tw) may we do this? + // 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, @@ -328,7 +329,8 @@ #endif - assert(!thread->is_Compiler_thread(), "cannot compile from the compiler"); + // (tw) may we do this? + //assert(!thread->is_Compiler_thread(), "cannot compile from the compiler"); if (CompilationPolicy::mustBeCompiled(method)) { CompileBroker::compile_method(method, InvocationEntryBci, methodHandle(), 0, "mustBeCompiled", CHECK);