Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a realloc() function for DirectByteBuffers to stem memory leak
The workingMemory buffer was being allocated anew for every time a compressor was pulled out of the codec pool, causing a slow leak. This patch uses undocumented APIs to proactively free memory when new buffers need to be allocated
- Loading branch information
1 parent
6cbf4e2
commit 91cf4d9
Showing
3 changed files
with
72 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters