If I add this to lworld, running the compiler tests crashes the VM:
diff --git a/src/hotspot/share/oops/refArrayKlass.cpp b/src/hotspot/share/oops/refArrayKlass.cpp
index ad57b082751..c69898e5343 100644
--- a/src/hotspot/share/oops/refArrayKlass.cpp
+++ b/src/hotspot/share/oops/refArrayKlass.cpp
@@ -62,6 +62,7 @@ RefArrayKlass* RefArrayKlass::allocate_refArray_klass(ClassLoaderData* loader_da
TRAPS) {
assert(!ArrayKlass::is_null_restricted(props) || (n == 1 && element_klass->is_inline_klass()),
"null-free unsupported");
+ assert(!ArrayKlass::is_non_atomic(props), "ref arrays cannot be non-atomic");
// Eagerly allocate the direct array supertype.
Klass* super_klass = nullptr;