Author: markt
Date: Fri Jun 19 11:11:06 2009
New Revision: 786455
URL: http://svn.apache.org/viewvc?rev=786455&view=rev
Log:
Minor improvements
- as per Sebb's comment on the dev list - need to add a volatile
- correct the log message
Modified:
tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java
Modified: tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java?rev=786455&r1=786454&r2=786455&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java (original)
+++ tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java Fri Jun 19
11:11:06 2009
@@ -37,7 +37,7 @@
private static class GetDateBenchmarkTest extends BenchmarkTest {
private volatile long currentMillis = 0;
- private Date currentDate = null;
+ private volatile Date currentDate = null;
private ThreadLocal<Long> currentMillisLocal = new ThreadLocal<Long>()
{
protected Long initialValue() {
@@ -227,7 +227,7 @@
}
long end = System.currentTimeMillis();
- System.out.println("testAccessLogGetDate: " + threadCount +
+ System.out.println(this.getClass().getName() + ": " + threadCount +
" threads and " + iterations + " iterations " +
(useSyncs?"using Syncs":"using ThreadLocals") +
" took " + (end-start) + "ms");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]