On Tue, 22 Sep 2026 09:26:48 GMT, Serguei Spitsyn <[email protected]> wrote:
> 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). This pull request has now been integrated. Changeset: d63696bd Author: Serguei Spitsyn <[email protected]> URL: https://git.openjdk.org/jdk/commit/d63696bdd02413aacca0437e320258376a2d2511 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod 8390472: Capability can_support_virtual_threads must be rejected with -XX:-DoJVMTIVirtualThreadTransitions Reviewed-by: cjplummer, lmesnik ------------- PR: https://git.openjdk.org/jdk/pull/33001
