short-circuit subclass verification if not subclass or if no security manager

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 6
    • Affects Version/s: 1.4.0
    • Component/s: core-libs
    • None

      It seems that Object{Input,Output}Stream.verifySubclass could short-circuit return (before synchronizing on the aubclassAudits cache) if either of the following conditions are true:

      - the class of the stream is actually Object{Input,Output}Stream itself
      - there is no security manager

      Doing that could improve performance and/or scalability under those conditions.

            Assignee:
            Andrey Ozerov
            Reporter:
            Peter Jones (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: