|
41 | 41 | #include "runtime/java.hpp" |
42 | 42 | #include "runtime/mutexLocker.hpp" |
43 | 43 | #include "utilities/bitMap.inline.hpp" |
44 | | - |
45 | 44 | #if INCLUDE_G1GC |
46 | 45 | #include "gc/g1/g1CollectedHeap.hpp" |
47 | 46 | #include "gc/g1/g1HeapRegion.hpp" |
@@ -188,7 +187,7 @@ void ArchiveHeapWriter::ensure_buffer_space(size_t min_bytes) { |
188 | 187 | } |
189 | 188 |
|
190 | 189 | void ArchiveHeapWriter::copy_roots_to_buffer(GrowableArrayCHeap<oop, mtClassShared>* roots) { |
191 | | - Klass* k = Universe::objectArrayKlassObj(); // already relocated to point to archived klass |
| 190 | + Klass* k = Universe::objectArrayKlass(); // already relocated to point to archived klass |
192 | 191 | int length = roots->length(); |
193 | 192 | _heap_roots_word_size = objArrayOopDesc::object_size(length); |
194 | 193 | size_t byte_size = _heap_roots_word_size * HeapWordSize; |
@@ -315,7 +314,7 @@ int ArchiveHeapWriter::filler_array_length(size_t fill_bytes) { |
315 | 314 |
|
316 | 315 | HeapWord* ArchiveHeapWriter::init_filler_array_at_buffer_top(int array_length, size_t fill_bytes) { |
317 | 316 | assert(UseCompressedClassPointers, "Archived heap only supported for compressed klasses"); |
318 | | - Klass* oak = Universe::objectArrayKlassObj(); // already relocated to point to archived klass |
| 317 | + Klass* oak = Universe::objectArrayKlass(); // already relocated to point to archived klass |
319 | 318 | HeapWord* mem = offset_to_buffered_address<HeapWord*>(_buffer_used); |
320 | 319 | memset(mem, 0, fill_bytes); |
321 | 320 | oopDesc::set_mark(mem, markWord::prototype()); |
@@ -594,7 +593,7 @@ void ArchiveHeapWriter::relocate_embedded_oops(GrowableArrayCHeap<oop, mtClassSh |
594 | 593 | // Relocate HeapShared::roots(), which is created in copy_roots_to_buffer() and |
595 | 594 | // doesn't have a corresponding src_obj, so we can't use EmbeddedOopRelocator on it. |
596 | 595 | oop requested_roots = requested_obj_from_buffer_offset(_heap_roots_offset); |
597 | | - update_header_for_requested_obj(requested_roots, nullptr, Universe::objectArrayKlassObj()); |
| 596 | + update_header_for_requested_obj(requested_roots, nullptr, Universe::objectArrayKlass()); |
598 | 597 | int length = roots != nullptr ? roots->length() : 0; |
599 | 598 | for (int i = 0; i < length; i++) { |
600 | 599 | if (UseCompressedOops) { |
|
0 commit comments