Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix PhantomReference approach for TempFileCreator. #8614
Pull Request Checklist
Should fix problem with TempFile objects not being released in memory (including proper deletion of underlining file).
Remove tempFile from closure (to avoid strong reference to tempFile object preventing GC from triggering finalizeReferent of phantom reference).
This issue was found as a result of memory leak investigation (all TempFile objects created are held in memory while play application is alive).