8297309: Memory leak in ShenandoahFullGC
Reviewed-by: rkennke, shade
This commit is contained in:
parent
81eb5fbff5
commit
b80f5af698
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user