scalatra/scalatra — pull request #228 by ryanlecompte (2012-11-21 05:16:21+00:00)
Title: Fix synchronization for CookieSupport/DatUtil

While studying the Scalatra source tonight I came across a couple cases where synchronization was improperly used to update a shared value. The JMM only promises that a given thread will see the latest value of a variable if both write and read operations are properly synchronized. This pull request fixes the only two places that I found in Scalatra where this occurs.

More info: http://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html#incorrectlySync