hotspot/src/share/vm/classfile/classLoaderData.inline.hpp
changeset 38146 1fa5504cd68d
parent 35498 392b50de06c6
child 46729 c62d2e8b2728
--- a/hotspot/src/share/vm/classfile/classLoaderData.inline.hpp	Fri Apr 29 14:17:34 2016 +0300
+++ b/hotspot/src/share/vm/classfile/classLoaderData.inline.hpp	Tue Apr 26 23:29:51 2016 +0530
@@ -45,7 +45,7 @@
 
 
 inline ClassLoaderData *ClassLoaderDataGraph::find_or_create(Handle loader, TRAPS) {
-  assert(loader() != NULL,"Must be a class loader");
+  guarantee(loader() != NULL && loader()->is_oop(), "Loader must be oop");
   // Gets the class loader data out of the java/lang/ClassLoader object, if non-null
   // it's already in the loader_data, so no need to add
   ClassLoaderData* loader_data= java_lang_ClassLoader::loader_data(loader());