Skip to content
Snippets Groups Projects
Commit 7085c0e4 authored by Igor Fedorenko's avatar Igor Fedorenko Committed by Shawn O. Pearce
Browse files

Explicitly release resources used by java.util.zip.Deflater


Deflater can use significant amount of native (i.e. C) heap
space. Failure to promptly release this memory results
in native memory leak in some cases, particularly severe for
VMs with large java max heap size. For example, running
Team->Commit in one of my EGit workspaces results in ~500M
java process size increase without any significant change
to amount of used java heap when JVM is started with -Xmx1024m.

Change-Id: I649679a8df5683ebedd9380d703513d31c625932
Signed-off-by: default avatarIgor Fedorenko <igor@ifedorenko.com>
Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
parent b427e32c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment