Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8340176

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • core-svc

      The "-noclassgc" is an undocumented java launcher option, which the java launcher internally converts to the HotSpot VM specific "-Xnoclassgc" before passing it to the JVM.

      The test/jdk/java/lang/management/MemoryMXBean/LowMemoryTest2.java should instead use "-Xnoclassgc" which is specified in the java command specification https://docs.oracle.com/en/java/javase/22/docs/specs/man/java.html#extra-options-for-java as being specific to Hotspot JVM.

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: