aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/translation_helper_test.rb
diff options
context:
space:
mode:
authorTom Clarke <tom@u2i.com>2012-05-20 01:03:34 -0400
committerTom Clarke <tom@u2i.com>2012-05-21 15:24:07 -0400
commit2a121870a6aba2b40d65e75d8fa4f7b959aac2c9 (patch)
treeed462901756df33b9b24eccbbcec69091c89c52b /actionpack/test/template/translation_helper_test.rb
parent776ea1090fb9ba4353035d4983cf1926a67b3294 (diff)
downloadrails-2a121870a6aba2b40d65e75d8fa4f7b959aac2c9.tar.gz
rails-2a121870a6aba2b40d65e75d8fa4f7b959aac2c9.tar.bz2
rails-2a121870a6aba2b40d65e75d8fa4f7b959aac2c9.zip
Make the Resolver template cache threadsafe - closes #6404
The Template cache in the Resolver can be accessed by multiple threads similtaneously in multi-threaded environments. The cache is implemented using a Hash, which isn't threadsafe in all VMs (notably JRuby). This commit extracts the cache to a new Cache class and adds mutexes to prevent concurrent access.
Diffstat (limited to 'actionpack/test/template/translation_helper_test.rb')
0 files changed, 0 insertions, 0 deletions