-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add available()
API in AddressAllocator
#94
Conversation
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Signed-off-by: ylzh10 <[email protected]>
Hi! Thanks for your PR :) Could you tell us a bit more about your usecase for this feature? I'm wondering how this Also, please squash all your commits into one, and give that one commit a commit description that outlines the changes, and why they're being done. |
Signed-off-by: ylzh10 <[email protected]> Create rust.yml Signed-off-by: ylzh10 <[email protected]> Update CHANGELOG.md Signed-off-by: ylzh10 <[email protected]> Update address_allocator.rs Signed-off-by: ylzh10 <[email protected]> Update address_allocator.rs Signed-off-by: ylzh10 <[email protected]> Update address_allocator.rs Signed-off-by: ylzh10 <[email protected]> Update address_allocator.rs Signed-off-by: ylzh10 <[email protected]> Update address_allocator.rs Signed-off-by: ylzh10 <[email protected]> Update address_allocator.rs Signed-off-by: ylzh10 <[email protected]> Update address_allocator.rs Signed-off-by: ylzh10 <[email protected]> Update address_allocator.rs Signed-off-by: ylzh10 <[email protected]> Delete .github/workflows directory Signed-off-by: ylzh10 <[email protected]> Update CHANGELOG.md Signed-off-by: ylzh10 <[email protected]> update changelog.md Signed-off-by: ylzh10 <[email protected]> update format Signed-off-by: ylzh10 <[email protected]>
sry, i messed up this PR when squashing the commits (be not using git for a while and it's bit different from the tool i used daily), so created a new one and replied there |
created a new PR w/ one commit #95 |
Summary of the PR
bit dumb here, but I thought it should be a common use case to get the rest available memories in
AddressAllocator
, while i don't see a way on how to get this info today.Or there is already a way to get this info from allocator and somehow i missed it? (please lmk)
So add a new private var
available
allocate/free()
available()
Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s
), and the commit message has max 60 characters for thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafe
code is properly documented.