[lworld] C1 should use LayoutKind in its handling of flat layouts

XMLWordPrintable

      C1 still uses a logic based on fields attributes to handle flat values, and not the LayoutKind layout info, which leads to bugs like this one:

      bool needs_atomic_access = !field->is_null_free() || (field->is_volatile() && !is_naturally_atomic);

      needs_atomic_access is false for a flat field with the ATOMIC_FLAT layout and a value type with multiple fields.

      C1 code should be updated to be based on LayoudKind layout info and helper methods from JDK-8371915.

            Assignee:
            Frederic Parain
            Reporter:
            Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: