mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8274788: Support archived heap objects in ParallelGC
Reviewed-by: iklam, ayang, tschatzl
This commit is contained in:
parent
fc918a73d0
commit
234c17e8ff
7 changed files with 156 additions and 1 deletions
|
@ -283,6 +283,15 @@ void PSOldGen::shrink(size_t bytes) {
|
|||
}
|
||||
}
|
||||
|
||||
void PSOldGen::complete_loaded_archive_space(MemRegion archive_space) {
|
||||
HeapWord* cur = archive_space.start();
|
||||
while (cur < archive_space.end()) {
|
||||
_start_array.allocate_block(cur);
|
||||
size_t word_size = cast_to_oop(cur)->size();
|
||||
cur += word_size;
|
||||
}
|
||||
}
|
||||
|
||||
void PSOldGen::resize(size_t desired_free_space) {
|
||||
const size_t alignment = virtual_space()->alignment();
|
||||
const size_t size_before = virtual_space()->committed_size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue