changeset 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 c75bb9cd1994
children 3c39e028b931
files src/share/vm/graal/graalRuntime.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp	Thu Oct 02 06:33:16 2014 -0700
+++ b/src/share/vm/graal/graalRuntime.cpp	Thu Oct 02 06:35:56 2014 -0700
@@ -1015,7 +1015,7 @@
 oop GraalRuntime::compute_graal_class_loader(TRAPS) {
   assert(UseGraalClassLoader, "must be");
   TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/hotspot/loader/Factory", CHECK_NULL);
-  KlassHandle klass = SystemDictionary::resolve_or_null(name, CHECK_NULL);
+  KlassHandle klass = SystemDictionary::resolve_or_fail(name, true, CHECK_NULL);
 
   TempNewSymbol getClassLoader = SymbolTable::new_symbol("newClassLoader", CHECK_NULL);
   JavaValue result(T_OBJECT);