Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1539

Fix memory leak in InteropUtil.cpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • REEF Bridge
    • None

    Description

      ManagedByteArrayFromJavaByteArray in Org.Apache.REEF.Bridge.InteropUtil.cpp uses JNI GetByteArrayElements() but does not release the bytes. This causes the driver to slowly leak memory over time, which is exacerbated if the driver message is large.

      JNI documentation recommends that Release<PrimitiveType>ArrayElements() be called after Get<PrimitiveTypeType>ArrayElements() to avoid leaking memory, since the returned array may be a copy of the Java array.

      Attachments

        Activity

          People

            pchung13 Patrick Chung
            pchung13 Patrick Chung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: