Mercurial > hg > graal-compiler
diff src/share/vm/jvmci/jvmciRuntime.cpp @ 21616:4c146c9367b6
recast VM compilation request via JVMCI to be a HotSpot JVMCI event, removing the last direct reference to a Graal class in the VM (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sun, 31 May 2015 23:57:31 +0200 |
parents | 2f92172fa320 |
children | ed013f4d38e5 |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciRuntime.cpp Sun May 31 14:30:13 2015 +0200 +++ b/src/share/vm/jvmci/jvmciRuntime.cpp Sun May 31 23:57:31 2015 +0200 @@ -1054,12 +1054,11 @@ _shutdown_called = true; JavaThread* THREAD = JavaThread::current(); HandleMark hm(THREAD); - TempNewSymbol name = SymbolTable::new_symbol("com/oracle/jvmci/hotspot/HotSpotJVMCIRuntime", CHECK_ABORT); - KlassHandle klass = load_required_class(name); + Handle receiver = get_HotSpotJVMCIRuntime(); JavaValue result(T_VOID); JavaCallArguments args; - args.push_oop(get_HotSpotJVMCIRuntime()); - JavaCalls::call_special(&result, klass, vmSymbols::shutdown_method_name(), vmSymbols::void_method_signature(), &args, CHECK_ABORT); + args.push_oop(receiver); + JavaCalls::call_special(&result, receiver->klass(), vmSymbols::shutdown_method_name(), vmSymbols::void_method_signature(), &args, CHECK_ABORT); JNIHandles::destroy_global(_HotSpotJVMCIRuntime_instance); _HotSpotJVMCIRuntime_instance = NULL;