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

aarch64: prefetch the destination word for write prior to ldxr/stxr loops

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 9
    • None
    • hotspot
    • None
    • 9
    • b112
    • aarch64
    • linux

    Backports

      Description

        As discussed in LKML: http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/355996.html, the cost of changing a cacheline from shared to exclusive state can be significant, especially when this is triggered by an exclusive store, since it may result in having to retry the transaction.

        So it's better to make use of the aarch64 "prfm" instruction to prefetch cachelines for write prior to ldxr/stxr loops.

        Attachments

          Issue Links

            Activity

              People

                fyang Fei Yang
                fyang Fei Yang
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: