diff src/hotspot/share/classfile/classLoaderData.hpp @ 49357:0b48f0aa79ec

8191585: VM anonymous classes created during CDS dump time cause crash Reviewed-by: hseigel, mseledtsov, ccheung
author iklam
date Tue, 06 Mar 2018 22:08:30 -0800
parents fde3feaaa4ed
children 601146c66cad
line wrap: on
line diff
--- a/src/hotspot/share/classfile/classLoaderData.hpp	Tue Mar 06 16:02:04 2018 -0800
+++ b/src/hotspot/share/classfile/classLoaderData.hpp	Tue Mar 06 22:08:30 2018 -0800
@@ -331,7 +331,13 @@
   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.