Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
21615:838f005f9aec | 21616:4c146c9367b6 |
---|---|
1052 void JVMCIRuntime::shutdown() { | 1052 void JVMCIRuntime::shutdown() { |
1053 if (_HotSpotJVMCIRuntime_instance != NULL) { | 1053 if (_HotSpotJVMCIRuntime_instance != NULL) { |
1054 _shutdown_called = true; | 1054 _shutdown_called = true; |
1055 JavaThread* THREAD = JavaThread::current(); | 1055 JavaThread* THREAD = JavaThread::current(); |
1056 HandleMark hm(THREAD); | 1056 HandleMark hm(THREAD); |
1057 TempNewSymbol name = SymbolTable::new_symbol("com/oracle/jvmci/hotspot/HotSpotJVMCIRuntime", CHECK_ABORT); | 1057 Handle receiver = get_HotSpotJVMCIRuntime(); |
1058 KlassHandle klass = load_required_class(name); | |
1059 JavaValue result(T_VOID); | 1058 JavaValue result(T_VOID); |
1060 JavaCallArguments args; | 1059 JavaCallArguments args; |
1061 args.push_oop(get_HotSpotJVMCIRuntime()); | 1060 args.push_oop(receiver); |
1062 JavaCalls::call_special(&result, klass, vmSymbols::shutdown_method_name(), vmSymbols::void_method_signature(), &args, CHECK_ABORT); | 1061 JavaCalls::call_special(&result, receiver->klass(), vmSymbols::shutdown_method_name(), vmSymbols::void_method_signature(), &args, CHECK_ABORT); |
1063 | 1062 |
1064 JNIHandles::destroy_global(_HotSpotJVMCIRuntime_instance); | 1063 JNIHandles::destroy_global(_HotSpotJVMCIRuntime_instance); |
1065 _HotSpotJVMCIRuntime_instance = NULL; | 1064 _HotSpotJVMCIRuntime_instance = NULL; |
1066 } | 1065 } |
1067 } | 1066 } |