[lworld] Suspicious RefArrayKlass creation

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • repo-valhalla
    • Affects Version/s: repo-valhalla
    • Component/s: hotspot

      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;

            Assignee:
            Quan Anh Mai
            Reporter:
            Quan Anh Mai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: