runtime/Metaspace/DefineClass.java crashes with
# Internal Error (workspace/open/src/hotspot/share/runtime/synchronizer.cpp:726), pid=23915, tid=23935
# assert(Universe::verify_in_progress() || !SafepointSynchronize::is_at_safepoint()) failed: biases should not be seen by VM thread here
when runnning in Graal JIT mode.
Steps to reproduce:
> jtreg -vt -jdk:JDK-HS_fastdebug
-vmoptions:-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal
-dir:test/hotspot/jtreg runtime/Metaspace/DefineClass.java
The issue seems to be intermittent but I can reproduce it quite easy with latest jdk10-b43 and jdk/hs workspace.
The issue is also reproduced with previous jdk10 builds.