forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "allocator: Add Windows _aligned_* shims"
This reverts commit 0ba5ea1. Reason for revert: Breaks win-rel build: https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/win-rel/7800 Original change's description: > allocator: Add Windows _aligned_* shims > > On Windows we don’t currently hook the _aligned_* allocation APIs, this > can cause issues because _aligned_realloc can call HeapSize and cause > GWP-ASan crashes similar to bug 909720. Unfortunately the > _aligned_realloc API is different enough that it can not be implemented > using the standard POSIX shims, in particular because _aligned_malloc > and _aligned_free don't return valid allocation addresses, they are > offsets into allocations. > > I add new Windows platform-specific shims for _aligned_malloc, > _aligned_realloc, and _aligned_free and wire them in for all users of > the allocator shims. I implement these routines on top of the Windows > Heap* API and leave uncommon _aligned_* shims to crash to ensure that > any future uses immediately surface why their use fails. > > Bug: 912500, 896019 > Change-Id: Ieaa50b816ab277a6ad4b80ee8519027343fa9878 > Reviewed-on: https://chromium-review.googlesource.com/c/1367485 > Reviewed-by: danakj <danakj@chromium.org> > Reviewed-by: Vitaly Buka <vitalybuka@chromium.org> > Reviewed-by: Alexei Filippov <alph@chromium.org> > Reviewed-by: Erik Chen <erikchen@chromium.org> > Reviewed-by: Will Harris <wfh@chromium.org> > Reviewed-by: Sigurður Ásgeirsson <siggi@chromium.org> > Commit-Queue: Vlad Tsyrklevich <vtsyrklevich@chromium.org> > Cr-Commit-Position: refs/heads/master@{#616106} TBR=danakj@chromium.org,chrisha@chromium.org,primiano@chromium.org,alph@chromium.org,erikchen@chromium.org,wfh@chromium.org,siggi@chromium.org,vtsyrklevich@chromium.org,vitalybuka@chromium.org Change-Id: Ie9e3246f3a70985cef38263e22f8f86a62002b22 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 912500, 896019 Reviewed-on: https://chromium-review.googlesource.com/c/1374909 Reviewed-by: Thomas Anderson <thomasanderson@chromium.org> Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Cr-Commit-Position: refs/heads/master@{#616113}
- Loading branch information
1 parent
cd05ee7
commit 7486030
Showing
18 changed files
with
2 additions
and
634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.