Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4963875

RFE: Reduction of space used by instances of java.util.BitSet

XMLWordPrintable

    • b29
    • x86
    • linux



      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)
      ======================================================================

            martin Martin Buchholz
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: