Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
1482:2bae90a3deb9 | 1483:ba37b9335e1e |
---|---|
40 _initialized = true; | 40 _initialized = true; |
41 TRACE_C1X_1("C1XCompiler::initialize"); | 41 TRACE_C1X_1("C1XCompiler::initialize"); |
42 | 42 |
43 JNIEnv *env = ((JavaThread *) Thread::current())->jni_environment(); | 43 JNIEnv *env = ((JavaThread *) Thread::current())->jni_environment(); |
44 jclass klass = env->FindClass("com/sun/hotspot/c1x/VMEntriesNative"); | 44 jclass klass = env->FindClass("com/sun/hotspot/c1x/VMEntriesNative"); |
45 assert(klass != NULL, "c1x VMEntries class not found"); | 45 if (klass == NULL) { |
46 fatal("c1x VMEntries class not found"); | |
47 } | |
46 env->RegisterNatives(klass, VMEntries_methods, VMEntries_methods_count()); | 48 env->RegisterNatives(klass, VMEntries_methods, VMEntries_methods_count()); |
47 | 49 |
48 { | 50 { |
49 VM_ENTRY_MARK; | 51 VM_ENTRY_MARK; |
50 check_pending_exception("Could not register natives"); | 52 check_pending_exception("Could not register natives"); |