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

Simplify lazy jmethodID cache in InstanceKlass

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 22
    • hotspot
    • None
    • b18


      InstanceKlass has a jmethodID cache that lazily grows after redefinition upon request for a new jmethodID. This lazy growth is because for obsolete methods, the method idnum is incremented.
      This lazy growth requires that jmethodIDs may have to be deleted if there's a race in creating them.
      Since redefinition is at a safepoint, we can just extend the jmethodID cache then since we know the count.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: