mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8147026: Convert an assert in ClassLoaderData to a guarantee
Guarantee is to ensure classloader is a valid oop will help catch the errors at an early stage rather than crashing the JVM later on in the GC Reviewed-by: coleenp
This commit is contained in:
parent
84d06ff2d0
commit
5c6e28cc60
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ inline ClassLoaderData* ClassLoaderData::class_loader_data(oop loader) {
|
|||
|
||||
|
||||
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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue