ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ThreadLocalRandom.java
Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Fri Nov 25 16:39:48 2022 UTC (17 months, 3 weeks ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.65: +1 -1 lines
Diff to previous 1.65
whitespace

Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Fri Mar 25 14:31:27 2022 UTC (2 years, 1 month ago) by dl
Branch: MAIN
Changes since 1.64: +1 -1 lines
Diff to previous 1.64
Mark ThreadLocalRandom final because it is not subclassable

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Fri Mar 18 16:01:42 2022 UTC (2 years, 2 months ago) by dl
Branch: MAIN
Changes since 1.63: +320 -747 lines
Diff to previous 1.63
jdk17+ suppressWarnings, FJ updates

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Sun Sep 8 01:11:04 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.62: +12 -12 lines
Diff to previous 1.62
yet another Unsafe mechanics style canonicalization

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Sun Aug 11 15:58:11 2019 UTC (4 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.61: +12 -12 lines
Diff to previous 1.61
rewrite Unsafe mechanics using new objectFieldOffset overload; only create one Unsafe field per nestmate

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Sat Aug 10 16:48:05 2019 UTC (4 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.60: +12 -24 lines
Diff to previous 1.60
drop support for jdk9 and jdk10; drop backward compatibility hacks

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Mon Dec 3 02:38:07 2018 UTC (5 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.59: +1 -1 lines
Diff to previous 1.59
avoid creating duplicate @systemProperty tags

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Sun Dec 2 23:06:16 2018 UTC (5 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.58: +1 -1 lines
Diff to previous 1.58
8214559: Use {@systemProperty} for definitions of system properties

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Sun Mar 11 18:00:06 2018 UTC (6 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.57: +1 -1 lines
Diff to previous 1.57
prefer throwing ExceptionInInitializerError from <clinit> to throwing Error

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Wed Jan 10 13:52:06 2018 UTC (6 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.56: +1 -1 lines
Diff to previous 1.56
typo

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Tue Oct 3 22:27:04 2017 UTC (6 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.55: +4 -1 lines
Diff to previous 1.55
8188047: Add SplittableRandom.nextBytes

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Sat May 13 17:37:21 2017 UTC (7 years ago) by jsr166
Branch: MAIN
Changes since 1.54: +1 -1 lines
Diff to previous 1.54
8179515: Class java.util.concurrent.ThreadLocalRandom fails to Initialize when using SecurityManager

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Tue May 9 11:06:25 2017 UTC (7 years ago) by dl
Branch: MAIN
Changes since 1.53: +3 -5 lines
Diff to previous 1.53
Use VM.getSavedProperty to check for secure random seed

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Mon Feb 20 22:07:50 2017 UTC (7 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.52: +1 -2 lines
Diff to previous 1.52
coalesce multiple @throws IllegalArgumentException for doubles; consistent with ints and longs

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Tue Jan 31 03:38:15 2017 UTC (7 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.51: +1 -1 lines
Diff to previous 1.51
upstream style

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Sun Jan 29 04:34:59 2017 UTC (7 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.50: +0 -28 lines
Diff to previous 1.50
upstream sync

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Sun Nov 13 03:37:41 2016 UTC (7 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.49: +1 -1 lines
Diff to previous 1.49
typo

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Sun Nov 13 03:36:50 2016 UTC (7 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.48: +3 -4 lines
Diff to previous 1.48
revise (uselessly inaccessible) next(int) method javadoc, implementation and tests

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Sun Nov 13 02:23:22 2016 UTC (7 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.47: +1 -1 lines
Diff to previous 1.47
typo

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Sat Nov 12 00:11:54 2016 UTC (7 years, 6 months ago) by dl
Branch: MAIN
Changes since 1.46: +10 -1 lines
Diff to previous 1.46
Document useless next(int)

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Sat Jun 4 20:29:20 2016 UTC (7 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.45: +2 -1 lines
Diff to previous 1.45
import jdk.internal.misc.Unsafe

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Thu Jun 2 13:40:42 2016 UTC (7 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44
whitespace

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Thu Jun 2 13:16:27 2016 UTC (7 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.43: +56 -1 lines
Diff to previous 1.43
VarHandles conversion; pass 1

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Tue Apr 19 22:55:30 2016 UTC (8 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.42: +1 -1 lines
Diff to previous 1.42
s~\bsun\.(misc\.Unsafe)\b~jdk.internal.$1~g;
s~\bputOrdered([A-Za-z]+)\b~put${1}Release~g

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Tue Apr 19 21:49:40 2016 UTC (8 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.41: +1 -1 lines
Diff to previous 1.41
new Double -> Double.valueOf

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Sat Feb 20 23:24:57 2016 UTC (8 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.40: +58 -55 lines
Diff to previous 1.40
harden <clinit> to survive static initialization circularity

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Fri Feb 19 03:39:15 2016 UTC (8 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.39: +5 -3 lines
Diff to previous 1.39
unlambdafy to "fix" 8150014: java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java fails with NoClassDefFoundError

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Sat Jan 2 02:27:03 2016 UTC (8 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.38: +5 -6 lines
Diff to previous 1.38
stop using jdk internal API GetPropertyAction

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Sun Sep 20 17:03:23 2015 UTC (8 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37
Terminate javadoc with a period.

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Sun Sep 20 02:42:13 2015 UTC (8 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.36: +6 -3 lines
Diff to previous 1.36
make nested classes final

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Sat Sep 19 21:39:03 2015 UTC (8 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.35: +1 -2 lines
Diff to previous 1.35
whitespace

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Sat Sep 19 21:07:11 2015 UTC (8 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.34: +21 -21 lines
Diff to previous 1.34
ALL_CAPS for static finals

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Wed Jan 7 02:40:31 2015 UTC (9 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.33: +1 -1 lines
Diff to previous 1.33
whitespace

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Sun Jan 4 09:15:11 2015 UTC (9 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.32: +17 -19 lines
Diff to previous 1.32
standardize Unsafe mechanics; slightly smaller bytecode

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Sun Jan 4 01:06:15 2015 UTC (9 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.31: +1 -1 lines
Diff to previous 1.31
use ReflectiveOperationException for Unsafe mechanics

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 07:55:49 2014 UTC (9 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30
whitespace

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Tue Dec 2 12:17:34 2014 UTC (9 years, 5 months ago) by dl
Branch: MAIN
Changes since 1.29: +1 -30 lines
Diff to previous 1.29
Remove network interface probe

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Thu Jun 19 17:20:41 2014 UTC (9 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.28: +1 -1 lines
Diff to previous 1.28
whitespace

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Thu Jun 19 12:01:07 2014 UTC (9 years, 11 months ago) by dl
Branch: MAIN
Changes since 1.27: +2 -5 lines
Diff to previous 1.27
Avoid double-initialization

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Fri May 30 16:12:06 2014 UTC (9 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.26: +1 -1 lines
Diff to previous 1.26
whitespace

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Sun May 25 02:33:45 2014 UTC (9 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.25: +1 -1 lines
Diff to previous 1.25
time to start using diamond <>

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Mon Oct 7 10:54:23 2013 UTC (10 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.24: +4 -5 lines
Diff to previous 1.24
incorporate review comments; undo miscommit

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Mon Sep 16 23:21:43 2013 UTC (10 years, 8 months ago) by dl
Branch: MAIN
Changes since 1.23: +27 -4 lines
Diff to previous 1.23
Use interface address for initial seed

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Mon Sep 16 11:40:51 2013 UTC (10 years, 8 months ago) by dl
Branch: MAIN
Changes since 1.22: +26 -4 lines
Diff to previous 1.22
Reinstate optional SecureRandom initialization

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Fri Aug 23 23:02:59 2013 UTC (10 years, 8 months ago) by dl
Branch: MAIN
Changes since 1.21: +4 -28 lines
Diff to previous 1.21
Avoid VM startup problems

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Thu Aug 22 23:36:02 2013 UTC (10 years, 8 months ago) by dl
Branch: MAIN
Changes since 1.20: +84 -48 lines
Diff to previous 1.20
Optional SecureRandom initial seed

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Tue Aug 13 17:13:49 2013 UTC (10 years, 9 months ago) by dl
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19
javadoc touchups

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Fri Aug 9 12:13:14 2013 UTC (10 years, 9 months ago) by dl
Branch: MAIN
Changes since 1.18: +727 -107 lines
Diff to previous 1.18
Use variant of SplittableRandom algorithm

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Fri Jul 19 19:34:43 2013 UTC (10 years, 10 months ago) by jsr166
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17
enforce standard javadoc tag order

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Thu Jul 18 18:21:23 2013 UTC (10 years, 10 months ago) by jsr166
Branch: MAIN
Changes since 1.16: +1 -0 lines
Diff to previous 1.16
javadoc warning fixes: add serialization method @throws

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Thu Jul 18 17:48:28 2013 UTC (10 years, 10 months ago) by jsr166
Branch: MAIN
Changes since 1.15: +5 -3 lines
Diff to previous 1.15
javadoc warning fixes: add serialization method @param

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Wed Feb 27 16:55:04 2013 UTC (11 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.14: +15 -16 lines
Diff to previous 1.14
improve internal docs

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Mon Feb 25 22:26:49 2013 UTC (11 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.13: +23 -0 lines
Diff to previous 1.13
reinstate @serialFields and writeObject, but un-padded

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Fri Feb 22 13:47:07 2013 UTC (11 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12
remove stale comment

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Tue Feb 19 19:21:44 2013 UTC (11 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.11: +0 -44 lines
Diff to previous 1.11
simplify serialization mechanics and serialized form

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Mon Jan 28 17:42:42 2013 UTC (11 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.10: +4 -3 lines
Diff to previous 1.10
convert to javadoc comment

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Tue Jan 22 17:17:52 2013 UTC (11 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.9: +5 -2 lines
Diff to previous 1.9
Auto-initializae in secondarySeed

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Wed Jan 16 15:04:04 2013 UTC (11 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.8: +56 -3 lines
Diff to previous 1.8
lambda-lib support

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Fri Jan 11 05:38:42 2013 UTC (11 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7
typo

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Thu Jan 10 15:03:25 2013 UTC (11 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.6: +194 -33 lines
Diff to previous 1.6
Reinvent ThreadLocalRandom and new dependents

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Tue Mar 15 19:47:03 2011 UTC (13 years, 2 months ago) by jsr166
Branch: MAIN
CVS Tags: release-1_7_0
Changes since 1.5: +1 -1 lines
Diff to previous 1.5
Update Creative Commons license URL in legal notices

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Mon Sep 27 19:15:15 2010 UTC (13 years, 7 months ago) by jsr166
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4
use blessed declaration modifier order

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Thu Jun 3 01:03:13 2010 UTC (13 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.3: +5 -7 lines
Diff to previous 1.3
6955840: ThreadLocalRandom bug - overriden setSeed(long) method is not invoked for java.util.Random(long)

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Wed Aug 19 18:07:36 2009 UTC (14 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.2: +14 -13 lines
Diff to previous 1.2
sync with jsr166 package

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Fri Jul 31 20:41:13 2009 UTC (14 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.1: +9 -10 lines
Diff to previous 1.1
sync with jsr166 package

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sat Jul 25 01:06:20 2009 UTC (14 years, 9 months ago) by jsr166
Branch: MAIN
branch jsr166y into java.util.concurrent

Convenience Links

Links to HEAD: (view) (download) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a