diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2019-04-25 13:35:45 -0700 |
|---|---|---|
| committer | Ryan Liptak <squeek502@hotmail.com> | 2019-04-25 13:35:45 -0700 |
| commit | 57f545eed8e940520855c127245414db9ea29310 (patch) | |
| tree | 6249362202402aad3ad4707fc7d237cbbd27f090 /src/libc_installation.cpp | |
| parent | 8ce130de3cf38e09cfbcbd1b22da34ae5b27a040 (diff) | |
| download | zig-57f545eed8e940520855c127245414db9ea29310.tar.gz zig-57f545eed8e940520855c127245414db9ea29310.zip | |
std.heap.DirectAllocator: reduce the amount of redundant memcpy calls on Windows
Previously the memory would be copied to a different aligned address in some cases where the old offset could have been used. This fixes it so that it will always try to use the old offset when possible, and only uses a different offset if the old one is truly invalid (not aligned or not enough space to store the alloc at the old offset).
Diffstat (limited to 'src/libc_installation.cpp')
0 files changed, 0 insertions, 0 deletions
