feat(dso): do not zero memory
The region is mapped with the `MAP_ANONYMOUS` and thus already initialised with zeros. According to POSIX Issue 8: > Anonymous memory objects shall be initialized to all bits zero. Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
@@ -558,7 +558,6 @@ impl DSO {
|
||||
);
|
||||
}
|
||||
log::trace!(" = {:p}", ptr);
|
||||
ptr::write_bytes(ptr.cast::<u8>(), 0, size);
|
||||
_r_debug
|
||||
.lock()
|
||||
.insert(ptr as usize, path, ptr as usize + l_ld as usize);
|
||||
|
||||
Reference in New Issue
Block a user