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

[TESTBUG] jvmti tests should not be executed with minimal VM

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      $ bash configure --with-jvm-variants='minimal'
      $ cd build/linux-x64
      $ make images
      # make test would fail (JDK-8251385), so let's execute the test by hand:
      $ cd $repo_root/opem/test
      $ env JAVA_HOME=/home/iklam/jdk/official/jdk14 \
          /home/iklam/jdk/tools/jtreg/5.1-b01/bin/jtreg \
          -testjdk:$repo_root/build/linux-x64/images/jdk \
          -verbose:2 -timeout:4.0 \
          -agentvm \
          -nr -w /home/iklam/tmp/jtreg/work -r /home/iklam/tmp/jtreg/report/ \
          ./hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineLeak.java
      runner starting test: serviceability/jvmti/RedefineClasses/RedefineLeak.java
      runner finished test: serviceability/jvmti/RedefineClasses/RedefineLeak.java
      Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'transformCount:10000' missing from stdout/stderr
      Test results: failed: 1

      [from RedefineLeak.jtr]
      ----------System.out:(4/673)----------
      Command line: [/jdk2/jem/build/linux-x64/images/jdk/bin/java -cp /jdk2/tmp/jtreg/work/classes/serviceability/jvmti/RedefineClasses/RedefineLeak.d:/jdk2/jem/open/test/hotspot/jtreg/serviceability/jvmti/RedefineClasses:/jdk2/tmp/jtreg/work/classes/test/lib:/jdk2/jem/open/test/lib:/jdk/tools/jtreg/5.1-b01/lib/javatest.jar:/jdk/tools/jtreg/5.1-b01/lib/jtreg.jar -XX:MetaspaceSize=12m -XX:MaxMetaspaceSize=12m -javaagent:redefineagent.jar RedefineLeak ]
      [2020-08-11T06:44:32.058319761Z] Gathering output for process 7372
      [2020-08-11T06:44:32.094908225Z] Waiting for completion for process 7372
      [2020-08-11T06:44:32.095052361Z] Waiting for completion finished for process 7372
      ----------System.err:(23/1172)----------
       stdout: [];
       stderr: [Instrumentation agents are not supported in this VM
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      ]
       exitValue = 1




        Attachments

          Activity

            People

            • Assignee:
              amenkov Alex Menkov
              Reporter:
              iklam Ioi Lam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: