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

Load from initializing arraycopy uses wrong memory state

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21
    • Verification:
      Verified

      Backports

        Description

            static int test1() {
                int[] src = new int[10];
                test_dummy = src;
                int[] dst = new int[10];
                src[1] = 0x42;
                System.arraycopy(src, 1, dst, 1, 9);
                return dst[1];
            }

        generates a load from src[1] on the raw memory slice that can be reordered with the store to src[1]. Always fail on 8. Only fail on 9 & 10 if we're unlucky with load scheduling.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                roland Roland Westrelin
                Reporter:
                roland Roland Westrelin
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: