I was running jdk/java/lang/Thread/virtual/TracePinnedThreads.java with javaagent performing some instrumentation, and the test crashed with this assertion:
# Internal Error (/home/rvansa/work/jdk/src/hotspot/share/prims/jvmtiExport.cpp:932), pid=398299, tid=398333
# assert(!_thread->is_in_any_VTMS_transition()) failed: CFLH events are not allowed in any VTMS transition
#
# JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-internal-adhoc.rvansa.jdk)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 23-internal-adhoc.rvansa.jdk, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x11e1dbf] JvmtiExport::post_class_file_load_hook(Symbol*, Handle, Handle, unsigned char**, unsigned char**, JvmtiCachedClassFileData**)+0x39f