Question about concurrent package races and updates

Jason Schroeder shrode at subnature.com
Fri Jan 20 13:31:44 PST 2012


I have witnessed and can read a race condition in FutureTask (jdk7, jdk6).

However, there is a new version of FutureTask at oswego,
http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/FutureTask.java?view=co
which purposely fixes the race condition.

Are new versions of the concurrency classes coming to jdk 7/8?  Or is
it better to add a race condition bug to database?  (I live under the
newbie impression that races are different bugs.)



More information about the jdk7u-dev mailing list