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
...
--------------------------------------------------