ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <jon.sk...@peramon.com>
Subject RE: Next set of JavaDoc patches
Date Mon, 18 Feb 2002 19:20:03 GMT
> >Identified thread-safety problem in DemuxOutputStream (look for XXX)
> 
> Interesting,. There is a bug entry about odd output running <java> in
> <parallel>, but like most thread problems, replication is a 
> dog. maybe this was the cause.

I'd be thrilled if what I was doing turned out to be immediately useful :)

Just for my own reference if I decide to go back and track this:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4400

Reproducing this could be interesting, certainly - you need to *happen* to get a thread context
switch between write ('\r') and write ('\n') in one thread *and* the other thread get both
'\r' and '\n' before the other thread gets in again. On the other hand, putting some kind
of logging (and conditional sleeping, possibly) in the potentially problematic bit of code
could make it more easily reproducible.

I can't actually see why we'd get this behaviour though - I would have thought the streams
would get processed eventually when they were flushed/closed.

Jon

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message