The sizes of these zones are given in pages. Unfortunately different operating systems have different page sizes, so a fixed number of pages results in different sizes of these zones depending on which system the VM runs.
This also conflicts with the default stack size, which is given in bytes, not in pages. So the default stack is too small to hold these zones if pages are big.
Therefore the number of pages for these zones is reduced if a system has default page sizes > 8K (see os_linux.cpp:4648).
This conflicts with the checking of lower bounds of these flags introduced in
Setting StackShadowPages=4 at os_linux.cpp:4648 now violates the lower bound of this flag and causes the VM to abort.
- duplicates
-
JDK-8134396 Check upper limit of flags setting numbers of stack protection pages.
-
- Closed
-
- relates to
-
JDK-8078556 Runtime: implement ranges (optionally constraints) for those flags that have them missing
-
- Resolved
-
-
JDK-8154379 MIN_STACK_SHADOW_PAGES should equal DEFAULT_STACK_SHADOW_PAGES on aarch64
-
- Resolved
-
-
JDK-8146085 Zero fails to build after 8139864
-
- Resolved
-
-
JDK-8161093 Solaris for >8k pagesize adds extra guard pages
-
- Closed
-
-
JDK-8140582 aarch64: jvm fails to initialise after 8078556
-
- Resolved
-
-
JDK-8146751 jdk/test/tools/launcher/TooSmallStackSize.java failed on Mac OS
-
- Closed
-