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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b21

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: