aboutsummaryrefslogtreecommitdiff
path: root/src/userland.cpp
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2019-04-25 13:35:45 -0700
committerRyan Liptak <squeek502@hotmail.com>2019-04-25 13:35:45 -0700
commit57f545eed8e940520855c127245414db9ea29310 (patch)
tree6249362202402aad3ad4707fc7d237cbbd27f090 /src/userland.cpp
parent8ce130de3cf38e09cfbcbd1b22da34ae5b27a040 (diff)
downloadzig-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/userland.cpp')
0 files changed, 0 insertions, 0 deletions