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 wo...@apache.org on 2004/03/18 03:56:16 UTC
cvs commit: jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model ObjectFactory.java
woolfel 2004/03/17 18:56:16
Modified: src/monitor/model/org/apache/jmeter/monitor/model
ObjectFactory.java
Log:
when there are several monitor threadgroups, the probability of
another thread calling parseBytes() while the parser is busy is low,
but it does happen. When it does, it cases SAX to throw an
exception. Adding sync fixes the problem and doesn't appear to
have any performance impact.
peter lin
Revision Changes Path
1.4 +2 -2 jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/ObjectFactory.java
Index: ObjectFactory.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/ObjectFactory.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ObjectFactory.java 16 Mar 2004 03:35:58 -0000 1.3
+++ ObjectFactory.java 18 Mar 2004 02:56:16 -0000 1.4
@@ -48,7 +48,7 @@
return FACTORY;
}
- public Status parseBytes(byte[] bytes){
+ public synchronized Status parseBytes(byte[] bytes){
return PARSER.parseBytes(bytes);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org