From: Clifford Heath Date: 2011-04-21T21:36:12+09:00 Subject: Re: Hash Surprises with Fixnum, #hash, and #eql? On 04/21/11 21:28, Robert Klemme wrote: > Please keep in mind that in a multithreaded environment there is > synchronization overhead. A solution could use an AtomicBoolean Oh get real. This is a single variable which may, during the course of a single execution, *once* change from false to true. In so doing, it enables a slightly more conservative approach to compatibility for one small side-effect of a shortcut, which probably doesn't even matter to the application, and which is almost certainly set by the one thread that cares about that side effect. It *so* doesn't need to be synchronised.