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

(thread) Merge ThreadLocalRandom state into java.lang.Thread

XMLWordPrintable

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

      See original discussion: http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-January/013429.html

      Quote: "When we introduced ThreadLocalRandom, we conservatively implemented it to use an actual ThreadLocal. However, as it becomes more widely used, it is worth improving the implementation by housing ThreadLocalRandom state (and related bookkeeping) in class Thread itself. This would entail three fields (16 total bytes)."

            chegar Chris Hegarty
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: