< prev index next >
src/share/vm/runtime/os.hpp
Print this page
rev 7555 : imported patch 8067469-g1-ignores-alwayspretouch
rev 7556 : imported patch david-erik-review
*** 309,318 ****
--- 309,324 ----
size_t alignment_hint,
bool executable, const char* mesg);
static bool uncommit_memory(char* addr, size_t bytes);
static bool release_memory(char* addr, size_t bytes);
+ // Touch memory pages from start to end to make the OS back the memory range
+ // with actual memory.
+ // Assumes that start and end are suitably aligned, otherwise it may fail to
+ // touch the page containing end.
+ static void pretouch_memory(char* start, char* end);
+
enum ProtType { MEM_PROT_NONE, MEM_PROT_READ, MEM_PROT_RW, MEM_PROT_RWX };
static bool protect_memory(char* addr, size_t bytes, ProtType prot,
bool is_committed = true);
static bool guard_memory(char* addr, size_t bytes);
< prev index next >