forked from ivmai/bdwgc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add memalign and posix_memalign methods for buffered finalization
The Rust compiler uses these methods instead of generic malloc under certain conditions and without support we can get rustc assertion errors in standard library methods which expect certain alignment requirements. This uses the same allocation semantics from existing `GC_memalign` and `GC_posix_memalign` definitions inside mallocx.c
- Loading branch information
1 parent
9bfdaa2
commit dc1d840
Showing
3 changed files
with
81 additions
and
0 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