about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2020-05-21 11:03:33 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2020-06-09 07:55:34 +1000
commit7145b877511e2a38fbdea32a375e398371d1980b (patch)
tree9212eecc1bd4c40fb4563faff7b8a99279595e43 /src/rustllvm/RustWrapper.cpp
parent5ceff6b96af9a21e044545b9e064433feccaf659 (diff)
downloadrust-7145b877511e2a38fbdea32a375e398371d1980b.tar.gz
rust-7145b877511e2a38fbdea32a375e398371d1980b.zip
Remove the `reserve_in_place` calls in `{Typed,Dropless}Arena::grow`.
They are pointless. No reasonable allocator will be able to satisfy a
`reserve_in_place` request that *doubles* the size of an allocation when
dealing with allocations that are 4 KiB and larger.

Just to be sure, I confirmed on Linux that the `reserve_in_place` calls
never succeed.

(Note however that the `reserve_in_place` call for `DroplessArena::grow`
did occasionally succeed prior to the off-by-one fix in the previous
commit, because we would sometimes do a `reserve_in_place` request for
the chunk's current size, which would trivially succeed!)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions