mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6801625: CDS: HeapDump tests crash with internal error in compactingPermGenGen.cpp
Allow iteration over the shared spaces when using CDS, repealing previous proscription. Deferred further required CDS-related cleanups of perm gen to CR 6897789. Reviewed-by: phh, jmasa
This commit is contained in:
parent
56b1d0c435
commit
a3e539d0da
3 changed files with 20 additions and 6 deletions
|
@ -606,6 +606,13 @@ void OneContigSpaceCardGeneration::shrink_by(size_t bytes) {
|
|||
void OneContigSpaceCardGeneration::prepare_for_verify() {}
|
||||
|
||||
|
||||
// Override for a card-table generation with one contiguous
|
||||
// space. NOTE: For reasons that are lost in the fog of history,
|
||||
// this code is used when you iterate over perm gen objects,
|
||||
// even when one uses CDS, where the perm gen has a couple of
|
||||
// other spaces; this is because CompactingPermGenGen derives
|
||||
// from OneContigSpaceCardGeneration. This should be cleaned up,
|
||||
// see CR 6897789..
|
||||
void OneContigSpaceCardGeneration::object_iterate(ObjectClosure* blk) {
|
||||
_the_space->object_iterate(blk);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue