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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: