Skip to content

Commit

Permalink
8314950: CMS may miss NMT tag after mark stack expansion
Browse files Browse the repository at this point in the history
Reviewed-by: shade, mbaesken
  • Loading branch information
zhengyu123 committed Aug 24, 2023
1 parent d0f6931 commit cde3cd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp
Expand Up @@ -5788,6 +5788,9 @@ void CMSMarkStack::expand() {
if (!_virtual_space.initialize(rs, rs.size())) {
fatal("Not enough swap for expanded marking stack");
}
// Record NMT memory type
MemTracker::record_virtual_memory_type(rs.base(), mtGC);

_base = (oop*)(_virtual_space.low());
_index = 0;
_capacity = new_capacity;
Expand Down

1 comment on commit cde3cd2

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.