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

RedefineClasses leaks memory by holding all possible obsolete jmethodIDs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.4.2, 5.0
    • hotspot
    • b26
    • generic, x86
    • generic, windows_2000

        A linked list of previous versions of the class is kept to hold obsolete
        jmethodIDs. This leaks memory which matters on massive redefines used by
        profiling tools.

        ###@###.### 2004-09-30

        The linked list of previous versions of the class is also used to find
        and update the method references that are stored in the constant pool
        cache. This update is necessary so that redefined methods that make new
        calls to other redefined methods get the current version.

        ###@###.### 2004-11-12 18:19:20 GMT

        Looks like the old class' itable and vtable are also updated.

        ###@###.### 2004-11-12 18:29:15 GMT

              rfield Robert Field (Inactive)
              rfield Robert Field (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: