-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not memory map and unmap the same object file 3 times, and make the code a bit cleaner. In order to make this code work I had to create a static lifetime, and then manually drop it, this is not ideal, but it's the best I could do after many hours. Also, handle errors a bit more gracefully, for example, before this commit, 32 bit binaries can cause panics. Test Plan ========== Ran for a while and also under valgrind.
- Loading branch information
1 parent
1c1efe7
commit 83a2f06
Showing
3 changed files
with
127 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters