• T
    Make the Resolver template cache threadsafe - closes #6404 · 685192bb
    Tom Clarke 提交于
    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.
    685192bb
lookup_context_test.rb 8.8 KB