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

IgnoreUnrecognizedVMOptions flag still causes failure in ArchiveHeapTestClass

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • hotspot
    • b21

    Description

      I ran the test with extra flags:
      -XX:+AlignVector -XX:+IgnoreUnrecognizedVMOptions -XX:+VerifyAlignVector

      Basically, I wanted to run over all tiers with an additional flag that may only be present on certain platforms.
      VerifyAlignVector is one that does not exist anywhere yet. But IgnoreUnrecognizedVMOptions should also make that be ignored.

      The test seems to then override with
      -XX:-IgnoreUnrecognizedVMOptions

      And produce this in the logs:
      ...
      [STDERR]
      Unrecognized VM option 'VerifyAlignVector'
      Did you mean '(+/-)AlignVector'?
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.

      [2023-10-12T16:12:18.366329418Z] Waiting for completion for process 2575300
      [2023-10-12T16:12:18.366420018Z] Waiting for completion finished for process 2575300
      [2023-10-12T16:12:18.366515027Z] Waiting for completion for process 2575300
      [2023-10-12T16:12:18.366589647Z] Waiting for completion finished for process 2575300
      ----------System.err:(22/1142)----------
       stdout: [];
       stderr: [Unrecognized VM option 'VerifyAlignVector'
      Did you mean '(+/-)AlignVector'?
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      ]
       exitValue = 1

      java.lang.RuntimeException: 'VM option 'ArchiveHeapTestClass' is develop and is available only in debug version of VM.' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
      at ArchiveHeapTestClass.mustContain(ArchiveHeapTestClass.java:92)
      at ArchiveHeapTestClass.mustFail(ArchiveHeapTestClass.java:97)
      at ArchiveHeapTestClass.testProductBuild(ArchiveHeapTestClass.java:177)
      at ArchiveHeapTestClass.main(ArchiveHeapTestClass.java:67)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)

      Attachments

        Issue Links

          Activity

            People

              rsunderbabu Ramkumar Sunderbabu
              epeter Emanuel Peter
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: