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