8274788: Support archived heap objects in ParallelGC

Reviewed-by: iklam, ayang, tschatzl
This commit is contained in:
Calvin Cheung 2022-03-02 16:17:21 +00:00
parent fc918a73d0
commit 234c17e8ff
7 changed files with 156 additions and 1 deletions

View file

@ -273,6 +273,11 @@ class ParallelScavengeHeap : public CollectedHeap {
WorkerThreads& workers() {
return _workers;
}
// Support for loading objects from CDS archive into the heap
bool can_load_archived_objects() const { return UseCompressedOops; }
HeapWord* allocate_loaded_archive_space(size_t size);
void complete_loaded_archive_space(MemRegion archive_space);
};
// Class that can be used to print information about the