• Dario Russi's avatar
    fix AtomicHashMap race condition · 29d4c417
    Dario Russi authored
    Summary: AHM::find checks that the returned SimpleRetT index is >= numMapsAllocated_ but that value may have changed and find pick the first element in the next sub map. Use success instead.
    
    @override-unit-failures
    
    Test Plan: unit tests
    
    Reviewed By: delong.j@fb.com
    
    FB internal diff: D1126684
    29d4c417
AtomicHashMap-inl.h 15.3 KB