Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalRuntime.cpp @ 18634:b4071daf1892
ensure Graal class loader is initialized prior to loading HotSpotTruffleRuntime
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Fri, 05 Dec 2014 03:30:19 +0100 |
parents | 4ca70b51c8bb |
children | 74f612049e4e |
comparison
equal
deleted
inserted
replaced
18633:8a03753546f3 | 18634:b4071daf1892 |
---|---|
677 return JNIHandles::make_local(THREAD, GraalRuntime::get_service_impls(serviceKlass, THREAD)()); | 677 return JNIHandles::make_local(THREAD, GraalRuntime::get_service_impls(serviceKlass, THREAD)()); |
678 JVM_END | 678 JVM_END |
679 | 679 |
680 // private static TruffleRuntime Truffle.createRuntime() | 680 // private static TruffleRuntime Truffle.createRuntime() |
681 JVM_ENTRY(jobject, JVM_CreateTruffleRuntime(JNIEnv *env, jclass c)) | 681 JVM_ENTRY(jobject, JVM_CreateTruffleRuntime(JNIEnv *env, jclass c)) |
682 GraalRuntime::ensure_graal_class_loader_is_initialized(); | |
682 TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime", CHECK_NULL); | 683 TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime", CHECK_NULL); |
683 KlassHandle klass = GraalRuntime::resolve_or_fail(name, CHECK_NULL); | 684 KlassHandle klass = GraalRuntime::resolve_or_fail(name, CHECK_NULL); |
684 | 685 |
685 TempNewSymbol makeInstance = SymbolTable::new_symbol("makeInstance", CHECK_NULL); | 686 TempNewSymbol makeInstance = SymbolTable::new_symbol("makeInstance", CHECK_NULL); |
686 TempNewSymbol sig = SymbolTable::new_symbol("()Lcom/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime;", CHECK_NULL); | 687 TempNewSymbol sig = SymbolTable::new_symbol("()Lcom/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime;", CHECK_NULL); |