Closed whentze closed 7 years ago
Thanks for the PR. This is a good start, I just have a couple comments:
unsafe fn alloc
declaration in the sized_cache
macro, and getting read of the .expect
call to mmap. Let me know if you'd like more direct pointers to that code.You're right, I missed that!
It should be fine now. I changed the message as well.
Hi @whentze , thanks for the PR! I'll let @ezrosent sign off on these changes, but could you add an entry in bsalloc's CHANGELOG.md
to reflect these changes? Thanks!
If you want ideas, something like the following would work:
### Changed
- Changed allocation routines so that allocation failure is properly reported
Instead of always
expect
-ing a successful allocation from mmap-alloc, propagate AllocErrs up to the user.Fixes #4