equal
deleted
inserted
replaced
38 #include "memory/filemap.hpp" |
38 #include "memory/filemap.hpp" |
39 #include "memory/metaspace.hpp" |
39 #include "memory/metaspace.hpp" |
40 #include "memory/metaspaceShared.hpp" |
40 #include "memory/metaspaceShared.hpp" |
41 #include "oops/objArrayOop.hpp" |
41 #include "oops/objArrayOop.hpp" |
42 #include "oops/oop.inline.hpp" |
42 #include "oops/oop.inline.hpp" |
43 #include "runtime/logTimer.hpp" |
43 #include "runtime/timerTrace.hpp" |
44 #include "runtime/os.hpp" |
44 #include "runtime/os.hpp" |
45 #include "runtime/signature.hpp" |
45 #include "runtime/signature.hpp" |
46 #include "runtime/vmThread.hpp" |
46 #include "runtime/vmThread.hpp" |
47 #include "runtime/vm_operations.hpp" |
47 #include "runtime/vm_operations.hpp" |
48 #include "utilities/defaultStream.hpp" |
48 #include "utilities/defaultStream.hpp" |
770 } |
770 } |
771 |
771 |
772 // Preload classes from a list, populate the shared spaces and dump to a |
772 // Preload classes from a list, populate the shared spaces and dump to a |
773 // file. |
773 // file. |
774 void MetaspaceShared::preload_and_dump(TRAPS) { |
774 void MetaspaceShared::preload_and_dump(TRAPS) { |
775 { TraceStartupTime timer("Dump Shared Spaces"); |
775 { TraceTime timer("Dump Shared Spaces", TRACETIME_LOG(Info, startuptime)); |
776 ResourceMark rm; |
776 ResourceMark rm; |
777 char class_list_path_str[JVM_MAXPATHLEN]; |
777 char class_list_path_str[JVM_MAXPATHLEN]; |
778 |
778 |
779 tty->print_cr("Allocated shared space: " SIZE_FORMAT " bytes at " PTR_FORMAT, |
779 tty->print_cr("Allocated shared space: " SIZE_FORMAT " bytes at " PTR_FORMAT, |
780 MetaspaceShared::shared_rs()->size(), |
780 MetaspaceShared::shared_rs()->size(), |