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

java.lang.Thread should have @Contended on TLR fields

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 8
    • None
    • core-libs
    • b98
    • Not verified

    Description

      After ThreadLocalRandom state was merged into Thread, we now have to deal with the false sharing induced by heavily-updated fields in Thread. TLR was padded before, and it should make sense to make Thread bear @Contended annotation to isolate its fields in the same manner.

      See the discussion http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-June/018090.html for steps to reproduce.

      Attachments

        Issue Links

          Activity

            People

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: