|
Quick Lists
|
|
Bug ID:
|
4035345
|
|
Votes
|
0
|
|
Synopsis
|
String.intern() fails after about 100,000 calls
|
|
Category
|
java:runtime
|
|
Reported Against
|
1.1
, 1.1.1
, 1.1.3
, 1.0fcs
|
|
Release Fixed
|
1.2(1.2beta)
|
|
State
|
11-Closed,
Unverified,
bug
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
1240681
,
4072736
,
4134584
|
|
Submit Date
|
28-FEB-1997
|
|
Description
|
for (int ndx = 0; ndx < 100000; ndx++) {
String.valueOf(ndx).intern();
}
======================================================================
|
|
Work Around
|
======================================================================
|
|
Evaluation
|
Sheng now has a fix for this in 1.2beta. We finally garbage collect interned
strings!
xxxxx@xxxxx 1997-09-10
|
|
Comments
|
Submitted On 12-JUN-1998
gojomo
Um, it doesn't sound like GC'ing interned Strings will solve this particular
problem. What if all 32K strings continue to be referenced elsewhere, and hence
can't be GC'ed?
Sounds more like a problem with the hash buckets hitting a size limitation in
the internal intern lookup table...
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |