8206009: Move CDS java heap object archiving code to heapShared.hpp and heapShared.cpp

Restructure and cleanup java heap object archiving code.

Reviewed-by: coleenp, iklam
This commit is contained in:
Jiangli Zhou 2018-10-09 15:58:07 -04:00
parent 4f4a2385c5
commit a2ad8f419f
22 changed files with 350 additions and 307 deletions

View file

@ -30,6 +30,7 @@
#include "interpreter/linkResolver.hpp"
#include "interpreter/rewriter.hpp"
#include "logging/log.hpp"
#include "memory/heapShared.hpp"
#include "memory/metadataFactory.hpp"
#include "memory/metaspaceClosure.hpp"
#include "memory/metaspaceShared.hpp"
@ -777,7 +778,7 @@ oop ConstantPoolCache::archived_references() {
if (CompressedOops::is_null(_archived_references)) {
return NULL;
}
return MetaspaceShared::materialize_archived_object(_archived_references);
return HeapShared::materialize_archived_object(_archived_references);
}
void ConstantPoolCache::set_archived_references(oop o) {