src/hotspot/share/classfile/classLoaderData.hpp
changeset 48873 9536c39ac6de
parent 48871 120d6893f32f
child 48874 f09fdaad7321
equal deleted inserted replaced
48872:c7774afc93e3 48873:9536c39ac6de
    77   static ClassLoaderData* _saved_unloading;
    77   static ClassLoaderData* _saved_unloading;
    78   static bool _should_purge;
    78   static bool _should_purge;
    79   // OOM has been seen in metaspace allocation. Used to prevent some
    79   // OOM has been seen in metaspace allocation. Used to prevent some
    80   // allocations until class unloading
    80   // allocations until class unloading
    81   static bool _metaspace_oom;
    81   static bool _metaspace_oom;
       
    82 
       
    83   static volatile size_t  _num_instance_classes;
       
    84   static volatile size_t  _num_array_classes;
    82 
    85 
    83   static ClassLoaderData* add(Handle class_loader, bool anonymous, TRAPS);
    86   static ClassLoaderData* add(Handle class_loader, bool anonymous, TRAPS);
    84   static void post_class_unload_events();
    87   static void post_class_unload_events();
    85  public:
    88  public:
    86   static ClassLoaderData* find_or_create(Handle class_loader, TRAPS);
    89   static ClassLoaderData* find_or_create(Handle class_loader, TRAPS);
   152   static void dump() { dump_on(tty); }
   155   static void dump() { dump_on(tty); }
   153   static void verify();
   156   static void verify();
   154   static void print_creation(outputStream* out, Handle loader, ClassLoaderData* cld, TRAPS);
   157   static void print_creation(outputStream* out, Handle loader, ClassLoaderData* cld, TRAPS);
   155 
   158 
   156   static bool unload_list_contains(const void* x);
   159   static bool unload_list_contains(const void* x);
       
   160 
       
   161   // instance and array class counters
       
   162   static inline size_t num_instance_classes();
       
   163   static inline size_t num_array_classes();
       
   164   static inline void inc_instance_classes(size_t count);
       
   165   static inline void dec_instance_classes(size_t count);
       
   166   static inline void inc_array_classes(size_t count);
       
   167   static inline void dec_array_classes(size_t count);
       
   168 
   157 #ifndef PRODUCT
   169 #ifndef PRODUCT
   158   static bool contains_loader_data(ClassLoaderData* loader_data);
   170   static bool contains_loader_data(ClassLoaderData* loader_data);
   159 #endif
   171 #endif
   160 
   172 
   161 #if INCLUDE_TRACE
   173 #if INCLUDE_TRACE