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 exercise_runtime_cds_code(TRAPS) NOT_CDS_RETURN;
79 static void preload_and_dump_impl(StaticArchiveBuilder& builder, TRAPS) NOT_CDS_RETURN;
80 static void preload_classes(TRAPS) NOT_CDS_RETURN;
81
82 public:
83 static Symbol* symbol_rs_base() {
84 return (Symbol*)_symbol_rs.base();
85 }
86
87 static void initialize_for_static_dump() NOT_CDS_RETURN;
88 static void initialize_runtime_shared_and_meta_spaces() NOT_CDS_RETURN;
89 static void post_initialize(TRAPS) NOT_CDS_RETURN;
90
91 static void print_on(outputStream* st);
92
93 static void set_archive_loading_failed() {
94 _archive_loading_failed = true;
95 }
96
97 static void initialize_shared_spaces() NOT_CDS_RETURN;
98
99 // Return true if given address is in the shared metaspace regions (i.e., excluding the
100 // mapped heap region.)
|
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 exercise_runtime_cds_code(TRAPS) NOT_CDS_RETURN;
79 static void preload_and_dump_impl(StaticArchiveBuilder& builder, TRAPS) NOT_CDS_RETURN;
80 static void loadable_descriptors(TRAPS) NOT_CDS_RETURN;
81
82 public:
83 static Symbol* symbol_rs_base() {
84 return (Symbol*)_symbol_rs.base();
85 }
86
87 static void initialize_for_static_dump() NOT_CDS_RETURN;
88 static void initialize_runtime_shared_and_meta_spaces() NOT_CDS_RETURN;
89 static void post_initialize(TRAPS) NOT_CDS_RETURN;
90
91 static void print_on(outputStream* st);
92
93 static void set_archive_loading_failed() {
94 _archive_loading_failed = true;
95 }
96
97 static void initialize_shared_spaces() NOT_CDS_RETURN;
98
99 // Return true if given address is in the shared metaspace regions (i.e., excluding the
100 // mapped heap region.)
|