8224221: add memprotect calls to event log

Reviewed-by: dholmes, mdoerr
This commit is contained in:
Matthias Baesken 2019-05-23 15:15:01 +02:00
parent b77c2ea4e9
commit 247729cdd7
6 changed files with 16 additions and 7 deletions

View file

@ -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;
}