diff options
author | Tom Clarke <tom@u2i.com> | 2012-05-20 01:03:34 -0400 |
---|---|---|
committer | Tom Clarke <tom@u2i.com> | 2012-05-21 15:24:07 -0400 |
commit | 2a121870a6aba2b40d65e75d8fa4f7b959aac2c9 (patch) | |
tree | ed462901756df33b9b24eccbbcec69091c89c52b /railties/test | |
parent | 776ea1090fb9ba4353035d4983cf1926a67b3294 (diff) | |
download | rails-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 'railties/test')
0 files changed, 0 insertions, 0 deletions