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

[TESTBUG] TestHumongousClassLoader.java can fail on systems with non-g1 collector.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • gc
    • b21

      gc/g1/humongousObjects/TestHumongousClassLoader executes gc.g1.humongousObjects.ClassLoaderGenerator without specifying the GC:
       
       * @run main/othervm/timeout=240 -Xms256M -Xmx256M -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
       * gc.g1.humongousObjects.ClassLoaderGenerator 1

      However ClassLoaderGenerator instantiate G1SampleClass which has G1 specific WhiteBox method. It may cause to failure on system with non-g1 collector. Need to add -XX:+UseG1GC.

            mchernov Michail Chernov
            mchernov Michail Chernov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: