diff src/share/vm/oops/method.cpp @ 15463:a20be10ad437

made Graal work with the HotSpot compiler queue and compiler threads, enabled by -XX:-UseGraalCompilationQueue
author Doug Simon <doug.simon@oracle.com>
date Fri, 02 May 2014 00:36:27 +0200
parents 36e1a11a72b3
children 52b4284cb496
line wrap: on
line diff
--- a/src/share/vm/oops/method.cpp	Fri May 02 00:17:40 2014 +0200
+++ b/src/share/vm/oops/method.cpp	Fri May 02 00:36:27 2014 +0200
@@ -1314,7 +1314,7 @@
 
 // These two methods are static since a GC may move the Method
 bool Method::load_signature_classes(methodHandle m, TRAPS) {
-  if (THREAD->is_Compiler_thread()) {
+  if (!THREAD->can_call_java()) {
     // There is nothing useful this routine can do from within the Compile thread.
     // Hopefully, the signature contains only well-known classes.
     // We could scan for this and return true/false, but the caller won't care.