changeset 3694:221133c5ed6c

Don't call startCompiler if the VM is run with -Xint
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 24 Nov 2011 16:14:21 +0100
parents f8d7ab42c479
children 7c26db3259c6
files src/share/vm/graal/graalCompiler.cpp
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp	Wed Nov 23 14:52:52 2011 +0100
+++ b/src/share/vm/graal/graalCompiler.cpp	Thu Nov 24 16:14:21 2011 +0100
@@ -80,11 +80,12 @@
         vm_abort(false);
       }
     }
-    VMExits::startCompiler();
-  
-    _initialized = true;
-    if (BootstrapGraal) {
-      VMExits::bootstrap();
+    if (UseCompiler) {
+      VMExits::startCompiler();
+      _initialized = true;
+      if (BootstrapGraal) {
+        VMExits::bootstrap();
+      }
     }
   }
 }