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

The map convertedTypes of MappedMXBeanType should not be WeakHashMap

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: core-svc
    • Labels:

      Description

      The class MappedMXBeanType sits in the package sun.management, it is used only for the platform MXBeans, and all types saved in its map are from the rt.jar, and the types will not be removed from a VM, so no memory leak problem here. Use WeakHashMap for the map convertedTypes is unnecessary, use simply HashMap is enough and improves performance.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sjiang Shanliang Jiang (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: