public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
* [Bug libgcj/18187] New: ava.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC @ 2004-10-27 19:44 ovidr at users dot sourceforge dot net 2004-10-27 19:46 ` [Bug libgcj/18187] " pinskia at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: ovidr at users dot sourceforge dot net @ 2004-10-27 19:44 UTC (permalink / raw) To: java-prs During garbage collection, the WeakHashMap will throw a NoSuchElementException when performing the methods: .keySet().toArray() .clear(); and maybe more. Sun's java does not. Here is an example: gcc version 4.0.0 20041014 (experimental) gcj -main=WH WH.java import java.util.*; public class WH { public static void main(String[] s) { Thread t = new Thread() { public void run() { while (true) { System.gc(); try { Thread.sleep(1000); } catch (Exception e) { } } } }; WeakHashMap w = new WeakHashMap(); for (int i = 0; i < 10000; i++) w.put(new WH(), null); t.setDaemon(true); t.start(); try { w.clear(); } catch (NoSuchElementException n) { System.out.println("From .clear(): "); n.printStackTrace(); } for (int i = 0; i < 10000; i++) w.put(new WH(), null); try { for (int i = 0; i < 1000; i++) System.out.print("["+w.keySet().toArray().length+"]"); } catch (NoSuchElementException n) { System.out.println("iFrom .toArray():"); n.printStackTrace(); } } } -- Summary: ava.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ovidr at users dot sourceforge dot net 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=18187 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/18187] ava.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC 2004-10-27 19:44 [Bug libgcj/18187] New: ava.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC ovidr at users dot sourceforge dot net @ 2004-10-27 19:46 ` pinskia at gcc dot gnu dot org 2004-10-28 14:26 ` [Bug libgcj/18187] java.util.WeakHashMap$WeakEntrySet.next() " pinskia at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-27 19:46 UTC (permalink / raw) To: java-prs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-27 19:46 ------- *** This bug has been marked as a duplicate of 16998 *** -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18187 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/18187] java.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC 2004-10-27 19:44 [Bug libgcj/18187] New: ava.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC ovidr at users dot sourceforge dot net 2004-10-27 19:46 ` [Bug libgcj/18187] " pinskia at gcc dot gnu dot org @ 2004-10-28 14:26 ` pinskia at gcc dot gnu dot org 2004-10-28 14:26 ` pinskia at gcc dot gnu dot org 2004-10-28 14:26 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-28 14:26 UTC (permalink / raw) To: java-prs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-28 14:26 ------- *** Bug 16998 has been marked as a duplicate of this bug. *** -- What |Removed |Added ---------------------------------------------------------------------------- CC| |mckinlay at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18187 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/18187] java.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC 2004-10-27 19:44 [Bug libgcj/18187] New: ava.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC ovidr at users dot sourceforge dot net 2004-10-27 19:46 ` [Bug libgcj/18187] " pinskia at gcc dot gnu dot org 2004-10-28 14:26 ` [Bug libgcj/18187] java.util.WeakHashMap$WeakEntrySet.next() " pinskia at gcc dot gnu dot org @ 2004-10-28 14:26 ` pinskia at gcc dot gnu dot org 2004-10-28 14:26 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-28 14:26 UTC (permalink / raw) To: java-prs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-28 14:25 ------- Lets reopen this one. -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18187 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/18187] java.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC 2004-10-27 19:44 [Bug libgcj/18187] New: ava.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC ovidr at users dot sourceforge dot net ` (2 preceding siblings ...) 2004-10-28 14:26 ` pinskia at gcc dot gnu dot org @ 2004-10-28 14:26 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-28 14:26 UTC (permalink / raw) To: java-prs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-28 14:26 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-10-28 14:26:40 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18187 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-10-28 14:26 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-10-27 19:44 [Bug libgcj/18187] New: ava.util.WeakHashMap$WeakEntrySet.next() throws NoSuchElementException during GC ovidr at users dot sourceforge dot net 2004-10-27 19:46 ` [Bug libgcj/18187] " pinskia at gcc dot gnu dot org 2004-10-28 14:26 ` [Bug libgcj/18187] java.util.WeakHashMap$WeakEntrySet.next() " pinskia at gcc dot gnu dot org 2004-10-28 14:26 ` pinskia at gcc dot gnu dot org 2004-10-28 14:26 ` pinskia at gcc dot gnu dot org
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).