358 }
359
360 delete java_lang_Class::fixup_module_field_list();
361 java_lang_Class::set_fixup_module_field_list(NULL);
362 }
363
364 void ModuleEntryTable::print(outputStream* st) {
365 st->print_cr("Module Entry Table (table_size=%d, entries=%d)",
366 table_size(), number_of_entries());
367 for (int i = 0; i < table_size(); i++) {
368 for (ModuleEntry* probe = bucket(i);
369 probe != NULL;
370 probe = probe->next()) {
371 probe->print(st);
372 }
373 }
374 }
375
376 void ModuleEntry::print(outputStream* st) {
377 ResourceMark rm;
378 st->print_cr("entry "PTR_FORMAT" name %s module "PTR_FORMAT" loader %s version %s location %s strict %s next "PTR_FORMAT,
379 p2i(this),
380 name() == NULL ? UNNAMED_MODULE : name()->as_C_string(),
381 p2i(module()),
382 loader()->loader_name(),
383 version() != NULL ? version()->as_C_string() : "NULL",
384 location() != NULL ? location()->as_C_string() : "NULL",
385 BOOL_TO_STR(!can_read_all_unnamed()), p2i(next()));
386 }
387
388 void ModuleEntryTable::verify() {
389 int element_count = 0;
390 for (int i = 0; i < table_size(); i++) {
391 for (ModuleEntry* probe = bucket(i);
392 probe != NULL;
393 probe = probe->next()) {
394 probe->verify();
395 element_count++;
396 }
397 }
398 guarantee(number_of_entries() == element_count,
|
358 }
359
360 delete java_lang_Class::fixup_module_field_list();
361 java_lang_Class::set_fixup_module_field_list(NULL);
362 }
363
364 void ModuleEntryTable::print(outputStream* st) {
365 st->print_cr("Module Entry Table (table_size=%d, entries=%d)",
366 table_size(), number_of_entries());
367 for (int i = 0; i < table_size(); i++) {
368 for (ModuleEntry* probe = bucket(i);
369 probe != NULL;
370 probe = probe->next()) {
371 probe->print(st);
372 }
373 }
374 }
375
376 void ModuleEntry::print(outputStream* st) {
377 ResourceMark rm;
378 st->print_cr("entry " PTR_FORMAT " name %s module " PTR_FORMAT " loader %s version %s location %s strict %s next " PTR_FORMAT,
379 p2i(this),
380 name() == NULL ? UNNAMED_MODULE : name()->as_C_string(),
381 p2i(module()),
382 loader()->loader_name(),
383 version() != NULL ? version()->as_C_string() : "NULL",
384 location() != NULL ? location()->as_C_string() : "NULL",
385 BOOL_TO_STR(!can_read_all_unnamed()), p2i(next()));
386 }
387
388 void ModuleEntryTable::verify() {
389 int element_count = 0;
390 for (int i = 0; i < table_size(); i++) {
391 for (ModuleEntry* probe = bucket(i);
392 probe != NULL;
393 probe = probe->next()) {
394 probe->verify();
395 element_count++;
396 }
397 }
398 guarantee(number_of_entries() == element_count,
|