diff src/share/vm/c1x/c1x_Compiler.cpp @ 1483:ba37b9335e1e

New option "-graal" that sets up the correct boot class path and C1X options using only the two environment variables MAXINE and GRAAL. This greatly simplifies command line arguments necessary to start the Graal VM.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Mon, 29 Nov 2010 16:58:26 +0100
parents 1f81c0d18c75
children 48bbaead8b6c
line wrap: on
line diff
--- a/src/share/vm/c1x/c1x_Compiler.cpp	Mon Nov 29 12:02:16 2010 +0100
+++ b/src/share/vm/c1x/c1x_Compiler.cpp	Mon Nov 29 16:58:26 2010 +0100
@@ -42,7 +42,9 @@
 
   JNIEnv *env = ((JavaThread *) Thread::current())->jni_environment();
   jclass klass = env->FindClass("com/sun/hotspot/c1x/VMEntriesNative");
-  assert(klass != NULL, "c1x VMEntries class not found");
+  if (klass == NULL) {
+    fatal("c1x VMEntries class not found");
+  }
   env->RegisterNatives(klass, VMEntries_methods, VMEntries_methods_count());
 
   {