RFR: 8340176: Replace usage of -noclassgc with -Xnoclassgc in test/jdk/java/lang/management/MemoryMXBean/LowMemoryTest2.java

Leonid Mesnik lmesnik at openjdk.org
Mon Sep 16 15:23:08 UTC 2024


On Mon, 16 Sep 2024 09:21:22 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Can I please get a review of this test-only change which replaces the usage of `-noclassgc` with `-Xnoclassgc` option when launching the test?
> 
> As noted in https://bugs.openjdk.org/browse/JDK-8340176, the `-noclassgc` is an undocumented option of the `java` launcher, which it converts to `-Xnoclassgc` before passing it to the JVM. Instead of that option, the documented `-Xnoclassgc` should be used.
> 
> No new test has been introduced and the modified test continues to pass after this change.

Marked as reviewed by lmesnik (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/21012#pullrequestreview-2306989340


More information about the serviceability-dev mailing list