diff options
author | Tom Clarke <tom@u2i.com> | 2012-05-20 01:03:34 -0400 |
---|---|---|
committer | Tom Clarke <tom@u2i.com> | 2012-05-21 14:24:30 -0400 |
commit | 685192bbcba7f887236ddf43ebb7d7dcf7409bd9 (patch) | |
tree | fdd8689e4da3ed3290d425631f932a8e6072ce11 /activesupport/bin/generate_tables | |
parent | b23ac936a6ef980547666da002681a77d8340573 (diff) | |
download | rails-685192bbcba7f887236ddf43ebb7d7dcf7409bd9.tar.gz rails-685192bbcba7f887236ddf43ebb7d7dcf7409bd9.tar.bz2 rails-685192bbcba7f887236ddf43ebb7d7dcf7409bd9.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 'activesupport/bin/generate_tables')
0 files changed, 0 insertions, 0 deletions