reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Chung (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (REEF-1539) Fix memory leak in InteropUtil.cpp
Date Wed, 24 Aug 2016 00:24:21 GMT

     [ https://issues.apache.org/jira/browse/REEF-1539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Patrick Chung resolved REEF-1539.
---------------------------------
    Resolution: Fixed

Fixed in master.

> Fix memory leak in InteropUtil.cpp
> ----------------------------------
>
>                 Key: REEF-1539
>                 URL: https://issues.apache.org/jira/browse/REEF-1539
>             Project: REEF
>          Issue Type: Bug
>          Components: REEF Bridge
>            Reporter: Patrick Chung
>            Assignee: Patrick Chung
>
> {{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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message