[Help] AntPerformanceListener not thread safe?

SourceForge.net <[email protected]> Fri, 24 Aug 2012 10:33:49 -0700
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
The following forum message was posted by  at http://sourceforge.net/projects/ant-contrib/forums/forum/113701/topic/5575077:

I'm tried using "-listener net.sf.antcontrib.perf.AntPerformanceListener" with
an ant script that uses <foreach>, and found the build consistently hung with
threads here


java.lang.Thread.State: RUNNABLE
	at java.util.HashMap.put(HashMap.java:374)
	at net.sf.antcontrib.perf.AntPerformanceListener.taskStarted(AntPerformanceList
ener.java:198)
	at org.apache.tools.ant.Project.fireTaskStarted(Project.java:2184)
	at org.apache.tools.ant.Task.perform(Task.java:344)
	at org.apache.tools.ant.Target.execute(Target.java:392)
	at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:180)
	at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:82)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:393)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)

It seems likely that there is non-thread safe usage of Map targetStats and Map
taskStats.



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/