This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure resources used during compilation of java code are released.
Summary: Turns out that we were opening a `ZipFile` but never calling `close()` on it when compiling java code in memory from a source zip. This was causing references to the `ZipEntry` instances to be kept in perm gen space, ultimately causing it to be exhausted and making Buck fall over, complaining wildly about that. Test Plan: for i in 1 2 3 4 5 6 7 8 9 10; do rm -rf buck-out; buck build buck; done Attach jvisualvm, look at permgen space. See that's it's not totally crazy after forcing a gc. Look at a heapdump and look for ZipEntry instances. There should be none.
- Loading branch information
1 parent
44ba73a
commit 63e0e52
Showing
2 changed files
with
42 additions
and
5 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