Avoid loading FileInput-/OutputStream$AltFinalizer

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: None
    • Component/s: 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>).

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

              Created:
              Updated:
              Resolved: