jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1654707 - /jmeter/trunk/src/core/org/apache/jmeter/util/ThreadLocalRandom.java
Date Sun, 25 Jan 2015 21:38:15 GMT
Author: pmouawad
Date: Sun Jan 25 21:38:15 2015
New Revision: 1654707

URL: http://svn.apache.org/r1654707
Log:
Revert and comment as per Felix note

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/ThreadLocalRandom.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/ThreadLocalRandom.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/ThreadLocalRandom.java?rev=1654707&r1=1654706&r2=1654707&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/ThreadLocalRandom.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/ThreadLocalRandom.java Sun Jan 25 21:38:15
2015
@@ -53,6 +53,12 @@ public class ThreadLocalRandom extends R
      * unintentionally impact other usages by the thread.
      */
     boolean initialized;
+    
+    // Padding to help avoid memory contention among seed updates in
+    // different TLRs in the common case that they are located near
+    // each other.
+    @SuppressWarnings("unused")
+    private long pad0, pad1, pad2, pad3, pad4, pad5, pad6, pad7;
 
     /**
      * The actual ThreadLocal



Mime
View raw message