This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 36396 - Memory leak running two Ant scripts with overlapping scope
Summary: Memory leak running two Ant scripts with overlapping scope
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2003-10-02 05:11 UTC by Jesse Glick
Modified: 2005-07-14 16:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-10-02 05:11:32 UTC
Project 1 begins. Saves original System.{out,err}
- the good ones. Sets streams to
DemuxOutputStream(P1). Project 2 begins. Saves
DOS(P1) and sets DOS(P2). P1 ends, sets streams to
orig. P2 ends, sets streams back to DOS(P1). Now
the VM has a hard ref to P1 (and its classloader,
taskdefs, etc. etc.) -> mem leak.

Should centralize stream handling so overlapped
runs will finally set streams back to originals.
Comment 1 Jesse Glick 2003-10-02 21:18:58 UTC
Including patch for issue #36393:

committed   * Up-To-Date  1.4        
ant/src-bridge/org/apache/tools/ant/module/bridge/impl/BridgeImpl.java
committed   * Up-To-Date  1.4        
ant/src/org/apache/tools/ant/module/bridge/AntBridge.java
Comment 2 Marek Grummich 2004-02-23 15:54:05 UTC
Jesse, as a reporter could you verify this bug to close its life
cycle? Thanks!
Comment 3 Jesse Glick 2004-02-23 17:10:57 UTC
See comment in issue #36393.
Comment 4 Jaromir Uhrik 2005-07-14 16:18:02 UTC
Verified.