RFR [8016838] java/lang/instrument/RedefineBigClass.sh needs modification

Ivan Gerasimov ivan.gerasimov at oracle.com
Wed Jul 3 17:12:44 UTC 2013

Hello everybody!

We have a request to improve jtreg test.
The test had been written to verify fix for memory leak during class 
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:

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.)

Sincerely yours,
Ivan Gerasimov

More information about the core-libs-dev mailing list