This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/21703] New: hang when rapidly calling String.intern()


[ 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]