126 static InstanceKlass* try_get_next_class(); 127 128 static void verify_dictionary(); 129 static void print_dictionary(outputStream* st); 130 static void print_dictionary_statistics(outputStream* st); 131 132 // CMS support. 133 static void remember_new_clds(bool remember) { _saved_head = (remember ? _head : NULL); } 134 static GrowableArray<ClassLoaderData*>* new_clds(); 135 136 static void set_should_purge(bool b) { _should_purge = b; } 137 static void purge_if_needed() { 138 // Only purge the CLDG for CMS if concurrent sweep is complete. 139 if (_should_purge) { 140 purge(); 141 // reset for next time. 142 set_should_purge(false); 143 } 144 } 145 146 static bool has_metaspace_oom() { return _metaspace_oom; } 147 static void set_metaspace_oom(bool value) { _metaspace_oom = value; } 148 149 static void dump_on(outputStream * const out) PRODUCT_RETURN; 150 static void dump() { dump_on(tty); } 151 static void verify(); 152 static void print_creation(outputStream* out, Handle loader, ClassLoaderData* cld, TRAPS); 153 154 static bool unload_list_contains(const void* x); 155 #ifndef PRODUCT 156 static bool contains_loader_data(ClassLoaderData* loader_data); 157 #endif 158 159 #if INCLUDE_TRACE 160 private: 161 static Ticks _class_unload_time; 162 static void class_unload_event(Klass* const k); 163 #endif 164 }; 165 | 126 static InstanceKlass* try_get_next_class(); 127 128 static void verify_dictionary(); 129 static void print_dictionary(outputStream* st); 130 static void print_dictionary_statistics(outputStream* st); 131 132 // CMS support. 133 static void remember_new_clds(bool remember) { _saved_head = (remember ? _head : NULL); } 134 static GrowableArray<ClassLoaderData*>* new_clds(); 135 136 static void set_should_purge(bool b) { _should_purge = b; } 137 static void purge_if_needed() { 138 // Only purge the CLDG for CMS if concurrent sweep is complete. 139 if (_should_purge) { 140 purge(); 141 // reset for next time. 142 set_should_purge(false); 143 } 144 } 145 146 static int resize_if_needed(); 147 148 static bool has_metaspace_oom() { return _metaspace_oom; } 149 static void set_metaspace_oom(bool value) { _metaspace_oom = value; } 150 151 static void dump_on(outputStream * const out) PRODUCT_RETURN; 152 static void dump() { dump_on(tty); } 153 static void verify(); 154 static void print_creation(outputStream* out, Handle loader, ClassLoaderData* cld, TRAPS); 155 156 static bool unload_list_contains(const void* x); 157 #ifndef PRODUCT 158 static bool contains_loader_data(ClassLoaderData* loader_data); 159 #endif 160 161 #if INCLUDE_TRACE 162 private: 163 static Ticks _class_unload_time; 164 static void class_unload_event(Klass* const k); 165 #endif 166 }; 167 |