public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/16997] New: WeakHashMap leaks memory
@ 2004-08-12  2:18 mckinlay at redhat dot com
  2004-10-29 17:59 ` [Bug libgcj/16997] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: mckinlay at redhat dot com @ 2004-08-12  2:18 UTC (permalink / raw)
  To: java-prs

The following test case leaks memory. It shouldn't because there is no reference
kept to the keys in the WeakHashMap. Apparantly, something associated with
WeakReferences isn't being released.

import java.util.WeakHashMap;

public class WH2 
{
  public static void main(String[] s) 
  {
    WeakHashMap w = new WeakHashMap();
    while (true)
      {
        WH2 w2 = new WH2();
	w.put(w2, null);
      }
  }
}

-- 
           Summary: WeakHashMap leaks memory
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mckinlay at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16997


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libgcj/16997] WeakHashMap leaks memory
  2004-08-12  2:18 [Bug libgcj/16997] New: WeakHashMap leaks memory mckinlay at redhat dot com
@ 2004-10-29 17:59 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-29 17:59 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-29 17:59 -------
confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-29 17:59:02
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16997


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libgcj/16997] WeakHashMap leaks memory
       [not found] <bug-16997-8172@http.gcc.gnu.org/bugzilla/>
@ 2012-02-22 13:49 ` xiaoyuanbo at yeah dot net
  0 siblings, 0 replies; 3+ messages in thread
From: xiaoyuanbo at yeah dot net @ 2012-02-22 13:49 UTC (permalink / raw)
  To: java-prs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16997

xiaoyuanbo <xiaoyuanbo at yeah dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xiaoyuanbo at yeah dot net

--- Comment #2 from xiaoyuanbo <xiaoyuanbo at yeah dot net> 2012-02-22 12:55:42 UTC ---
you want save disk


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-22 13:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-12  2:18 [Bug libgcj/16997] New: WeakHashMap leaks memory mckinlay at redhat dot com
2004-10-29 17:59 ` [Bug libgcj/16997] " pinskia at gcc dot gnu dot org
     [not found] <bug-16997-8172@http.gcc.gnu.org/bugzilla/>
2012-02-22 13:49 ` xiaoyuanbo at yeah dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).