hotspot/src/share/vm/runtime/os.hpp
changeset 28208 d67f748ece0a
parent 27926 0e2e188ab887
child 28631 a56cae1b428d
child 28737 ca4b6a6e5cc8
child 29185 41cf0610fedf
--- a/hotspot/src/share/vm/runtime/os.hpp	Wed Dec 17 18:09:24 2014 +0100
+++ b/hotspot/src/share/vm/runtime/os.hpp	Thu Dec 18 09:37:02 2014 +0100
@@ -311,6 +311,12 @@
   static bool   uncommit_memory(char* addr, size_t bytes);
   static bool   release_memory(char* addr, size_t bytes);
 
+  // Touch memory pages that cover the memory range from start to end (exclusive)
+  // to make the OS back the memory range with actual memory.
+  // Current implementation may not touch the last page if unaligned addresses
+  // are passed.
+  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);