Mercurial > hg > truffle
diff src/share/vm/graal/graalRuntime.cpp @ 5526:87e4aed94b26
Remove HotSpotCompiler interface, let HotSpotCompilerImpl implement GraalRuntime (in preparation of renaming).
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 08 Jun 2012 18:31:33 +0200 |
parents | 77d302416830 |
children | 120820e30baa |
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp Fri Jun 08 17:55:28 2012 +0200 +++ b/src/share/vm/graal/graalRuntime.cpp Fri Jun 08 18:31:33 2012 +0200 @@ -23,14 +23,9 @@ #include "precompiled.hpp" +#include "graal/graalVMToCompiler.hpp" + // JVM_InitializeGraalRuntime JVM_ENTRY(jobject, JVM_InitializeGraalRuntime(JNIEnv *env, jclass graalclass)) - ThreadToNativeFromVM ttnfv(thread); - jclass klass = env->FindClass("com/oracle/graal/hotspot/HotSpotGraalRuntime"); - guarantee(klass != NULL, "Could not find class com.oracle.graal.hotspot.HotSpotGraalRuntime"); - jmethodID constructor = env->GetMethodID(klass, "<init>", "()V"); - guarantee(constructor != NULL, "Constructor of HotSpotGraalRuntime must not have any parameters"); - jobject newObj = env->AllocObject(klass); - env->CallVoidMethod(newObj, constructor); - return newObj; + return VMToCompiler::compilerPermObject(); JVM_END \ No newline at end of file