• Alan Frindell's avatar
    Fix IOBufQueue::preallocate for callers who really wanted a hard max · c462b064
    Alan Frindell authored
    Summary: D633912 broke unicorn because it relied on preallocate having a hard max.  Add an optional hard max parameter and rename maxHint to newAllocationSize.  Pass the hard max in for unicorn
    
    Test Plan: folly and unicorn unit tests
    
    Reviewed By: tudorb@fb.com
    
    FB internal diff: D634894
    c462b064
IOBufQueue.h 7.01 KB