changeset 3576:c94966c5fb41

Only shut down the compiler if it was initialized.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 12 Sep 2011 21:20:33 +0200
parents 4e3bcc322fdc
children 96c40b338c1a
files src/share/vm/graal/graalCompiler.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp	Mon Sep 12 18:19:20 2011 +0200
+++ b/src/share/vm/graal/graalCompiler.cpp	Mon Sep 12 21:20:33 2011 +0200
@@ -119,7 +119,9 @@
 }
 
 void GraalCompiler::exit() {
-  VMExits::shutdownCompiler();
+  if (_initialized) {
+    VMExits::shutdownCompiler();
+  }
 }
 
 // Print compilation timers and statistics