public class java.util.concurrent.ThreadLocalRandom extends java.util.Random
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.concurrent.ThreadLocalRandom
super_class: java.util.Random
{
boolean initialized;
descriptor: Z
flags: (0x0000)
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -5851777807851030925
private static final java.io.ObjectStreamField[] serialPersistentFields;
descriptor: [Ljava/io/ObjectStreamField;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long GAMMA;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -7046029254386353131
private static final int PROBE_INCREMENT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1640531527
private static final long SEEDER_INCREMENT;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -4942790177534073029
private static final double DOUBLE_UNIT;
descriptor: D
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1.1102230246251565E-16
private static final float FLOAT_UNIT;
descriptor: F
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5.9604645E-8
static final java.lang.String BAD_BOUND;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "bound must be positive"
static final java.lang.String BAD_RANGE;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "bound must be greater than origin"
static final java.lang.String BAD_SIZE;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "size must be non-negative"
private static final jdk.internal.misc.Unsafe U;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long SEED;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long PROBE;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long SECONDARY;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long THREADLOCALS;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long INHERITABLETHREADLOCALS;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long INHERITEDACCESSCONTROLCONTEXT;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.ThreadLocal<java.lang.Double> nextLocalGaussian;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Ljava/lang/Double;>;
private static final java.util.concurrent.atomic.AtomicInteger probeGenerator;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final java.util.concurrent.ThreadLocalRandom instance;
descriptor: Ljava/util/concurrent/ThreadLocalRandom;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final java.util.concurrent.atomic.AtomicLong seeder;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=5, args_size=0
0: iconst_2
anewarray java.io.ObjectStreamField
dup
iconst_0
1: new java.io.ObjectStreamField
dup
ldc "rnd"
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
invokespecial java.io.ObjectStreamField.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
aastore
dup
iconst_1
2: new java.io.ObjectStreamField
dup
ldc "initialized"
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
invokespecial java.io.ObjectStreamField.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
aastore
3: putstatic java.util.concurrent.ThreadLocalRandom.serialPersistentFields:[Ljava/io/ObjectStreamField;
4: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
5: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
ldc Ljava/lang/Thread;
ldc "threadLocalRandomSeed"
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/Class;Ljava/lang/String;)J
6: putstatic java.util.concurrent.ThreadLocalRandom.SEED:J
7: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
ldc Ljava/lang/Thread;
ldc "threadLocalRandomProbe"
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/Class;Ljava/lang/String;)J
8: putstatic java.util.concurrent.ThreadLocalRandom.PROBE:J
9: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
ldc Ljava/lang/Thread;
ldc "threadLocalRandomSecondarySeed"
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/Class;Ljava/lang/String;)J
10: putstatic java.util.concurrent.ThreadLocalRandom.SECONDARY:J
11: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
ldc Ljava/lang/Thread;
ldc "threadLocals"
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/Class;Ljava/lang/String;)J
12: putstatic java.util.concurrent.ThreadLocalRandom.THREADLOCALS:J
13: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
ldc Ljava/lang/Thread;
ldc "inheritableThreadLocals"
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/Class;Ljava/lang/String;)J
14: putstatic java.util.concurrent.ThreadLocalRandom.INHERITABLETHREADLOCALS:J
15: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
ldc Ljava/lang/Thread;
ldc "inheritedAccessControlContext"
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/Class;Ljava/lang/String;)J
16: putstatic java.util.concurrent.ThreadLocalRandom.INHERITEDACCESSCONTROLCONTEXT:J
17: new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
18: putstatic java.util.concurrent.ThreadLocalRandom.nextLocalGaussian:Ljava/lang/ThreadLocal;
19: new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putstatic java.util.concurrent.ThreadLocalRandom.probeGenerator:Ljava/util/concurrent/atomic/AtomicInteger;
20: new java.util.concurrent.ThreadLocalRandom
dup
invokespecial java.util.concurrent.ThreadLocalRandom.<init>:()V
putstatic java.util.concurrent.ThreadLocalRandom.instance:Ljava/util/concurrent/ThreadLocalRandom;
21: new java.util.concurrent.atomic.AtomicLong
dup
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
22: invokestatic java.lang.System.nanoTime:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
lxor
23: invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
24: putstatic java.util.concurrent.ThreadLocalRandom.seeder:Ljava/util/concurrent/atomic/AtomicLong;
25: ldc "java.util.secureRandomSeed"
invokestatic jdk.internal.misc.VM.getSavedProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 26: aload 0
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
ifeq 35
27: bipush 8
invokestatic java.security.SecureRandom.getSeed:(I)[B
astore 1
start local 1 28: aload 1
iconst_0
baload
i2l
ldc 255
land
lstore 2
start local 2 29: iconst_1
istore 4
start local 4 30: goto 33
31: StackMap locals: java.lang.String byte[] long int
StackMap stack:
lload 2
bipush 8
lshl
aload 1
iload 4
baload
i2l
ldc 255
land
lor
lstore 2
32: iinc 4 1
StackMap locals:
StackMap stack:
33: iload 4
bipush 8
if_icmplt 31
end local 4 34: getstatic java.util.concurrent.ThreadLocalRandom.seeder:Ljava/util/concurrent/atomic/AtomicLong;
lload 2
invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
end local 2 end local 1 end local 0 35: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
26 35 0 sec Ljava/lang/String;
28 35 1 seedBytes [B
29 35 2 s J
30 34 4 i I
private static long mix64(long);
descriptor: (J)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: lload 0
lload 0
bipush 33
lushr
lxor
ldc -49064778989728563
lmul
lstore 0
1: lload 0
lload 0
bipush 33
lushr
lxor
ldc -4265267296055464877
lmul
lstore 0
2: lload 0
lload 0
bipush 33
lushr
lxor
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 z J
MethodParameters:
Name Flags
z
private static int mix32(long);
descriptor: (J)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: lload 0
lload 0
bipush 33
lushr
lxor
ldc -49064778989728563
lmul
lstore 0
1: lload 0
lload 0
bipush 33
lushr
lxor
ldc -4265267296055464877
lmul
bipush 32
lushr
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 z J
MethodParameters:
Name Flags
z
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.util.Random.<init>:()V
1: aload 0
iconst_1
putfield java.util.concurrent.ThreadLocalRandom.initialized:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/concurrent/ThreadLocalRandom;
static final void localInit();
descriptor: ()V
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=6, locals=5, args_size=0
0: getstatic java.util.concurrent.ThreadLocalRandom.probeGenerator:Ljava/util/concurrent/atomic/AtomicInteger;
ldc -1640531527
invokevirtual java.util.concurrent.atomic.AtomicInteger.addAndGet:(I)I
istore 0
start local 0 1: iload 0
ifne 2
iconst_1
goto 3
StackMap locals: int
StackMap stack:
2: iload 0
StackMap locals:
StackMap stack: int
3: istore 1
start local 1 4: getstatic java.util.concurrent.ThreadLocalRandom.seeder:Ljava/util/concurrent/atomic/AtomicLong;
ldc -4942790177534073029
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndAdd:(J)J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
lstore 2
start local 2 5: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
astore 4
start local 4 6: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
aload 4
getstatic java.util.concurrent.ThreadLocalRandom.SEED:J
lload 2
invokevirtual jdk.internal.misc.Unsafe.putLong:(Ljava/lang/Object;JJ)V
7: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
aload 4
getstatic java.util.concurrent.ThreadLocalRandom.PROBE:J
iload 1
invokevirtual jdk.internal.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
8: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 9 0 p I
4 9 1 probe I
5 9 2 seed J
6 9 4 t Ljava/lang/Thread;
public static java.util.concurrent.ThreadLocalRandom current();
descriptor: ()Ljava/util/concurrent/ThreadLocalRandom;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
getstatic java.util.concurrent.ThreadLocalRandom.PROBE:J
invokevirtual jdk.internal.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
ifne 2
1: invokestatic java.util.concurrent.ThreadLocalRandom.localInit:()V
2: StackMap locals:
StackMap stack:
getstatic java.util.concurrent.ThreadLocalRandom.instance:Ljava/util/concurrent/ThreadLocalRandom;
areturn
LocalVariableTable:
Start End Slot Name Signature
public void setSeed(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.ThreadLocalRandom.initialized:Z
ifeq 2
1: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 3 1 seed J
MethodParameters:
Name Flags
seed
final long nextSeed();
descriptor: ()J
flags: (0x0010) ACC_FINAL
Code:
stack=8, locals=4, args_size=1
start local 0 0: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
dup
astore 1
start local 1 1: getstatic java.util.concurrent.ThreadLocalRandom.SEED:J
2: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
aload 1
getstatic java.util.concurrent.ThreadLocalRandom.SEED:J
invokevirtual jdk.internal.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
ldc -7046029254386353131
ladd
dup2
lstore 2
start local 2 3: invokevirtual jdk.internal.misc.Unsafe.putLong:(Ljava/lang/Object;JJ)V
4: lload 2
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/ThreadLocalRandom;
1 5 1 t Ljava/lang/Thread;
3 5 2 r J
protected int next(int);
descriptor: (I)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextInt:()I
bipush 32
iload 1
isub
iushr
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 1 1 bits I
MethodParameters:
Name Flags
bits
final long internalNextLong(long, long);
descriptor: (JJ)J
flags: (0x0010) ACC_FINAL
Code:
stack=6, locals=13, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
lstore 5
start local 5 1: lload 1
lload 3
lcmp
ifge 16
2: lload 3
lload 1
lsub
lstore 7
start local 7 3: lload 7
lconst_1
lsub
lstore 9
start local 9 4: lload 7
lload 9
land
lconst_0
lcmp
ifne 6
5: lload 5
lload 9
land
lload 1
ladd
lstore 5
goto 16
6: StackMap locals: long long long
StackMap stack:
lload 7
lconst_0
lcmp
ifle 15
7: lload 5
iconst_1
lushr
lstore 11
start local 11 8: goto 10
9: StackMap locals: long
StackMap stack:
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
iconst_1
lushr
lstore 11
10: StackMap locals:
StackMap stack:
lload 11
lload 9
ladd
lload 11
lload 7
lrem
dup2
lstore 5
lsub
lconst_0
11: lcmp
iflt 9
end local 11 12: lload 5
lload 1
ladd
lstore 5
13: goto 16
14: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
lstore 5
15: StackMap locals:
StackMap stack:
lload 5
lload 1
lcmp
iflt 14
lload 5
lload 3
lcmp
ifge 14
end local 9 end local 7 16: StackMap locals:
StackMap stack:
lload 5
lreturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 17 1 origin J
0 17 3 bound J
1 17 5 r J
3 16 7 n J
4 16 9 m J
8 12 11 u J
MethodParameters:
Name Flags
origin
bound
final int internalNextInt(int, int);
descriptor: (II)I
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix32:(J)I
istore 3
start local 3 1: iload 1
iload 2
if_icmpge 16
2: iload 2
iload 1
isub
istore 4
start local 4 3: iload 4
iconst_1
isub
istore 5
start local 5 4: iload 4
iload 5
iand
ifne 6
5: iload 3
iload 5
iand
iload 1
iadd
istore 3
goto 16
6: StackMap locals: int int int
StackMap stack:
iload 4
ifle 15
7: iload 3
iconst_1
iushr
istore 6
start local 6 8: goto 10
9: StackMap locals: int
StackMap stack:
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix32:(J)I
iconst_1
iushr
istore 6
10: StackMap locals:
StackMap stack:
iload 6
iload 5
iadd
iload 6
iload 4
irem
dup
istore 3
isub
11: iflt 9
end local 6 12: iload 3
iload 1
iadd
istore 3
13: goto 16
14: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix32:(J)I
istore 3
15: StackMap locals:
StackMap stack:
iload 3
iload 1
if_icmplt 14
iload 3
iload 2
if_icmpge 14
end local 5 end local 4 16: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 17 1 origin I
0 17 2 bound I
1 17 3 r I
3 16 4 n I
4 16 5 m I
8 12 6 u I
MethodParameters:
Name Flags
origin
bound
final double internalNextDouble(double, double);
descriptor: (DD)D
flags: (0x0010) ACC_FINAL
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextLong:()J
bipush 11
lushr
l2d
ldc 1.1102230246251565E-16
dmul
dstore 5
start local 5 1: dload 1
dload 3
dcmpg
ifge 5
2: dload 5
dload 3
dload 1
dsub
dmul
dload 1
dadd
dstore 5
3: dload 5
dload 3
dcmpl
iflt 5
4: dload 3
invokestatic java.lang.Double.doubleToLongBits:(D)J
lconst_1
lsub
invokestatic java.lang.Double.longBitsToDouble:(J)D
dstore 5
5: StackMap locals: double
StackMap stack:
dload 5
dreturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 6 1 origin D
0 6 3 bound D
1 6 5 r D
MethodParameters:
Name Flags
origin
bound
public int nextInt();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix32:(J)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/ThreadLocalRandom;
public int nextInt(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: iload 1
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be positive"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix32:(J)I
istore 2
start local 2 3: iload 1
iconst_1
isub
istore 3
start local 3 4: iload 1
iload 3
iand
ifne 6
5: iload 2
iload 3
iand
istore 2
goto 11
6: StackMap locals: int int
StackMap stack:
iload 2
iconst_1
iushr
istore 4
start local 4 7: goto 9
8: StackMap locals: int
StackMap stack:
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix32:(J)I
iconst_1
iushr
istore 4
9: StackMap locals:
StackMap stack:
iload 4
iload 3
iadd
iload 4
iload 1
irem
dup
istore 2
isub
10: iflt 8
end local 4 11: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 12 1 bound I
3 12 2 r I
4 12 3 m I
7 11 4 u I
MethodParameters:
Name Flags
bound
public int nextInt(int, int);
descriptor: (II)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
if_icmplt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
invokevirtual java.util.concurrent.ThreadLocalRandom.internalNextInt:(II)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 3 1 origin I
0 3 2 bound I
MethodParameters:
Name Flags
origin
bound
public long nextLong();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/ThreadLocalRandom;
public long nextLong(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be positive"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
lstore 3
start local 3 3: lload 1
lconst_1
lsub
lstore 5
start local 5 4: lload 1
lload 5
land
lconst_0
lcmp
ifne 6
5: lload 3
lload 5
land
lstore 3
goto 11
6: StackMap locals: long long
StackMap stack:
lload 3
iconst_1
lushr
lstore 7
start local 7 7: goto 9
8: StackMap locals: long
StackMap stack:
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
iconst_1
lushr
lstore 7
9: StackMap locals:
StackMap stack:
lload 7
lload 5
ladd
lload 7
lload 1
lrem
dup2
lstore 3
lsub
lconst_0
10: lcmp
iflt 8
end local 7 11: StackMap locals:
StackMap stack:
lload 3
lreturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 12 1 bound J
3 12 3 r J
4 12 5 m J
7 11 7 u J
MethodParameters:
Name Flags
bound
public long nextLong(long, long);
descriptor: (JJ)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: lload 1
lload 3
lcmp
iflt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
lload 1
lload 3
invokevirtual java.util.concurrent.ThreadLocalRandom.internalNextLong:(JJ)J
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 3 1 origin J
0 3 3 bound J
MethodParameters:
Name Flags
origin
bound
public double nextDouble();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
bipush 11
lushr
l2d
ldc 1.1102230246251565E-16
dmul
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/ThreadLocalRandom;
public double nextDouble(double);
descriptor: (D)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: dload 1
dconst_0
dcmpl
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be positive"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix64:(J)J
bipush 11
lushr
l2d
ldc 1.1102230246251565E-16
dmul
dload 1
dmul
dstore 3
start local 3 3: dload 3
dload 1
dcmpg
ifge 4
dload 3
goto 5
4: StackMap locals: double
StackMap stack:
dload 1
invokestatic java.lang.Double.doubleToLongBits:(D)J
lconst_1
lsub
invokestatic java.lang.Double.longBitsToDouble:(J)D
5: StackMap locals:
StackMap stack: double
dreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 6 1 bound D
3 6 3 result D
MethodParameters:
Name Flags
bound
public double nextDouble(double, double);
descriptor: (DD)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: dload 1
dload 3
dcmpg
iflt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
dload 1
dload 3
invokevirtual java.util.concurrent.ThreadLocalRandom.internalNextDouble:(DD)D
dreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 3 1 origin D
0 3 3 bound D
MethodParameters:
Name Flags
origin
bound
public boolean nextBoolean();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix32:(J)I
ifge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/ThreadLocalRandom;
public float nextFloat();
descriptor: ()F
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextSeed:()J
invokestatic java.util.concurrent.ThreadLocalRandom.mix32:(J)I
bipush 8
iushr
i2f
ldc 5.9604645E-8
fmul
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/ThreadLocalRandom;
public double nextGaussian();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=1
start local 0 0: getstatic java.util.concurrent.ThreadLocalRandom.nextLocalGaussian:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.lang.Double
astore 1
start local 1 1: aload 1
ifnull 4
2: getstatic java.util.concurrent.ThreadLocalRandom.nextLocalGaussian:Ljava/lang/ThreadLocal;
aconst_null
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
3: aload 1
invokevirtual java.lang.Double.doubleValue:()D
dreturn
4: StackMap locals: java.lang.Double
StackMap stack:
ldc 2.0
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextDouble:()D
dmul
dconst_1
dsub
dstore 2
start local 2 5: ldc 2.0
aload 0
invokevirtual java.util.concurrent.ThreadLocalRandom.nextDouble:()D
dmul
dconst_1
dsub
dstore 4
start local 4 6: dload 2
dload 2
dmul
dload 4
dload 4
dmul
dadd
dstore 6
start local 6 7: dload 6
dconst_1
dcmpl
ifge 4
dload 6
dconst_0
dcmpl
ifeq 4
8: ldc -2.0
dload 6
invokestatic java.lang.StrictMath.log:(D)D
dmul
dload 6
ddiv
invokestatic java.lang.StrictMath.sqrt:(D)D
dstore 8
start local 8 9: getstatic java.util.concurrent.ThreadLocalRandom.nextLocalGaussian:Ljava/lang/ThreadLocal;
dload 4
dload 8
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
10: dload 2
dload 8
dmul
dreturn
end local 8 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/util/concurrent/ThreadLocalRandom;
1 11 1 d Ljava/lang/Double;
5 11 2 v1 D
6 11 4 v2 D
7 11 6 s D
9 11 8 multiplier D
public java.util.stream.IntStream ints(long);
descriptor: (J)Ljava/util/stream/IntStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.concurrent.ThreadLocalRandom$RandomIntsSpliterator
dup
3: lconst_0
lload 1
ldc 2147483647
iconst_0
4: invokespecial java.util.concurrent.ThreadLocalRandom$RandomIntsSpliterator.<init>:(JJII)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.intStream:(Ljava/util/Spliterator$OfInt;Z)Ljava/util/stream/IntStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 7 1 streamSize J
MethodParameters:
Name Flags
streamSize
public java.util.stream.IntStream ints();
descriptor: ()Ljava/util/stream/IntStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=1, args_size=1
start local 0 0: new java.util.concurrent.ThreadLocalRandom$RandomIntsSpliterator
dup
1: lconst_0
ldc 9223372036854775807
ldc 2147483647
iconst_0
2: invokespecial java.util.concurrent.ThreadLocalRandom$RandomIntsSpliterator.<init>:(JJII)V
3: iconst_0
4: invokestatic java.util.stream.StreamSupport.intStream:(Ljava/util/Spliterator$OfInt;Z)Ljava/util/stream/IntStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/ThreadLocalRandom;
public java.util.stream.IntStream ints(long, int, int);
descriptor: (JII)Ljava/util/stream/IntStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=5, args_size=4
start local 0 start local 1 start local 3 start local 4 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 3
iload 4
if_icmplt 4
3: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
new java.util.concurrent.ThreadLocalRandom$RandomIntsSpliterator
dup
5: lconst_0
lload 1
iload 3
iload 4
6: invokespecial java.util.concurrent.ThreadLocalRandom$RandomIntsSpliterator.<init>:(JJII)V
7: iconst_0
8: invokestatic java.util.stream.StreamSupport.intStream:(Ljava/util/Spliterator$OfInt;Z)Ljava/util/stream/IntStream;
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 9 1 streamSize J
0 9 3 randomNumberOrigin I
0 9 4 randomNumberBound I
MethodParameters:
Name Flags
streamSize
randomNumberOrigin
randomNumberBound
public java.util.stream.IntStream ints(int, int);
descriptor: (II)Ljava/util/stream/IntStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
if_icmplt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.concurrent.ThreadLocalRandom$RandomIntsSpliterator
dup
3: lconst_0
ldc 9223372036854775807
iload 1
iload 2
4: invokespecial java.util.concurrent.ThreadLocalRandom$RandomIntsSpliterator.<init>:(JJII)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.intStream:(Ljava/util/Spliterator$OfInt;Z)Ljava/util/stream/IntStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 7 1 randomNumberOrigin I
0 7 2 randomNumberBound I
MethodParameters:
Name Flags
randomNumberOrigin
randomNumberBound
public java.util.stream.LongStream longs(long);
descriptor: (J)Ljava/util/stream/LongStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.concurrent.ThreadLocalRandom$RandomLongsSpliterator
dup
3: lconst_0
lload 1
ldc 9223372036854775807
lconst_0
4: invokespecial java.util.concurrent.ThreadLocalRandom$RandomLongsSpliterator.<init>:(JJJJ)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.longStream:(Ljava/util/Spliterator$OfLong;Z)Ljava/util/stream/LongStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 7 1 streamSize J
MethodParameters:
Name Flags
streamSize
public java.util.stream.LongStream longs();
descriptor: ()Ljava/util/stream/LongStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=1, args_size=1
start local 0 0: new java.util.concurrent.ThreadLocalRandom$RandomLongsSpliterator
dup
1: lconst_0
ldc 9223372036854775807
ldc 9223372036854775807
lconst_0
2: invokespecial java.util.concurrent.ThreadLocalRandom$RandomLongsSpliterator.<init>:(JJJJ)V
3: iconst_0
4: invokestatic java.util.stream.StreamSupport.longStream:(Ljava/util/Spliterator$OfLong;Z)Ljava/util/stream/LongStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/ThreadLocalRandom;
public java.util.stream.LongStream longs(long, long, long);
descriptor: (JJJ)Ljava/util/stream/LongStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=7, args_size=4
start local 0 start local 1 start local 3 start local 5 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
lload 3
lload 5
lcmp
iflt 4
3: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
new java.util.concurrent.ThreadLocalRandom$RandomLongsSpliterator
dup
5: lconst_0
lload 1
lload 3
lload 5
6: invokespecial java.util.concurrent.ThreadLocalRandom$RandomLongsSpliterator.<init>:(JJJJ)V
7: iconst_0
8: invokestatic java.util.stream.StreamSupport.longStream:(Ljava/util/Spliterator$OfLong;Z)Ljava/util/stream/LongStream;
areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 9 1 streamSize J
0 9 3 randomNumberOrigin J
0 9 5 randomNumberBound J
MethodParameters:
Name Flags
streamSize
randomNumberOrigin
randomNumberBound
public java.util.stream.LongStream longs(long, long);
descriptor: (JJ)Ljava/util/stream/LongStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=5, args_size=3
start local 0 start local 1 start local 3 0: lload 1
lload 3
lcmp
iflt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.concurrent.ThreadLocalRandom$RandomLongsSpliterator
dup
3: lconst_0
ldc 9223372036854775807
lload 1
lload 3
4: invokespecial java.util.concurrent.ThreadLocalRandom$RandomLongsSpliterator.<init>:(JJJJ)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.longStream:(Ljava/util/Spliterator$OfLong;Z)Ljava/util/stream/LongStream;
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 7 1 randomNumberOrigin J
0 7 3 randomNumberBound J
MethodParameters:
Name Flags
randomNumberOrigin
randomNumberBound
public java.util.stream.DoubleStream doubles(long);
descriptor: (J)Ljava/util/stream/DoubleStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.concurrent.ThreadLocalRandom$RandomDoublesSpliterator
dup
3: lconst_0
lload 1
ldc 1.7976931348623157E308
dconst_0
4: invokespecial java.util.concurrent.ThreadLocalRandom$RandomDoublesSpliterator.<init>:(JJDD)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.doubleStream:(Ljava/util/Spliterator$OfDouble;Z)Ljava/util/stream/DoubleStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 7 1 streamSize J
MethodParameters:
Name Flags
streamSize
public java.util.stream.DoubleStream doubles();
descriptor: ()Ljava/util/stream/DoubleStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=1, args_size=1
start local 0 0: new java.util.concurrent.ThreadLocalRandom$RandomDoublesSpliterator
dup
1: lconst_0
ldc 9223372036854775807
ldc 1.7976931348623157E308
dconst_0
2: invokespecial java.util.concurrent.ThreadLocalRandom$RandomDoublesSpliterator.<init>:(JJDD)V
3: iconst_0
4: invokestatic java.util.stream.StreamSupport.doubleStream:(Ljava/util/Spliterator$OfDouble;Z)Ljava/util/stream/DoubleStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/ThreadLocalRandom;
public java.util.stream.DoubleStream doubles(long, double, double);
descriptor: (JDD)Ljava/util/stream/DoubleStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=7, args_size=4
start local 0 start local 1 start local 3 start local 5 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
dload 3
dload 5
dcmpg
iflt 4
3: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
new java.util.concurrent.ThreadLocalRandom$RandomDoublesSpliterator
dup
5: lconst_0
lload 1
dload 3
dload 5
6: invokespecial java.util.concurrent.ThreadLocalRandom$RandomDoublesSpliterator.<init>:(JJDD)V
7: iconst_0
8: invokestatic java.util.stream.StreamSupport.doubleStream:(Ljava/util/Spliterator$OfDouble;Z)Ljava/util/stream/DoubleStream;
areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 9 1 streamSize J
0 9 3 randomNumberOrigin D
0 9 5 randomNumberBound D
MethodParameters:
Name Flags
streamSize
randomNumberOrigin
randomNumberBound
public java.util.stream.DoubleStream doubles(double, double);
descriptor: (DD)Ljava/util/stream/DoubleStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=5, args_size=3
start local 0 start local 1 start local 3 0: dload 1
dload 3
dcmpg
iflt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.concurrent.ThreadLocalRandom$RandomDoublesSpliterator
dup
3: lconst_0
ldc 9223372036854775807
dload 1
dload 3
4: invokespecial java.util.concurrent.ThreadLocalRandom$RandomDoublesSpliterator.<init>:(JJDD)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.doubleStream:(Ljava/util/Spliterator$OfDouble;Z)Ljava/util/stream/DoubleStream;
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 7 1 randomNumberOrigin D
0 7 3 randomNumberBound D
MethodParameters:
Name Flags
randomNumberOrigin
randomNumberBound
static final int getProbe();
descriptor: ()I
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=4, locals=0, args_size=0
0: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
getstatic java.util.concurrent.ThreadLocalRandom.PROBE:J
invokevirtual jdk.internal.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
static final int advanceProbe(int);
descriptor: (I)I
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=1, args_size=1
start local 0 0: iload 0
iload 0
bipush 13
ishl
ixor
istore 0
1: iload 0
iload 0
bipush 17
iushr
ixor
istore 0
2: iload 0
iload 0
iconst_5
ishl
ixor
istore 0
3: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
getstatic java.util.concurrent.ThreadLocalRandom.PROBE:J
iload 0
invokevirtual jdk.internal.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
4: iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 probe I
MethodParameters:
Name Flags
probe
static final int nextSecondarySeed();
descriptor: ()I
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=0
0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
astore 1
start local 1 1: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
aload 1
getstatic java.util.concurrent.ThreadLocalRandom.SECONDARY:J
invokevirtual jdk.internal.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
dup
istore 0
start local 0 2: ifeq 7
3: iload 0
iload 0
bipush 13
ishl
ixor
istore 0
4: iload 0
iload 0
bipush 17
iushr
ixor
istore 0
5: iload 0
iload 0
iconst_5
ishl
ixor
istore 0
6: goto 9
7: StackMap locals: int java.lang.Thread
StackMap stack:
getstatic java.util.concurrent.ThreadLocalRandom.seeder:Ljava/util/concurrent/atomic/AtomicLong;
ldc -4942790177534073029
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndAdd:(J)J
invokestatic java.util.concurrent.ThreadLocalRandom.mix32:(J)I
dup
istore 0
ifne 9
8: iconst_1
istore 0
9: StackMap locals:
StackMap stack:
getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
aload 1
getstatic java.util.concurrent.ThreadLocalRandom.SECONDARY:J
iload 0
invokevirtual jdk.internal.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
10: iload 0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
2 11 0 r I
1 11 1 t Ljava/lang/Thread;
static final void eraseThreadLocals(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)V
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
aload 0
getstatic java.util.concurrent.ThreadLocalRandom.THREADLOCALS:J
aconst_null
invokevirtual jdk.internal.misc.Unsafe.putReference:(Ljava/lang/Object;JLjava/lang/Object;)V
1: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
aload 0
getstatic java.util.concurrent.ThreadLocalRandom.INHERITABLETHREADLOCALS:J
aconst_null
invokevirtual jdk.internal.misc.Unsafe.putReference:(Ljava/lang/Object;JLjava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
thread
static final void setInheritedAccessControlContext(java.lang.Thread, java.security.AccessControlContext);
descriptor: (Ljava/lang/Thread;Ljava/security/AccessControlContext;)V
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
aload 0
getstatic java.util.concurrent.ThreadLocalRandom.INHERITEDACCESSCONTROLCONTEXT:J
aload 1
invokevirtual jdk.internal.misc.Unsafe.putReferenceRelease:(Ljava/lang/Object;JLjava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 thread Ljava/lang/Thread;
0 2 1 acc Ljava/security/AccessControlContext;
MethodParameters:
Name Flags
thread
acc
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectOutputStream.putFields:()Ljava/io/ObjectOutputStream$PutField;
astore 2
start local 2 1: aload 2
ldc "rnd"
getstatic java.util.concurrent.ThreadLocalRandom.U:Ljdk/internal/misc/Unsafe;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
getstatic java.util.concurrent.ThreadLocalRandom.SEED:J
invokevirtual jdk.internal.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
invokevirtual java.io.ObjectOutputStream$PutField.put:(Ljava/lang/String;J)V
2: aload 2
ldc "initialized"
iconst_1
invokevirtual java.io.ObjectOutputStream$PutField.put:(Ljava/lang/String;Z)V
3: aload 1
invokevirtual java.io.ObjectOutputStream.writeFields:()V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/ThreadLocalRandom;
0 5 1 s Ljava/io/ObjectOutputStream;
1 5 2 fields Ljava/io/ObjectOutputStream$PutField;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
private java.lang.Object readResolve();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic java.util.concurrent.ThreadLocalRandom.current:()Ljava/util/concurrent/ThreadLocalRandom;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/ThreadLocalRandom;
}
SourceFile: "ThreadLocalRandom.java"
NestMembers:
java.util.concurrent.ThreadLocalRandom$RandomDoublesSpliterator java.util.concurrent.ThreadLocalRandom$RandomIntsSpliterator java.util.concurrent.ThreadLocalRandom$RandomLongsSpliterator
InnerClasses:
public abstract PutField = java.io.ObjectOutputStream$PutField of java.io.ObjectOutputStream
public abstract OfDouble = java.util.Spliterator$OfDouble of java.util.Spliterator
public abstract OfInt = java.util.Spliterator$OfInt of java.util.Spliterator
public abstract OfLong = java.util.Spliterator$OfLong of java.util.Spliterator
private final RandomDoublesSpliterator = java.util.concurrent.ThreadLocalRandom$RandomDoublesSpliterator of java.util.concurrent.ThreadLocalRandom
private final RandomIntsSpliterator = java.util.concurrent.ThreadLocalRandom$RandomIntsSpliterator of java.util.concurrent.ThreadLocalRandom
private final RandomLongsSpliterator = java.util.concurrent.ThreadLocalRandom$RandomLongsSpliterator of java.util.concurrent.ThreadLocalRandom