This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/21703] New: hang when rapidly calling String.intern()
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2005 19:55:27 -0000
- Subject: [Bug java/21703] New: hang when rapidly calling String.intern()
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[ forwarded from http://bugs.debian.org/275547 ]
falk@juist:/tmp% cat Test.java
class Test {
public static void main(String[] argv) {
for (char i = '\u0001'; i <= '\uffff'; i++) {
char[] ca = { i };
System.out.println("Interning "+((int)i)+"th String");
(new String(ca)).intern();
}
}
}
falk@juist:/tmp% gcj-3.4 -o Test --main=Test Test.java && ./Test
[...]
Interning 16380th String
Interning 16381th String
Interning 16382th String
Interning 16383th String
Interning 16384th String
[hangs infintely]
See also some analysis at the URL above. Also present in 3.3.
--
Summary: hang when rapidly calling String.intern()
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
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=21703