Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1x/c1x_VMExits.cpp @ 1481:fe69dec9a1ed
Added support for CompileTheWorld.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Mon, 29 Nov 2010 12:01:45 +0100 |
parents | ef7761803480 |
children | 79d04223b8a5 |
comparison
equal
deleted
inserted
replaced
1480:2fe369533fed | 1481:fe69dec9a1ed |
---|---|
41 } | 41 } |
42 | 42 |
43 Handle VMExits::instance() { | 43 Handle VMExits::instance() { |
44 if (JNIHandles::resolve(_vmExitsPermObject) == NULL) { | 44 if (JNIHandles::resolve(_vmExitsPermObject) == NULL) { |
45 KlassHandle compiler_klass = SystemDictionary::resolve_or_null(vmSymbols::com_sun_hotspot_c1x_Compiler(), SystemDictionary::java_system_loader(), NULL, Thread::current()); | 45 KlassHandle compiler_klass = SystemDictionary::resolve_or_null(vmSymbols::com_sun_hotspot_c1x_Compiler(), SystemDictionary::java_system_loader(), NULL, Thread::current()); |
46 if (compiler_klass.is_null()) { | |
47 fatal("Could not find class com.sun.hotspot.c1x.Compiler"); | |
48 } | |
46 JavaValue result(T_OBJECT); | 49 JavaValue result(T_OBJECT); |
47 JavaCallArguments args; | 50 JavaCallArguments args; |
48 JavaCalls::call_static(&result, compiler_klass(), vmSymbols::getVMExits_name(), vmSymbols::getVMExits_signature(), &args, Thread::current()); | 51 JavaCalls::call_static(&result, compiler_klass(), vmSymbols::getVMExits_name(), vmSymbols::getVMExits_signature(), &args, Thread::current()); |
49 check_pending_exception("Couldn't get VMExits"); | 52 check_pending_exception("Couldn't get VMExits"); |
50 oop res = (oop) result.get_jobject(); | 53 oop res = (oop) result.get_jobject(); |