-
Notifications
You must be signed in to change notification settings - Fork 353
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
Make mmap not use expose semantics #3220
Conversation
cfe3684
to
def5f39
Compare
} | ||
|
||
let len = Size::from_bytes(alloc.len() as u64); | ||
let length = Size::from_bytes(round_to_next_multiple_of(length, this.machine.page_size)); | ||
this.deallocate_ptr( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that there was quite a bit of discussion that led to this implementation, please add a comment explaining that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I've updated the comment at the top of the module, and also nuked the test that was checking for this. Does that cover your request, or should there be more explanation in munmap
itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I force-pushed to fix the failing tests and didn't comment. So I'm commenting now.
def5f39
to
7176fa2
Compare
7176fa2
to
ee50c15
Compare
Looks good, thanks. :) |
☀️ Test successful - checks-actions |
1 similar comment
☀️ Test successful - checks-actions |
Fixes #3041 per #3041 (comment)