equal
deleted
inserted
replaced
544 // In conservative mode, don't unguard unless the address is in the VM |
544 // In conservative mode, don't unguard unless the address is in the VM |
545 if (addr != last_addr && |
545 if (addr != last_addr && |
546 (UnguardOnExecutionViolation > 1 || os::address_is_in_vm(addr))) { |
546 (UnguardOnExecutionViolation > 1 || os::address_is_in_vm(addr))) { |
547 |
547 |
548 // Set memory to RWX and retry |
548 // Set memory to RWX and retry |
549 address page_start = |
549 address page_start = align_ptr_down(addr, page_size); |
550 (address) align_size_down((intptr_t) addr, (intptr_t) page_size); |
|
551 bool res = os::protect_memory((char*) page_start, page_size, |
550 bool res = os::protect_memory((char*) page_start, page_size, |
552 os::MEM_PROT_RWX); |
551 os::MEM_PROT_RWX); |
553 |
552 |
554 log_debug(os)("Execution protection violation " |
553 log_debug(os)("Execution protection violation " |
555 "at " INTPTR_FORMAT |
554 "at " INTPTR_FORMAT |