59
60 public:
61 enum {
62 // core archive spaces
63 rw = 0, // read-write shared space
64 ro = 1, // read-only shared space
65 bm = 2, // relocation bitmaps (freed after file mapping is finished)
66 hp = 3, // heap region
67 num_core_region = 2, // rw and ro
68 n_regions = 4 // total number of regions
69 };
70
71 static void prepare_for_dumping() NOT_CDS_RETURN;
72 static void preload_and_dump(TRAPS) NOT_CDS_RETURN;
73 #ifdef _LP64
74 static void adjust_heap_sizes_for_dumping() NOT_CDS_JAVA_HEAP_RETURN;
75 #endif
76
77 private:
78 static void preload_and_dump_impl(StaticArchiveBuilder& builder, TRAPS) NOT_CDS_RETURN;
79 static void preload_classes(TRAPS) NOT_CDS_RETURN;
80
81 public:
82 static Symbol* symbol_rs_base() {
83 return (Symbol*)_symbol_rs.base();
84 }
85
86 static void initialize_for_static_dump() NOT_CDS_RETURN;
87 static void initialize_runtime_shared_and_meta_spaces() NOT_CDS_RETURN;
88 static void post_initialize(TRAPS) NOT_CDS_RETURN;
89
90 static void print_on(outputStream* st);
91
92 static void set_archive_loading_failed() {
93 _archive_loading_failed = true;
94 }
95
96 static void initialize_shared_spaces() NOT_CDS_RETURN;
97
98 // Return true if given address is in the shared metaspace regions (i.e., excluding the
99 // mapped heap region.)
|
59
60 public:
61 enum {
62 // core archive spaces
63 rw = 0, // read-write shared space
64 ro = 1, // read-only shared space
65 bm = 2, // relocation bitmaps (freed after file mapping is finished)
66 hp = 3, // heap region
67 num_core_region = 2, // rw and ro
68 n_regions = 4 // total number of regions
69 };
70
71 static void prepare_for_dumping() NOT_CDS_RETURN;
72 static void preload_and_dump(TRAPS) NOT_CDS_RETURN;
73 #ifdef _LP64
74 static void adjust_heap_sizes_for_dumping() NOT_CDS_JAVA_HEAP_RETURN;
75 #endif
76
77 private:
78 static void preload_and_dump_impl(StaticArchiveBuilder& builder, TRAPS) NOT_CDS_RETURN;
79 static void loadable_descriptors(TRAPS) NOT_CDS_RETURN;
80
81 public:
82 static Symbol* symbol_rs_base() {
83 return (Symbol*)_symbol_rs.base();
84 }
85
86 static void initialize_for_static_dump() NOT_CDS_RETURN;
87 static void initialize_runtime_shared_and_meta_spaces() NOT_CDS_RETURN;
88 static void post_initialize(TRAPS) NOT_CDS_RETURN;
89
90 static void print_on(outputStream* st);
91
92 static void set_archive_loading_failed() {
93 _archive_loading_failed = true;
94 }
95
96 static void initialize_shared_spaces() NOT_CDS_RETURN;
97
98 // Return true if given address is in the shared metaspace regions (i.e., excluding the
99 // mapped heap region.)
|