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

Fix AOT library loading on CPUs with 256-byte dcache line

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b16
    • CPU:
      generic
    • OS:
      generic

      Description

      Recently we tested OpenJDK on some CPUs with 256-byte dcache line. HotSpot AOT tests failed because the shared library compiled with the same VM options on the same machine cannot be loaded back to the VM.

      Below command sequence shows a way to reproduce this issue.

      $ getconf -a | grep LEVEL1_DCACHE_LINESIZE
      LEVEL1_DCACHE_LINESIZE 256

      $ jaotc --output a.so Hello.class

      $ java -XX:+UnlockExperimentalVMOptions -XX:+UseAOT -XX:AOTLibrary=./a.so -XX:+PrintAOT Hello
      Shared file ./a.so error: ContendedPaddingWidth has different value '256' from current '128'
            4 1 skipped ./a.so aot library

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pli Pengfei Li
              Reporter:
              pli Pengfei Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: