-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before this commit, it was not safe to use iter_allocated_chunks if you had allocated objects with a larger alignment that size_of::<usize>(), even though the documentation did not mention this. #46 is about that bug. This commit chooses to partially remedy this problem, and partially update the documentation. Specifically this commit fixes the code, so that alignments up to and included 16 bytes are supported, but larger alignments will still cause problems. It also updates the documentation, to specify that larger alignments are unsupported when used together with iter_allocated_chunks. We do not believe this to be an issue, since we do not believe that anybody using bumpalo will have alignment requirements larger than 16 bytes and also want to use iter_allocated_chunks.
- Loading branch information
1 parent
3d8dc44
commit ab73145
Showing
3 changed files
with
97 additions
and
59 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