Hello again!
We have a request to improve jtreg test.
The test had been written to verify fix for memory leak during class
redefinition.
The problem is that it always is reported as PASSED even in the
presence of the leak.
The proposed change is platform specific.
It allows memory leak detection only on Linux.
This is because the memory leak was in native code, so there's no easy
way to detect it from within Java code.
Here's the webrev for JDK8 repository:
http://cr.openjdk.java.net/~igerasim/8016838/0/webrev/
The surprising thing is that modified test detected the leak with the
latest JDK8!
Latest 6 and 7 are fine, so it might be regression in JDK8.
I've filled a bug http://bugs.sun.com/view_bug.do?bug_id=8019845
"Memory leak during class redefenition" (not yet available.)
As pointed out by Stefan Karlsson, the detected leak may not be related
to the class redefinition and be related to [1] instead.
However the webrev is still relevant, so welcome to review!
[1] http://bugs.sun.com/view_bug.do?bug_id=8003419
Sincerely yours,
Ivan Gerasimov