equal
deleted
inserted
replaced
77 num_non_heap_spaces = od + 1, |
77 num_non_heap_spaces = od + 1, |
78 |
78 |
79 // mapped java heap regions |
79 // mapped java heap regions |
80 first_string = od + 1, // index of first string region |
80 first_string = od + 1, // index of first string region |
81 max_strings = 2, // max number of string regions in string space |
81 max_strings = 2, // max number of string regions in string space |
|
82 last_string = first_string + max_strings - 1, |
82 first_open_archive_heap_region = first_string + max_strings, |
83 first_open_archive_heap_region = first_string + max_strings, |
83 max_open_archive_heap_region = 2, |
84 max_open_archive_heap_region = 2, |
84 |
85 |
85 last_valid_region = first_open_archive_heap_region + max_open_archive_heap_region - 1, |
86 last_valid_region = first_open_archive_heap_region + max_open_archive_heap_region - 1, |
86 n_regions = last_valid_region + 1 // total number of regions |
87 n_regions = last_valid_region + 1 // total number of regions |
109 static ArchivedObjectCache* archive_object_cache() { |
110 static ArchivedObjectCache* archive_object_cache() { |
110 return _archive_object_cache; |
111 return _archive_object_cache; |
111 } |
112 } |
112 static oop find_archived_heap_object(oop obj); |
113 static oop find_archived_heap_object(oop obj); |
113 static oop archive_heap_object(oop obj, Thread* THREAD); |
114 static oop archive_heap_object(oop obj, Thread* THREAD); |
114 static oop materialize_archived_object(oop obj); |
115 static oop materialize_archived_object(narrowOop v); |
115 static void archive_klass_objects(Thread* THREAD); |
116 static void archive_klass_objects(Thread* THREAD); |
116 #endif |
117 #endif |
117 |
118 |
118 static bool is_archive_object(oop p) NOT_CDS_JAVA_HEAP_RETURN_(false); |
119 static bool is_archive_object(oop p) NOT_CDS_JAVA_HEAP_RETURN_(false); |
119 |
120 |
218 static bool remap_shared_readonly_as_readwrite() NOT_CDS_RETURN_(true); |
219 static bool remap_shared_readonly_as_readwrite() NOT_CDS_RETURN_(true); |
219 static bool remapped_readwrite() { |
220 static bool remapped_readwrite() { |
220 CDS_ONLY(return _remapped_readwrite); |
221 CDS_ONLY(return _remapped_readwrite); |
221 NOT_CDS(return false); |
222 NOT_CDS(return false); |
222 } |
223 } |
223 |
|
224 static void print_shared_spaces(); |
|
225 |
224 |
226 static bool try_link_class(InstanceKlass* ik, TRAPS); |
225 static bool try_link_class(InstanceKlass* ik, TRAPS); |
227 static void link_and_cleanup_shared_classes(TRAPS); |
226 static void link_and_cleanup_shared_classes(TRAPS); |
228 static void check_shared_class_loader_type(InstanceKlass* ik); |
227 static void check_shared_class_loader_type(InstanceKlass* ik); |
229 |
228 |