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

Make sure Context.anonymousHostClasses doesn't grow unbounded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • b84
    • generic
    • generic

        We never remove entries from Context.anonymousHostClasses even if the script related to the code source was unloaded. Suggestion is to use a custom subclass of WeakReference that carries the CodeSource key in conjunction with a reference queue. WeakHashMap can not be used since it holds keys weakly instead of values.

              attila Attila Szegedi
              attila Attila Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: