105 static void initialize_dumptime_shared_and_meta_spaces() NOT_CDS_RETURN; |
105 static void initialize_dumptime_shared_and_meta_spaces() NOT_CDS_RETURN; |
106 static void initialize_runtime_shared_and_meta_spaces() NOT_CDS_RETURN; |
106 static void initialize_runtime_shared_and_meta_spaces() NOT_CDS_RETURN; |
107 static void post_initialize(TRAPS) NOT_CDS_RETURN; |
107 static void post_initialize(TRAPS) NOT_CDS_RETURN; |
108 |
108 |
109 // Delta of this object from the bottom of the archive. |
109 // Delta of this object from the bottom of the archive. |
110 static uintx object_delta(void* obj) { |
110 static uintx object_delta_uintx(void* obj) { |
111 assert(DumpSharedSpaces, "supported only for dumping"); |
111 assert(DumpSharedSpaces, "supported only for dumping"); |
112 assert(shared_rs()->contains(obj), "must be"); |
112 assert(shared_rs()->contains(obj), "must be"); |
113 address base_address = address(shared_rs()->base()); |
113 address base_address = address(shared_rs()->base()); |
114 uintx delta = address(obj) - base_address; |
114 uintx deltax = address(obj) - base_address; |
115 return delta; |
115 return deltax; |
|
116 } |
|
117 |
|
118 static u4 object_delta_u4(void* obj) { |
|
119 // offset is guaranteed to be less than MAX_SHARED_DELTA in DumpRegion::expand_top_to() |
|
120 uintx deltax = object_delta_uintx(obj); |
|
121 guarantee(deltax <= MAX_SHARED_DELTA, "must be 32-bit offset"); |
|
122 return (u4)deltax; |
116 } |
123 } |
117 |
124 |
118 static void set_archive_loading_failed() { |
125 static void set_archive_loading_failed() { |
119 _archive_loading_failed = true; |
126 _archive_loading_failed = true; |
120 } |
127 } |