JDK-2129620 : Memory leaks of C-heap allocated ResourceObjs
  • Type: Backport
  • Backport of: JDK-6306741
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2005-09-07
  • Updated: 2010-04-02
  • Resolved: 2006-02-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u7 b01Fixed 6Fixed
Comments
EVALUATION Fixed 6306741: Fix memory leaks in GrowableArrays used by GC. Backport memory leak cleanups in GC because customers complain when gc leaks memory more than in other places. Fix verified (y/n): y Verified by: ran GCBasher for a while, not easy to verify otherwise Other testing: runThese -jck -client/-server (which uses parallel and serial gc) Webrev: http://jruntime.east/~coleenp/webrev/6306741_bp/ Reviewed by: keith, ramki, jrose, kbr Approved by: Darin R.
27-09-2005

EVALUATION Fix memory leaks in GrowableArrays found in tiger sources that occur during GC. EG. need to call + _promo_failure_scan_stack->clear_and_deallocate(); delete _promo_failure_scan_stack; + FreeHeap(_promo_failure_scan_stack); instead of just 'delete' because 'delete' doesn't return the C_HEAP memory used by the elements.
07-09-2005