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

Jaikiran Pai jpai at openjdk.org
Mon Sep 16 09:27:38 UTC 2024


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.

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

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

Changes: https://git.openjdk.org/jdk/pull/21012/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21012&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8340176
  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/21012.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21012/head:pull/21012

PR: https://git.openjdk.org/jdk/pull/21012


More information about the core-libs-dev mailing list