equal
deleted
inserted
replaced
728 // In conservative mode, don't unguard unless the address is in the VM |
728 // In conservative mode, don't unguard unless the address is in the VM |
729 if (addr != last_addr && |
729 if (addr != last_addr && |
730 (UnguardOnExecutionViolation > 1 || os::address_is_in_vm(addr))) { |
730 (UnguardOnExecutionViolation > 1 || os::address_is_in_vm(addr))) { |
731 |
731 |
732 // Set memory to RWX and retry |
732 // Set memory to RWX and retry |
733 address page_start = |
733 address page_start = align_ptr_down(addr, page_size); |
734 (address) align_size_down((intptr_t) addr, (intptr_t) page_size); |
|
735 bool res = os::protect_memory((char*) page_start, page_size, |
734 bool res = os::protect_memory((char*) page_start, page_size, |
736 os::MEM_PROT_RWX); |
735 os::MEM_PROT_RWX); |
737 |
736 |
738 log_debug(os)("Execution protection violation " |
737 log_debug(os)("Execution protection violation " |
739 "at " INTPTR_FORMAT |
738 "at " INTPTR_FORMAT |