Skip to content

Commit ea2b192

Browse files
authored
Merge pull request #239 from RalfJung/mmap
hooking mmap is no longer needed
2 parents 40755ec + eafe659 commit ea2b192

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/terminator/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -861,12 +861,6 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
861861
self.write_primval(dest, result, dest_ty)?;
862862
}
863863

864-
"mmap" => {
865-
// 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
866-
let addr = args[0].read_ptr(&self.memory)?;
867-
self.write_ptr(dest, addr, dest_ty)?;
868-
}
869-
870864
// Hook pthread calls that go to the thread-local storage memory subsystem
871865
"pthread_key_create" => {
872866
let key_ptr = args[0].read_ptr(&self.memory)?;

0 commit comments

Comments
 (0)