• Nick Terrell's avatar
    Fix AccessSpreader tests and benchmarks · e0ec3bcd
    Nick Terrell authored
    Summary:
    * The atomic load was being optimized out of the benchmark.
    * The initializer wasn't being called for the test tags, so `AccessSpreader<ThreadLocalTag>::current()` and `AccessSpreader<PthreadSelfTag>::current()` were always returning 0.
    
    Reviewed By: ot
    
    Differential Revision: D10154155
    
    fbshipit-source-id: 76be9865c9ee591d24aedc64e6faf4fd24350282
    e0ec3bcd
CacheLocalityBenchmark.cpp 13.2 KB