reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Chung (JIRA)" <>
Subject [jira] [Created] (REEF-1539) Fix memory leak in InteropUtil.cpp
Date Tue, 23 Aug 2016 00:36:21 GMT
Patrick Chung created REEF-1539:

             Summary: Fix memory leak in InteropUtil.cpp
                 Key: REEF-1539
             Project: REEF
          Issue Type: Bug
          Components: REEF Bridge
            Reporter: Patrick Chung

{{ManagedByteArrayFromJavaByteArray}} in Org.Apache.REEF.Bridge.InteropUtil.cpp uses JNI {{GetByteArrayElements}}
but does not release the bytes.

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

This message was sent by Atlassian JIRA

View raw message