JDK-8291508 : Fix some tests with "requires vm.jvmti & vm.continuations"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-07-28
  • Updated: 2022-09-11
  • Resolved: 2022-08-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 20
20 b09Fixed
Related Reports
Relates :  
Description
vmTestbase/nsk/jvmti/GetThreadInfo/thrinfo001/TestDescription.java and vmTestbase/nsk/jvmti/RedefineClasses/StressRedefineVirtual/StressRedefineVirtual.java are added or modified by JDK-8284161, and they are failed if Loom or JVMTI is not supported.

The issue could be reproduced by zero. For example:
--------------------------------------------------
TEST: vmTestbase/nsk/jvmti/GetThreadInfo/thrinfo001/TestDescription.java
...
STDOUT:
exec [/home/aoqi/tag_req/d-default-zero-release/images/jdk/bin/java, -XX:MaxRAMPercentage=0.892857, -Djava.io.tmpdir=/home/aoqi/tag_req/d-default-zero-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jvmti_GetThreadInfo_thrinfo001_TestDescription_java/tmp, -cp, /home/aoqi/tag_req/d-default-zero-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jvmti_GetThreadInfo_thrinfo001_TestDescription_java/classes/0/vmTestbase/nsk/jvmti/GetThreadInfo/thrinfo001/TestDescription.d:/home/aoqi/tag_req/d-default-zero-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jvmti_GetThreadInfo_thrinfo001_TestDescription_java/classes/0/vmTestbase:/home/aoqi/tag_req/d-default-zero-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jvmti_GetThreadInfo_thrinfo001_TestDescription_java/classes/0/test/lib, -Djava.library.path=/home/aoqi/tag_req/d-default-zero-release/images/test/hotspot/jtreg/native, --enable-preview, -agentlib:thrinfo001, nsk.jvmti.GetThreadInfo.thrinfo001]
Error occurred during initialization of VM
agent library failed to init: thrinfo001
Wrong result of a valid call to GetEnv !
...
--------------------------------------------------
TEST: vmTestbase/nsk/jvmti/RedefineClasses/StressRedefineVirtual/StressRedefineVirtual.java
...
STDOUT:
exec [/home/aoqi/tag_req/d-default-zero-release/images/jdk/bin/java, -XX:MaxRAMPercentage=0.892857, -Djava.io.tmpdir=/home/aoqi/tag_req/d-default-zero-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jvmti_RedefineClasses_StressRedefineVirtual_StressRedefineVirtual_java/tmp, -cp, /home/aoqi/tag_req/d-default-zero-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jvmti_RedefineClasses_StressRedefineVirtual_StressRedefineVirtual_java/classes/0/vmTestbase/nsk/jvmti/RedefineClasses/StressRedefineVirtual/StressRedefineVirtual.d:/home/aoqi/tag_req/d-default-zero-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jvmti_RedefineClasses_StressRedefineVirtual_StressRedefineVirtual_java/classes/0/vmTestbase:/home/aoqi/tag_req/d-default-zero-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jvmti_RedefineClasses_StressRedefineVirtual_StressRedefineVirtual_java/classes/0/test/lib, -Djava.library.path=/home/aoqi/tag_req/d-default-zero-release/images/test/hotspot/jtreg/native, --enable-preview, -agentlib:stressRedefine, nsk.jvmti.RedefineClasses.StressRedefine, ./bin, -corruptingBytecodeProbability, 0.0, -virtualThreads]
Error occurred during initialization of VM
agent library failed to init: stressRedefine
test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses/StressRedefine/stressRedefine.cpp: Failed to call GetEnv: error=-3
...
--------------------------------------------------
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk19u/pull/14 Date: 2022-08-24 17:27:26 +0000
24-08-2022

Fix request (19u) Low risk, only test changes. Clean backport. The changed tests passed.
24-08-2022

Changeset: 0cc49fd9 Author: Ao Qi <aoqi@openjdk.org> Committer: Serguei Spitsyn <sspitsyn@openjdk.org> Date: 2022-08-03 17:33:11 +0000 URL: https://git.openjdk.org/jdk/commit/0cc49fd9eac5259543a3c41b7a32b6e01a1b0ad5
03-08-2022

The original two XMLDecoder tests are split into JDK-8291640.
01-08-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/9677 Date: 2022-07-28 16:11:12 +0000
28-07-2022