On Feb 22, 2009, at 3:48 PM, Mark Volkmann wrote:

>
> I'm not sure, but I may have found a bug in Atom.java. The swap method
> calls compareAndSet. After that, if the new value differs from the
> current value, it calls notifyWatches. However, at that point
> compareAndSet would have already called notifyWatches. Is there are
> reason to do it again?
>

swap calls state.compareAndSet, not its own.

Rich


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to