The test `serviceability/jvmti/events/FieldModification/fieldmod02/fieldmod02.java` is crashing with the option: `-XX:-DoJVMTIVirtualThreadTransitions`. The capability `can_support_virtual_threads` must be rejected with the VM option `-XX:-DoJVMTIVirtualThreadTransitions`. The fix is implementing it. It impacts just a couple of code lines.
Testing: - Run the test `serviceability/jvmti/events/FieldModification/fieldmod02/fieldmod02.java` with the option `-XX:-DoJVMTIVirtualThreadTransitions`. Now, it is failed with rejecting the capability instead of crashing: (AddCapabilities) unexpected error: JVMTI_ERROR_NOT_AVAILABLE (98) Error occurred during initialization of VM --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8390472: capability can_support_virtual_threads must be rejected with -XX:-DoJVMTIVirtualThreadTransitions Changes: https://git.openjdk.org/jdk/pull/33001/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33001&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8390472 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/33001.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33001/head:pull/33001 PR: https://git.openjdk.org/jdk/pull/33001
