hotspot/src/os/solaris/vm/os_solaris.cpp

Print this page

        

*** 2696,2705 **** --- 2696,2713 ---- debug_only(warning("MADV_FREE failed.")); return; } } + bool os::create_stack_guard_pages(char* addr, size_t size) { + return os::commit_memory(addr, size); + } + + bool os::remove_stack_guard_pages(char* addr, size_t size) { + return os::uncommit_memory(addr, size); + } + // Change the page size in a given range. void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) { assert((intptr_t)addr % alignment_hint == 0, "Address should be aligned."); assert((intptr_t)(addr + bytes) % alignment_hint == 0, "End should be aligned."); Solaris::set_mpss_range(addr, bytes, alignment_hint);