8191585: VM anonymous classes created during CDS dump time cause crash

Reviewed-by: hseigel, mseledtsov, ccheung
This commit is contained in:
Ioi Lam 2018-03-06 22:08:30 -08:00
parent da93b76ec8
commit bc202d97bd
5 changed files with 149 additions and 0 deletions

View file

@ -331,7 +331,13 @@ class ClassLoaderData : public CHeapObj<mtClass> {
bool is_the_null_class_loader_data() const {
return this == _the_null_class_loader_data;
}
// Returns true if this class loader data is for the system class loader.
// (Note that the class loader data may be anonymous.)
bool is_system_class_loader_data() const;
// Returns true if this class loader data is for the platform class loader.
// (Note that the class loader data may be anonymous.)
bool is_platform_class_loader_data() const;
// Returns true if this class loader data is for the boot class loader.