3 ms·
Incidentally, I've seen unsynchronized access to a Java HashMap cause an infinite loop on .get()s which is (allowably) undefined behavior, and pretty unexpected
by smanek 15y ago
Incidentally, I've seen unsynchronized access to a Java HashMap cause an infinite loop on .get()s which is (allowably) undefined behavior, and pretty unexpected (see: http://mailinator.blogspot.com/2009/06/beautiful-race-condition.html http://mailinator.blogspot.com/2009/06/beautiful-race-condit...)
- spand 15y agoThere is quite the difference between libraries having undefined behavior if you do not follow their contract and the language.