forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GC_memalign for larger allocations
When a layout's alignment is larger than its size, we must allocate using Boehm's `memalign` function instead of `malloc` in order to mirror the existing behaviour in rustc. This is checked in rustc with various assertions on pointer read and write intrinsics, and was discovered when they failed with large alloctions in lrlex using a debug build of alloy.
- Loading branch information
1 parent
6138ad6
commit 88a482e
Showing
2 changed files
with
53 additions
and
11 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