You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2015/05/19 19:50:00 UTC

[jira] [Updated] (HADOOP-11970) Replace uses of ThreadLocal with JDK7 ThreadLocalRandom

     [ https://issues.apache.org/jira/browse/HADOOP-11970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colin Patrick McCabe updated HADOOP-11970:
------------------------------------------
    Summary: Replace uses of ThreadLocal<Random> with JDK7 ThreadLocalRandom  (was: Replace uses of ThreadLocal<Random> with ThreadLocalRandom on branches that are JDK7+)

> Replace uses of ThreadLocal<Random> with JDK7 ThreadLocalRandom
> ---------------------------------------------------------------
>
>                 Key: HADOOP-11970
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11970
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Sean Busbey
>            Assignee: Sean Busbey
>         Attachments: HADOOP-11970.1.patch, HADOOP-11970.2.patch, HADOOP-11970.3.patch
>
>
> ThreadLocalRandom should be used when available in place of ThreadLocal<Random>. For JDK7 the difference is minimal, but JDK8 starts including optimizations for ThreadLocalRandom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)