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

Replace uses of ThreadLocal<Random> with JDK7 ThreadLocalRandom

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      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.1.patch
          43 kB
          Sean Busbey
        2. HADOOP-11970.2.patch
          43 kB
          Sean Busbey
        3. HADOOP-11970.3.patch
          43 kB
          Sean Busbey

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: