Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11970

Replace uses of ThreadLocal<Random> with JDK7 ThreadLocalRandom

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • None
    • None

    Description

      ThreadLocalRandom should be used when available in place of ThreadLocal<Random>. For JDK7 the difference is minimal, but JDK8 starts including optimizations for ThreadLocalRandom.

      Attachments

        1. HADOOP-11970.3.patch
          43 kB
          Sean Busbey
        2. HADOOP-11970.2.patch
          43 kB
          Sean Busbey
        3. HADOOP-11970.1.patch
          43 kB
          Sean Busbey

        Activity

          People

            busbey Sean Busbey
            busbey Sean Busbey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: