mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8255299: Drop explicit zeroing at instantiation of Atomic* objects
Reviewed-by: redestad, serb, prr
This commit is contained in:
parent
6b2d11ba24
commit
3c4fc79326
17 changed files with 16 additions and 19 deletions
|
@ -87,7 +87,7 @@ import static jdk.internal.org.objectweb.asm.Opcodes.*;
|
|||
private static final String[] EMPTY_STRING_ARRAY = new String[0];
|
||||
|
||||
// Used to ensure that each spun class name is unique
|
||||
private static final AtomicInteger counter = new AtomicInteger(0);
|
||||
private static final AtomicInteger counter = new AtomicInteger();
|
||||
|
||||
// For dumping generated classes to disk, for debugging purposes
|
||||
private static final ProxyClassesDumper dumper;
|
||||
|
|
|
@ -120,7 +120,7 @@ public class Timer {
|
|||
/**
|
||||
* This ID is used to generate thread names.
|
||||
*/
|
||||
private static final AtomicInteger nextSerialNumber = new AtomicInteger(0);
|
||||
private static final AtomicInteger nextSerialNumber = new AtomicInteger();
|
||||
private static int serialNumber() {
|
||||
return nextSerialNumber.getAndIncrement();
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ abstract class AbstractShortCircuitTask<P_IN, P_OUT, R,
|
|||
protected AbstractShortCircuitTask(PipelineHelper<P_OUT> helper,
|
||||
Spliterator<P_IN> spliterator) {
|
||||
super(helper, spliterator);
|
||||
sharedResult = new AtomicReference<>(null);
|
||||
sharedResult = new AtomicReference<>();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue