You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2022. It is now read-only.
The two pieces are subtle enough that it's worth factoring out a separate function to handle them, but the code and the comments in the second one appear to be at odds with one another: zeroing the whole heap would seem to suggest zeroing more than just the currently accessible (?) heap. And the code itself in the second one appears to be at odds with itself as well: why the difference in what we memset vs. what we mprotect(NONE)/madvise?
Am I just insufficiently knowledgeable about what's going on, or is there a real problem here?
I was trying to figure out what might be involved in adding Windows support to
lucet-runtime-internalsand came across these two pieces of code:lucet/lucet-runtime/lucet-runtime-internals/src/region/mmap.rs
Lines 167 to 179 in 0b51fe7
lucet/lucet-runtime/lucet-runtime-internals/src/region/mmap.rs
Lines 199 to 216 in 0b51fe7
The two pieces are subtle enough that it's worth factoring out a separate function to handle them, but the code and the comments in the second one appear to be at odds with one another: zeroing the whole heap would seem to suggest zeroing more than just the currently accessible (?) heap. And the code itself in the second one appears to be at odds with itself as well: why the difference in what we
memsetvs. what wemprotect(NONE)/madvise?Am I just insufficiently knowledgeable about what's going on, or is there a real problem here?