Conversation
Codecov Report
@@ Coverage Diff @@
## dev #931 +/- ##
==========================================
+ Coverage 54.56% 54.90% +0.34%
==========================================
Files 132 132
Lines 18637 18900 +263
Branches 4716 4782 +66
==========================================
+ Hits 10169 10377 +208
+ Misses 5375 5374 -1
- Partials 3093 3149 +56
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
ed11df8 to
ef071b7
Compare
There was a problem hiding this comment.
I won't claim to understand everything that's going on here, but looks okay to me :) My only suggestion is maybe a comment for handle_mutations describing its purpose. Edit: And now that the code is fairly large, I think maybe a top-level comment describing the MemoryManager (what it does and what it's purpose is) would also be helpful.
|
Reminder: maybe add |
* Updates our understanding of the plugin's memory space; all accesses should now be in a region we know about. * Moves anonymous mappings into our shared memory file for fast access. Notably allocators typically use such mappings for large allocation requests (e.g. 100 MB).
* Add test for mremap clobbering part of an existing mapping * Validate that shadow can access the effected memory
ef071b7 to
59fb191
Compare
be12695 to
fcd99e0
Compare
|
When adding the requested documentation for handle_mutations I realized there was a bug in the mremap handling. I extended the tests to more thoroughly cover mremap and ended up changing it a fair bit. I also added support support and testing for mmap2. Could you take another look? Normally GH has an option to view the diff since your last review, but I might have broken that by rebasing on the latest dev; if so, you should still be able to manually select the range of commits to look at (you want "Document handle_mutations" onward) |
should now be in a region we know about.
Notably allocators typically use such mappings for large allocation
requests (e.g. 100 MB).