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

[TESTBUG] compiler/{jvmci,aot} tests should not run with GCs that do not support JVMCI/AOT

XMLWordPrintable

    • b17

        Currently, trying to run tier1 with either +UseShenandoahGC or +UseZGC would fail, because compiler/aot would try to run and fail. These tests should be more resilient and skipped when unsupported GC is selected.

        For example:

        $ CONF=linux-x86_64-server-fastdebug make images test TEST=compiler/aot/ TEST_VM_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC"
        ...
        OpenJDK 64-Bit Server VM warning: Shenandoah does not support AOT at this moment, disabling UseAOT
        Error occurred during initialization of VM
        JVMCI Compiler does not support selected GC: shenandoah gc

        Those tests already have:
          * @requires vm.aot

        ...maybe we should either extend this with listing unsupported collectors, or disable vm.aot when specific GC is enabled.

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: