Mercurial > hg > graal-compiler
diff src/os/linux/vm/os_linux.hpp @ 10164:b4081e9714ec
8013398: Adjust number of stack guard pages on systems with large memory page size
Summary: Auto adjust number of stack guard pages on systems with large memory page size
Reviewed-by: bobv, coleenp
author | vladidan |
---|---|
date | Tue, 30 Apr 2013 17:36:01 -0400 |
parents | 14509df4cd63 |
children | f2110083203d |
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.hpp Tue Apr 30 09:17:06 2013 -0400 +++ b/src/os/linux/vm/os_linux.hpp Tue Apr 30 17:36:01 2013 -0400 @@ -70,6 +70,7 @@ static pthread_t _main_thread; static Mutex* _createThread_lock; static int _page_size; + static const int _vm_default_page_size; static julong available_memory(); static julong physical_memory() { return _physical_memory; } @@ -116,6 +117,8 @@ static int page_size(void) { return _page_size; } static void set_page_size(int val) { _page_size = val; } + static int vm_default_page_size(void) { return _vm_default_page_size; } + static address ucontext_get_pc(ucontext_t* uc); static intptr_t* ucontext_get_sp(ucontext_t* uc); static intptr_t* ucontext_get_fp(ucontext_t* uc);