8194759: Support caching class mirror objects

Support archiving mirror objects for shared classes in 'open' archive java heap region.

Reviewed-by: coleenp, iklam, mseledtsov, tschatzl
This commit is contained in:
Jiangli Zhou 2018-03-02 17:25:55 -05:00
parent 979d5b7986
commit f987dec395
20 changed files with 1681 additions and 200 deletions

View file

@ -703,7 +703,6 @@ bool StringTable::copy_shared_string(GrowableArray<MemRegion> *string_space,
assert(MetaspaceShared::is_heap_object_archiving_allowed(), "must be");
Thread* THREAD = Thread::current();
G1CollectedHeap::heap()->begin_archive_alloc_range();
for (int i = 0; i < the_table()->table_size(); ++i) {
HashtableEntry<oop, mtSymbol>* bucket = the_table()->bucket(i);
for ( ; bucket != NULL; bucket = bucket->next()) {
@ -727,7 +726,6 @@ bool StringTable::copy_shared_string(GrowableArray<MemRegion> *string_space,
}
}
G1CollectedHeap::heap()->end_archive_alloc_range(string_space, os::vm_allocation_granularity());
return true;
}