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

Small memory leak when create GrowableArray with initial size 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 25
    • hotspot
    • master

      GrowableArray's c-heap allocate() does not check initial max size == 0 and calls os::malloc(0), which malloc 1 byte. After the array expands, it leaks the byte.

            zgu Zhengyu Gu
            zgu Zhengyu Gu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: