Summary:
I'm pretty sure this doesn't do anything.
Based on a cursory review, I also don't think this is a bug (ie, it should have been assigned to something else).
Test Plan: fbconfig -r folly && fbmake runtests
Reviewed By: tudorb@fb.com
Subscribers: net-systems@, enis, folly-diffs@, yfeldblum, darshan, chalfant
FB internal diff:
D2124497
Tasks:
7306976
Signature: t1:
2124497:
1433368083:
1097dc22734dacad59b30d4b721be111d021bb43
if (xallocx(p, newAllocatedCapacity, 0, 0) == newAllocatedCapacity) {
newBuffer = static_cast<uint8_t*>(p);
newHeadroom = oldHeadroom;
- newAllocatedCapacity = newAllocatedCapacity;
}
// if xallocx failed, do nothing, fall back to malloc/memcpy/free
}