< prev index next >
src/hotspot/share/runtime/os.hpp
Print this page
*** 133,142 ****
--- 133,144 ----
bool allow_exec);
static bool pd_unmap_memory(char *addr, size_t bytes);
static void pd_free_memory(char *addr, size_t bytes, size_t alignment_hint);
static void pd_realign_memory(char *addr, size_t bytes, size_t alignment_hint);
+ static size_t pd_committed_stack_size(address bottom, size_t size);
+
static size_t page_size_for_region(size_t region_size, size_t min_pages, bool must_be_aligned);
// Get summary strings for system information in buffer provided
static void get_summary_cpu_info(char* buf, size_t buflen);
static void get_summary_os_info(char* buf, size_t buflen);
*** 266,275 ****
--- 268,281 ----
static bool uses_stack_guard_pages();
static bool must_commit_stack_guard_pages();
static void map_stack_shadow_pages(address sp);
static bool stack_shadow_pages_available(Thread *thread, const methodHandle& method, address sp);
+ // Return size of stack that is actually committed. For Java thread, the bottom should be above
+ // guard pages (stack grows downward)
+ static size_t committed_stack_size(address bottom, size_t size);
+
// OS interface to Virtual Memory
// Return the default page size.
static int vm_page_size();
< prev index next >