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:
Anhad Singh
2026-02-20 16:30:49 +11:00
parent 09f52fd163
commit 1c5668acd4
-1
View File
@@ -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);