Skip to content

Conversation

@devnexen
Copy link
Collaborator

No description provided.

@mjp41
Copy link
Member

mjp41 commented Feb 21, 2021

@devnexen thanks for thinking about this. You also need the equivalent to

https://github.com/microsoft/snmalloc/blob/master/src/pal/pal_bsd.h#L42-L44

to simulate actually removing the pages from being accessible. This is actually more important than the memset.

@devnexen
Copy link
Collaborator Author

Yes I know but unfortunately func-malloc* tests abort with it.

@mjp41
Copy link
Member

mjp41 commented Feb 22, 2021

Does it do that if we disable calling the MADV_FREE_REUSABLE, when we have the commit checks on? And remove the converse MADV_FREE_REUSE in that mode too?

@devnexen
Copy link
Collaborator Author

Unfortunately still does not still work (on Mac M1/ARM it should work on Mac Intel).

@devnexen devnexen force-pushed the posix_commit_checks_apple branch 2 times, most recently from d73e713 to fa14947 Compare February 22, 2021 12:51
@devnexen
Copy link
Collaborator Author

With actual code both work under Mac Intel and ARM

Copy link
Member

@mjp41 mjp41 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devnexen devnexen force-pushed the posix_commit_checks_apple branch from d9311a8 to 54da79f Compare February 22, 2021 13:50
@mjp41 mjp41 merged commit c082a33 into microsoft:master Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants