8297309: Memory leak in ShenandoahFullGC

Reviewed-by: rkennke, shade
This commit is contained in:
Justin King 2022-11-28 11:03:47 +00:00 committed by Aleksey Shipilev
parent 81eb5fbff5
commit b80f5af698
2 changed files with 5 additions and 0 deletions
src/hotspot/share/gc/shenandoah

@ -66,6 +66,10 @@ ShenandoahFullGC::ShenandoahFullGC() :
_gc_timer(ShenandoahHeap::heap()->gc_timer()),
_preserved_marks(new PreservedMarksSet(true)) {}
ShenandoahFullGC::~ShenandoahFullGC() {
delete _preserved_marks;
}
bool ShenandoahFullGC::collect(GCCause::Cause cause) {
vmop_entry_full(cause);
// Always success

@ -66,6 +66,7 @@ private:
public:
ShenandoahFullGC();
~ShenandoahFullGC();
bool collect(GCCause::Cause cause);
private: