• Nathan Bronson's avatar
    fix AtomicUnorderedInsertMap load factor computation · 6b17defc
    Nathan Bronson authored
    Summary: AtomicUnorderedInsertMap's constructor takes a maxLoadFactor argument,
    which is given its default argument of 0.8f in all of our code.
    The clipping function that was supposed to prevent load factors
    greater than one was inverted, resulting in all of our code using a
    maxLoadFactor of 1 instead of 0.8.  This diff fixes the computation,
    as well as changing all of the use sites so that the actual memory
    allocated by existing clients does not change.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D2575238
    
    fb-gh-sync-id: bb9dd8de53114236b259631d175d62af098391cf
    6b17defc
AtomicUnorderedMapTest.cpp 11.1 KB