diff src/share/vm/graal/graalRuntime.cpp @ 18303:ab47ef2f2207

disable blocking compilation requests once GraalRuntime::shutdown has been called
author Doug Simon <doug.simon@oracle.com>
date Fri, 07 Nov 2014 12:35:58 +0100
parents bcb1e5c232d8
children c307546c7b0a
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp	Fri Nov 07 12:34:18 2014 +0100
+++ b/src/share/vm/graal/graalRuntime.cpp	Fri Nov 07 12:35:58 2014 +0100
@@ -41,6 +41,7 @@
 address GraalRuntime::_external_deopt_i2c_entry = NULL;
 jobject GraalRuntime::_HotSpotGraalRuntime_instance = NULL;
 bool GraalRuntime::_HotSpotGraalRuntime_initialized = false;
+bool GraalRuntime::_shutdown_called = false;
 
 void GraalRuntime::initialize_natives(JNIEnv *env, jclass c2vmClass) {
   uintptr_t heap_end = (uintptr_t) Universe::heap()->reserved_region().end();
@@ -989,6 +990,7 @@
 
 void GraalRuntime::shutdown() {
   if (_HotSpotGraalRuntime_instance != NULL) {
+    _shutdown_called = true;
     JavaThread* THREAD = JavaThread::current();
     HandleMark hm(THREAD);
     TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/hotspot/HotSpotGraalRuntime", CHECK_ABORT);