From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26193 invoked by alias); 12 Aug 2004 02:18:43 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 26059 invoked by uid 48); 12 Aug 2004 02:18:43 -0000 Date: Thu, 12 Aug 2004 02:18:00 -0000 From: "mckinlay at redhat dot com" To: java-prs@gcc.gnu.org Message-ID: <20040812021841.16997.mckinlay@redhat.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libgcj/16997] New: WeakHashMap leaks memory X-Bugzilla-Reason: CC X-SW-Source: 2004-q3/txt/msg00219.txt.bz2 List-Id: 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