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

InflaterInputStream holds on to a temporary byte array of 512 bytes

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      The java.util.zip.InflaterInputStream has a per instance private member:

      private byte[] b = new byte[512];

      This member is only used in the implementation of the skip(...) method of this class and it has no other references/uses within that class.

      This member can be made a method local variable within the implementation of skip(...) itself to allow for it to be allocated (and GCed) if and when skip gets called.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jpai Jaikiran Pai
              Reporter:
              jpai Jaikiran Pai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: