Name: rmT116609 Date: 12/04/2003
A DESCRIPTION OF THE REQUEST :
Line 985 in file BitSet.java (method clone()) is:
>>>
result.bits = new long[bits.length];
<<<
It should be changed to:
>>>
result.bits = new long[unitsInUse];
<<<
JUSTIFICATION :
It is not necessary to allocate more space than required. In the current
version, the unused space is never de-allocated.
(Incident Review ID: 229199)
======================================================================
- relates to
-
JDK-6404711 BitSet serialization optimization defeats explicit capacity management
-
- Closed
-