mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8224221: add memprotect calls to event log
Reviewed-by: dholmes, mdoerr
This commit is contained in:
parent
b77c2ea4e9
commit
247729cdd7
6 changed files with 16 additions and 7 deletions
|
@ -3450,6 +3450,7 @@ static bool linux_mprotect(char* addr, size_t size, int prot) {
|
|||
assert(addr == bottom, "sanity check");
|
||||
|
||||
size = align_up(pointer_delta(addr, bottom, 1) + size, os::Linux::page_size());
|
||||
Events::log(NULL, "Protecting memory [" INTPTR_FORMAT "," INTPTR_FORMAT "] with protection modes %x", p2i(bottom), p2i(bottom+size), prot);
|
||||
return ::mprotect(bottom, size, prot) == 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue