https://issues.apache.org/bugzilla/show_bug.cgi?id=57145

            Bug ID: 57145
           Summary: RandomController : Use ThreadLocalRandom instead of
                    Random for better performances
           Product: JMeter
           Version: 2.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]

As per javadoc:
http://docs.oracle.com/javase/7/docs/api/java/util/Random.html

"Instances of java.util.Random are threadsafe. However, the concurrent use of
the same java.util.Random instance across threads may encounter contention and
consequent poor performance. Consider instead using ThreadLocalRandom in
multithreaded designs."

As we need to support Java6, I will be using Doug Lea class which is under
Commons Creative License 1.0 and compatible with Apache license:

    http://www.apache.org/legal/resolved.html#category-b


Can Works Placed In The Public Domain Be Included In Apache Products?

Works in the public domain (or covered by a license treated similarly) may be
included within Apache products. Attribution is required (in a similar fashion
to permissive licenses).

A work should be treated as being in the public domain when one of the
following applies:

    the work is covered by
        the Creative Commons Public Domain Mark, or
        a suitable dedication (to the public domain) by the authors; or => WE
ARE IN THIS CASE.
    clear evidence exists that US copyright for the work
        has expired, or
        cannot be claimed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to