This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit 66c2df72ad3d8cb39aae8cef6d2b68cc17624a1e
Author: Felix Schumacher <[email protected]>
AuthorDate: Wed Sep 25 18:25:09 2024 +0200

    Use simple long, as we are initialized before the reading threads are 
started
---
 .../main/java/org/apache/jmeter/threads/AbstractThreadGroup.java   | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/src/core/src/main/java/org/apache/jmeter/threads/AbstractThreadGroup.java 
b/src/core/src/main/java/org/apache/jmeter/threads/AbstractThreadGroup.java
index 63a4462a4d..5b7c6c6857 100644
--- a/src/core/src/main/java/org/apache/jmeter/threads/AbstractThreadGroup.java
+++ b/src/core/src/main/java/org/apache/jmeter/threads/AbstractThreadGroup.java
@@ -21,7 +21,6 @@ import java.io.Serializable;
 import java.time.Duration;
 import java.util.IdentityHashMap;
 import java.util.concurrent.atomic.AtomicInteger;
-import java.util.concurrent.atomic.AtomicLong;
 
 import org.apache.jmeter.control.Controller;
 import org.apache.jmeter.control.IteratingController;
@@ -87,7 +86,7 @@ public abstract class AbstractThreadGroup extends 
AbstractTestElement
 
     private final AtomicInteger numberOfThreads = new AtomicInteger(0); // 
Number of active threads in this group
 
-    private final AtomicLong startTime = new AtomicLong(0);
+    private long startTime;
 
     @Override
     public AbstractThreadGroupSchema getSchema() {
@@ -105,7 +104,7 @@ public abstract class AbstractThreadGroup extends 
AbstractTestElement
      * @return time in milliseconds since epoch
      */
     public long getStartTime() {
-        return startTime.get();
+        return startTime;
     }
 
     /**
@@ -114,7 +113,7 @@ public abstract class AbstractThreadGroup extends 
AbstractTestElement
      * @param startTime time in milliseconds since epoch
      */
     public void setStartTime(long startTime) {
-        this.startTime.set(startTime);
+        this.startTime = startTime;
     }
 
     /** {@inheritDoc} */

Reply via email to