< prev index next >

src/hotspot/share/classfile/moduleEntry.cpp

Print this page

        

*** 202,212 **** return ((_reads != NULL) && !_reads->is_empty()); } // Purge dead module entries out of reads list. void ModuleEntry::purge_reads() { ! assert(SafepointSynchronize::is_at_safepoint(), "must be at safepoint"); if (_must_walk_reads && has_reads_list()) { // This module's _must_walk_reads flag will be reset based // on the remaining live modules on the reads list. _must_walk_reads = false; --- 202,212 ---- return ((_reads != NULL) && !_reads->is_empty()); } // Purge dead module entries out of reads list. void ModuleEntry::purge_reads() { ! assert_locked_or_safepoint(Module_lock); if (_must_walk_reads && has_reads_list()) { // This module's _must_walk_reads flag will be reset based // on the remaining live modules on the reads list. _must_walk_reads = false;
*** 243,253 **** } } } void ModuleEntry::delete_reads() { - assert(SafepointSynchronize::is_at_safepoint(), "must be at safepoint"); delete _reads; _reads = NULL; } ModuleEntry* ModuleEntry::create_unnamed_module(ClassLoaderData* cld) { --- 243,252 ----
*** 317,328 **** : Hashtable<Symbol*, mtModule>(table_size, sizeof(ModuleEntry)) { } ModuleEntryTable::~ModuleEntryTable() { - assert_locked_or_safepoint(Module_lock); - // Walk through all buckets and all entries in each bucket, // freeing each entry. for (int i = 0; i < table_size(); ++i) { for (ModuleEntry* m = bucket(i); m != NULL;) { ModuleEntry* to_remove = m; --- 316,325 ----
< prev index next >