mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
hooking mmap is no longer needed
This commit is contained in:
@@ -861,12 +861,6 @@ fn call_c_abi(
|
||||
self.write_primval(dest, result, dest_ty)?;
|
||||
}
|
||||
|
||||
"mmap" => {
|
||||
// This is a horrible hack, but well... the guard page mechanism calls mmap and expects a particular return value, so we give it that value
|
||||
let addr = args[0].read_ptr(&self.memory)?;
|
||||
self.write_ptr(dest, addr, dest_ty)?;
|
||||
}
|
||||
|
||||
// Hook pthread calls that go to the thread-local storage memory subsystem
|
||||
"pthread_key_create" => {
|
||||
let key_ptr = args[0].read_ptr(&self.memory)?;
|
||||
|
||||
Reference in New Issue
Block a user