Possible FileHandle leak in BenchmarkGenerator

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon May 2 11:51:09 UTC 2016


Hi Alex,

On 05/02/2016 01:42 AM, Alex Blewitt wrote:
> 1. Is my understanding on the right lines for how it works and how a
> leak may occur? 

Yes, we are apparently leaking the PrintWriter there.

> 2. Should I create a bug, and if so, where? 

Created one for you:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7901666

> 3. Should I contribute a fix, and if so, how?

Not this one, but I would appreciate if you can review/test the
candidate fix, see the bug comments. (I'd use try-with-resources, but
our codebase is still at Java 6).

Thanks,
-Aleksey




More information about the jmh-dev mailing list