src/hotspot/share/classfile/classLoaderData.hpp
changeset 48874 f09fdaad7321
parent 48873 9536c39ac6de
child 48884 7e17b00dc245
equal deleted inserted replaced
48873:9536c39ac6de 48874:f09fdaad7321
    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;
       
    85 
    82 
    86   static ClassLoaderData* add(Handle class_loader, bool anonymous, TRAPS);
    83   static ClassLoaderData* add(Handle class_loader, bool anonymous, TRAPS);
    87   static void post_class_unload_events();
    84   static void post_class_unload_events();
    88  public:
    85  public:
    89   static ClassLoaderData* find_or_create(Handle class_loader, TRAPS);
    86   static ClassLoaderData* find_or_create(Handle class_loader, TRAPS);
   155   static void dump() { dump_on(tty); }
   152   static void dump() { dump_on(tty); }
   156   static void verify();
   153   static void verify();
   157   static void print_creation(outputStream* out, Handle loader, ClassLoaderData* cld, TRAPS);
   154   static void print_creation(outputStream* out, Handle loader, ClassLoaderData* cld, TRAPS);
   158 
   155 
   159   static bool unload_list_contains(const void* x);
   156   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 
       
   169 #ifndef PRODUCT
   157 #ifndef PRODUCT
   170   static bool contains_loader_data(ClassLoaderData* loader_data);
   158   static bool contains_loader_data(ClassLoaderData* loader_data);
   171 #endif
   159 #endif
   172 
   160 
   173 #if INCLUDE_TRACE
   161 #if INCLUDE_TRACE