You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2007/10/29 19:47:57 UTC
svn commit: r589802 -
/jakarta/jmeter/trunk/src/core/org/apache/jmeter/reporters/Summariser.java
Author: sebb
Date: Mon Oct 29 11:47:56 2007
New Revision: 589802
URL: http://svn.apache.org/viewvc?rev=589802&view=rev
Log:
Always synch accumulators access
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/reporters/Summariser.java
Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/reporters/Summariser.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/reporters/Summariser.java?rev=589802&r1=589801&r2=589802&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/reporters/Summariser.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/reporters/Summariser.java Mon Oct 29 11:47:56 2007
@@ -160,8 +160,11 @@
if (myName == null)
myName = getName();
- if (myTotals == null)
- myTotals = (Totals) accumulators.get(myName);
+ if (myTotals == null) {
+ synchronized (accumulators) {
+ myTotals = (Totals) accumulators.get(myName);
+ }
+ }
if (s != null) {
myTotals.delta.addSample(s);
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org