532 ls.print("%s", msg); 533 } 534 if (name) { 535 if (strlen(name) < 256) { 536 ls.print("%s", name); 537 } else { 538 // For very long paths, we need to print each character separately, 539 // as print_cr() has a length limit 540 while (name[0] != '\0') { 541 ls.print("%c", name[0]); 542 name++; 543 } 544 } 545 } 546 ls.cr(); 547 } 548 } 549 550 void ClassLoader::setup_bootstrap_search_path() { 551 const char* sys_class_path = Arguments::get_sysclasspath(); 552 if (PrintSharedArchiveAndExit) { 553 // Don't print sys_class_path - this is the bootcp of this current VM process, not necessarily 554 // the same as the bootcp of the shared archive. 555 } else { 556 trace_class_path("bootstrap loader class path=", sys_class_path); 557 } 558 #if INCLUDE_CDS 559 if (DumpSharedSpaces) { 560 _shared_paths_misc_info->add_boot_classpath(sys_class_path); 561 } 562 #endif 563 setup_boot_search_path(sys_class_path); 564 } 565 566 #if INCLUDE_CDS 567 int ClassLoader::get_shared_paths_misc_info_size() { 568 return _shared_paths_misc_info->get_used_bytes(); 569 } 570 571 void* ClassLoader::get_shared_paths_misc_info() { | 532 ls.print("%s", msg); 533 } 534 if (name) { 535 if (strlen(name) < 256) { 536 ls.print("%s", name); 537 } else { 538 // For very long paths, we need to print each character separately, 539 // as print_cr() has a length limit 540 while (name[0] != '\0') { 541 ls.print("%c", name[0]); 542 name++; 543 } 544 } 545 } 546 ls.cr(); 547 } 548 } 549 550 void ClassLoader::setup_bootstrap_search_path() { 551 const char* sys_class_path = Arguments::get_sysclasspath(); 552 if (sys_class_path == NULL) { 553 vm_exit_during_initialization("System boot class path should not be NULL", NULL); 554 } 555 if (PrintSharedArchiveAndExit) { 556 // Don't print sys_class_path - this is the bootcp of this current VM process, not necessarily 557 // the same as the bootcp of the shared archive. 558 } else { 559 trace_class_path("bootstrap loader class path=", sys_class_path); 560 } 561 #if INCLUDE_CDS 562 if (DumpSharedSpaces) { 563 _shared_paths_misc_info->add_boot_classpath(sys_class_path); 564 } 565 #endif 566 setup_boot_search_path(sys_class_path); 567 } 568 569 #if INCLUDE_CDS 570 int ClassLoader::get_shared_paths_misc_info_size() { 571 return _shared_paths_misc_info->get_used_bytes(); 572 } 573 574 void* ClassLoader::get_shared_paths_misc_info() { |