Skip to content

Commit 66c2df7

Browse files
committed
Use simple long, as we are initialized before the reading threads are started
1 parent 9e2e2bc commit 66c2df7

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/core/src/main/java/org/apache/jmeter/threads/AbstractThreadGroup.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.time.Duration;
2222
import java.util.IdentityHashMap;
2323
import java.util.concurrent.atomic.AtomicInteger;
24-
import java.util.concurrent.atomic.AtomicLong;
2524

2625
import org.apache.jmeter.control.Controller;
2726
import org.apache.jmeter.control.IteratingController;
@@ -87,7 +86,7 @@ public abstract class AbstractThreadGroup extends AbstractTestElement
8786

8887
private final AtomicInteger numberOfThreads = new AtomicInteger(0); // Number of active threads in this group
8988

90-
private final AtomicLong startTime = new AtomicLong(0);
89+
private long startTime;
9190

9291
@Override
9392
public AbstractThreadGroupSchema getSchema() {
@@ -105,7 +104,7 @@ public AbstractThreadGroupSchema getSchema() {
105104
* @return time in milliseconds since epoch
106105
*/
107106
public long getStartTime() {
108-
return startTime.get();
107+
return startTime;
109108
}
110109

111110
/**
@@ -114,7 +113,7 @@ public long getStartTime() {
114113
* @param startTime time in milliseconds since epoch
115114
*/
116115
public void setStartTime(long startTime) {
117-
this.startTime.set(startTime);
116+
this.startTime = startTime;
118117
}
119118

120119
/** {@inheritDoc} */

0 commit comments

Comments
 (0)