mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8261608: Move common CDS archive building code to archiveBuilder.cpp
Reviewed-by: coleenp, ccheung
This commit is contained in:
parent
235da6aa04
commit
d9744f6536
31 changed files with 502 additions and 637 deletions
|
@ -32,7 +32,6 @@
|
|||
#include "memory/archiveBuilder.hpp"
|
||||
#include "memory/dynamicArchive.hpp"
|
||||
#include "memory/metaspaceClosure.hpp"
|
||||
#include "memory/metaspaceShared.hpp"
|
||||
#include "memory/resourceArea.hpp"
|
||||
#include "oops/oop.inline.hpp"
|
||||
#include "runtime/atomic.hpp"
|
||||
|
@ -602,8 +601,7 @@ size_t SymbolTable::estimate_size_for_archive() {
|
|||
}
|
||||
|
||||
void SymbolTable::write_to_archive(GrowableArray<Symbol*>* symbols) {
|
||||
CompactHashtableWriter writer(int(_items_count),
|
||||
&MetaspaceShared::stats()->symbol);
|
||||
CompactHashtableWriter writer(int(_items_count), ArchiveBuilder::symbol_stats());
|
||||
copy_shared_symbol_table(symbols, &writer);
|
||||
if (!DynamicDumpSharedSpaces) {
|
||||
_shared_table.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue