8190235: Clarify ClassLoaderData::is_*_class_loader_data() method implementations

Add comments, fix a small issue with the boot loader, and add an assert.

Reviewed-by: coleenp, lfoltan, gtriantafill
This commit is contained in:
Harold Seigel 2018-02-06 13:41:49 -05:00
parent ba9f9457dd
commit 34480e526e
3 changed files with 23 additions and 9 deletions

View file

@ -344,6 +344,13 @@ class ClassLoaderData : public CHeapObj<mtClass> {
}
bool is_system_class_loader_data() const;
bool is_platform_class_loader_data() const;
// Returns true if this class loader data is for the boot class loader.
// (Note that the class loader data may be anonymous.)
bool is_boot_class_loader_data() const {
return class_loader() == NULL;
}
bool is_builtin_class_loader_data() const;
bool is_permanent_class_loader_data() const;