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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: