diff src/share/vm/compiler/compileBroker.cpp @ 1410:b30a2cd5e3a2

Added methods to c1x_VMExits.cpp Some memos: - the result is not stored in a jobject, but in an oop! => (oop)get_as_jobject() - we get problems with locks hold by the user program when disabling background compilation => currently this makes an assert, we need a better solution
author Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
date Wed, 12 May 2010 16:29:41 +0200
parents 35069ca331f2
children 1ecc8f0aad00
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp	Tue May 11 19:24:14 2010 +0200
+++ b/src/share/vm/compiler/compileBroker.cpp	Wed May 12 16:29:41 2010 +0200
@@ -864,6 +864,11 @@
   {
     MutexLocker locker(_method_queue->lock(), THREAD);
 
+	if (Thread::current()->is_Compiler_thread() && CompilerThread::current()->is_compiling()) {
+		TRACE_C1X_1("Recursive compile!");
+		return;
+	}
+
     // Make sure the method has not slipped into the queues since
     // last we checked; note that those checks were "fast bail-outs".
     // Here we need to be more careful, see 14012000 below.