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

Labels can leak C heap memory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • hotspot
    • None
    • b02
    • 6
    • b75
    • sparc
    • solaris_9

      As part of the fix for 5039499 Labels can allocate C heap memory which is normally cleaned up by its destructor. The problem is that Labels can be created as part of other resource objects, which never get their destructor called so it's destructor is never called resulting in leaks of C heap. I think it's error prone to rely on the execution of the destructor for this cleanup and in particular C1 does no such cleanup. The destruction of the CodeSection or CodeBuffer associated with the Label should force the release of any storage associated with the Labels so that Label users don't have to worry about it.

            never Tom Rodriguez
            never Tom Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: