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

Avoid loading FileInput-/OutputStream$AltFinalizer

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • None
    • core-libs
    • b12

      When creating a FileInputStream or FileOutputStream, we have special handling to register a cleanable if the subclass overrides close. These AltFinalizer classes are loaded eagerly, even though not strictly necessary.

      A tiny inefficiency in itself, it also causes some deopts of dependent methods during bootstrap due the introduction of a (e.g. Object.<init>).

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: