GitHub user 10110346 opened a pull request:
https://github.com/apache/spark/pull/20862
[SPARK-23744][CORE]Fix memory leak in ReadableChannelFileRegion
## What changes were proposed in this pull request?
In the class `ReadableChannelFileRegion`, the `buffer` is direct memory,
we should modify `deallocate` to free it, and `deallocate` will be called by
`release`
## How was this patch tested?
existing unit test
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/10110346/spark leakmem
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20862.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20862
----
commit 5b58c57607551328c893a3857717e4b159ecf841
Author: liuxian <liu.xian3@...>
Date: 2018-03-20T03:19:59Z
fix
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]