76 md = 2, // miscellaneous data for initializing tables, etc.
77 mc = 3, // miscellaneous code - vtable replacement.
78 n_regions = 4
79 };
80
81 // Accessor functions to save shared space created for metadata, which has
82 // extra space allocated at the end for miscellaneous data and code.
83 static void set_max_alignment(int alignment) {
84 CDS_ONLY(_max_alignment = alignment);
85 }
86
87 static int max_alignment() {
88 CDS_ONLY(return _max_alignment);
89 NOT_CDS(return 0);
90 }
91
92 static void prepare_for_dumping() NOT_CDS_RETURN;
93 static void preload_and_dump(TRAPS) NOT_CDS_RETURN;
94 static int preload_and_dump(const char * class_list_path,
95 GrowableArray<Klass*>* class_promote_order,
96 TRAPS) NOT_CDS_RETURN;
97
98 static ReservedSpace* shared_rs() {
99 CDS_ONLY(return _shared_rs);
100 NOT_CDS(return NULL);
101 }
102
103 static void set_shared_rs(ReservedSpace* rs) {
104 CDS_ONLY(_shared_rs = rs;)
105 }
106
107 static void set_archive_loading_failed() {
108 _archive_loading_failed = true;
109 }
110 static bool map_shared_spaces(FileMapInfo* mapinfo) NOT_CDS_RETURN_(false);
111 static void initialize_shared_spaces() NOT_CDS_RETURN;
112
113 // Return true if given address is in the mapped shared space.
114 static bool is_in_shared_space(const void* p) NOT_CDS_RETURN_(false);
115
116 static void generate_vtable_methods(void** vtbl_list,
|
76 md = 2, // miscellaneous data for initializing tables, etc.
77 mc = 3, // miscellaneous code - vtable replacement.
78 n_regions = 4
79 };
80
81 // Accessor functions to save shared space created for metadata, which has
82 // extra space allocated at the end for miscellaneous data and code.
83 static void set_max_alignment(int alignment) {
84 CDS_ONLY(_max_alignment = alignment);
85 }
86
87 static int max_alignment() {
88 CDS_ONLY(return _max_alignment);
89 NOT_CDS(return 0);
90 }
91
92 static void prepare_for_dumping() NOT_CDS_RETURN;
93 static void preload_and_dump(TRAPS) NOT_CDS_RETURN;
94 static int preload_and_dump(const char * class_list_path,
95 GrowableArray<Klass*>* class_promote_order,
96 TRAPS) NOT_CDS_RETURN_(0);
97
98 static ReservedSpace* shared_rs() {
99 CDS_ONLY(return _shared_rs);
100 NOT_CDS(return NULL);
101 }
102
103 static void set_shared_rs(ReservedSpace* rs) {
104 CDS_ONLY(_shared_rs = rs;)
105 }
106
107 static void set_archive_loading_failed() {
108 _archive_loading_failed = true;
109 }
110 static bool map_shared_spaces(FileMapInfo* mapinfo) NOT_CDS_RETURN_(false);
111 static void initialize_shared_spaces() NOT_CDS_RETURN;
112
113 // Return true if given address is in the mapped shared space.
114 static bool is_in_shared_space(const void* p) NOT_CDS_RETURN_(false);
115
116 static void generate_vtable_methods(void** vtbl_list,
|