Skip to content

Commit

Permalink
Use different approach in shm::unmap_critical
Browse files Browse the repository at this point in the history
For now, set protection to PROT_NONE.
Attempt to address #9609
  • Loading branch information
Nekotekina committed Jan 15, 2021
1 parent b5837d1 commit b1dd730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcs3/util/vm_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ namespace utils
return;
}
#else
::mmap(reinterpret_cast<void*>(target), m_size, PROT_NONE, MAP_FIXED | MAP_ANON | MAP_PRIVATE | c_map_noreserve, -1, 0);
ensure(::mprotect(target, m_size, PROT_NONE) != -1);
#endif
}

Expand Down

0 comments on commit b1dd730

Please sign in to comment.