Revert a bad change in bfc_arena.cc (#10057)

This commit is contained in:
Changming Sun 2021-12-15 23:38:45 -08:00 committed by GitHub
parent 6357c12977
commit 44c701192b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,7 +164,7 @@ Status BFCArena::Extend(size_t rounded_bytes) {
static constexpr float kBackpedalFactor = 0.9f;
// Try allocating less memory.
while (mem_addr == nullptr) {
bytes = RoundedBytes(static_cast<size_t>(bytes) * static_cast<size_t>(kBackpedalFactor));
bytes = RoundedBytes(static_cast<size_t>(bytes * kBackpedalFactor));
// give up if we can't satisfy the requested size, or we're attempting an allocation of less than 8K.
//