Mercurial > hg > truffle
diff src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 1045:fa2f65ebeb08
6870843: G1: G1 GC memory leak
Summary: The fix addresses two memory leaks in G1 code: (1) _evac_failure_scan_stack - a resource object allocated on the C heap was not freed; (2) RSHashTable were linked into deleted list which was only cleared at full GC.
Reviewed-by: tonyp, iveresov
author | apetrusenko |
---|---|
date | Tue, 27 Oct 2009 02:42:24 -0700 |
parents | 6270f80a7331 |
children | 3fc996d4edd2 |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp Wed Sep 30 14:50:51 2009 -0400 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp Tue Oct 27 02:42:24 2009 -0700 @@ -3136,7 +3136,7 @@ _evac_failure_scan_stack->length() == 0, "Postcondition"); assert(!_drain_in_progress, "Postcondition"); - // Don't have to delete, since the scan stack is a resource object. + delete _evac_failure_scan_stack; _evac_failure_scan_stack = NULL; }