RFR: 8244297: Provide utility for testing for memory leaks [v6]

Florian Kirmaier fkirmaier at openjdk.java.net
Thu Oct 22 19:29:31 UTC 2020


On Sat, 17 Oct 2020 13:22:35 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> modules/javafx.base/src/test/java/test/util/memory/JMemoryBuddy.java line 52:
>> 
>>> 50:     private static int garbageAmount = 999999;
>>> 51:     private static String MX_BEAN_PROXY_TYPE = "com.sun.management:type=HotSpotDiagnostic";
>>> 52:     private static String outputFolderString = ".";
>> 
>> I am not sure of the directory that we use to save any runtime artifacts, but there must be one common directory that we should use here also.
>
> As long as this is somewhere under the `build/` dir of the project in question, it is OK. If not, then the default needs to be change.

The newest version is checking for either a target or build folder, which usually depends on the build system. So it should be fine now.

-------------

PR: https://git.openjdk.java.net/jfx/pull/204


More information about the openjfx-dev mailing list