hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
changeset 46618 d503911aa948
parent 46452 0388e4c03d6f
child 46619 a3919f5e8d2b
equal deleted inserted replaced
46617:0330c5fc49ce 46618:d503911aa948
   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