ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/Exchanger.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/Exchanger.java (file contents):
Revision 1.77 by dl, Fri Jun 3 10:45:44 2016 UTC vs.
Revision 1.78 by dl, Sat Jun 4 18:46:25 2016 UTC

# Line 225 | Line 225 | public class Exchanger<V> {
225       */
226  
227      /**
228 <     * The byte distance (as a shift value) between any two used slots
229 <     * in the arena.  1 << ASHIFT should be at least cacheline size.
228 >     * The index distance (as a shift value) between any two used slots
229 >     * in the arena, spacing them out to avoid false sharing.
230       */
231 <    private static final int ASHIFT = 7;
231 >    private static final int ASHIFT = 5;
232  
233      /**
234       * The maximum supported arena index. The maximum allocatable

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines