Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8346680

[lworld] Field flattening when composing value classes should be revisited

XMLWordPrintable

      Current implementation forces a value class to be atomic if it contains atomic flat fields, but this is policy prevents the flattening of big loosely consistent values.
      The policy should changed to flatten atomic fields only in atomic containers for now.
      In the future, we might want to be able to flatten atomic values inside non-atomic containers, but we have to be sure that the inner values are then always copied atomically. The way the interpreter and the runtime perform the bulk copying already guarantees that. Once the JITs are able to provide the same guarantees, the flattening policy will be updated again.

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

              Created:
              Updated:
              Resolved: