CircleCI 2.0 w/ Removed unneed volatile and atomic

This commit is contained in:
Sotr
2018-08-11 03:22:00 +08:00
parent 4fdc9f0166
commit 01c40ed0d3
12 changed files with 89 additions and 820 deletions

View File

@@ -31,7 +31,8 @@ import java.util.logging.Level;
/**
* Akarin Changes Note
* 1) Add volatile to fields (safety issue)
* 1) Make class public (compatibility)
* 2) Add stopTiming method that accept given start time (compatibility)
*/
public class TimingHandler implements Timing { // Akarin
@@ -46,8 +47,8 @@ public class TimingHandler implements Timing { // Akarin
final TimingData record;
private final TimingHandler groupHandler;
private volatile long start = 0; // Akarin - volatile
private volatile int timingDepth = 0; // Akarin - volatile
private long start = 0;
private int timingDepth = 0;
private boolean added;
private boolean timed;
private boolean enabled;