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

Class.newInstance should check caller cache when Security Manager is enabled

XMLWordPrintable

      Class.newInstance caches the last caller and this can help speed up subsequent calls to newInstance if the caller has not changed. However this optimization is not used for a code path involving the SecurityManager (SM), and changing that code to check the cache would help improve performance when an SM is enabled.

            mullan Sean Mullan
            mullan Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: