Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalRuntime.cpp @ 17319:57b6965524a2
graal init: fail if Factory class cannot be resolved
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 02 Oct 2014 06:35:56 -0700 |
parents | b8f54c5ec73a |
children | f55f2d400797 |
comparison
equal
deleted
inserted
replaced
17318:c75bb9cd1994 | 17319:57b6965524a2 |
---|---|
1013 } | 1013 } |
1014 | 1014 |
1015 oop GraalRuntime::compute_graal_class_loader(TRAPS) { | 1015 oop GraalRuntime::compute_graal_class_loader(TRAPS) { |
1016 assert(UseGraalClassLoader, "must be"); | 1016 assert(UseGraalClassLoader, "must be"); |
1017 TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/hotspot/loader/Factory", CHECK_NULL); | 1017 TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/hotspot/loader/Factory", CHECK_NULL); |
1018 KlassHandle klass = SystemDictionary::resolve_or_null(name, CHECK_NULL); | 1018 KlassHandle klass = SystemDictionary::resolve_or_fail(name, true, CHECK_NULL); |
1019 | 1019 |
1020 TempNewSymbol getClassLoader = SymbolTable::new_symbol("newClassLoader", CHECK_NULL); | 1020 TempNewSymbol getClassLoader = SymbolTable::new_symbol("newClassLoader", CHECK_NULL); |
1021 JavaValue result(T_OBJECT); | 1021 JavaValue result(T_OBJECT); |
1022 JavaCalls::call_static(&result, klass, getClassLoader, vmSymbols::void_classloader_signature(), CHECK_NULL); | 1022 JavaCalls::call_static(&result, klass, getClassLoader, vmSymbols::void_classloader_signature(), CHECK_NULL); |
1023 return (oop) result.get_jobject(); | 1023 return (oop) result.get_jobject(); |