Skip to content

Commit de32daa

Browse files
Dongbo Hegnu-andrew
Dongbo He
authored andcommittedAug 26, 2022
8173339: AArch64: Fix minimum stack size computations
Reviewed-by: aph Backport-of: 540ec375c30e973ceb1a944d5cc60cc8532e88ec
1 parent 2223058 commit de32daa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎hotspot/src/cpu/aarch64/vm/globals_aarch64.hpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ define_pd_global(intx, InlineFrequencyCount, 100);
5656
define_pd_global(intx, StackYellowPages, 2);
5757
define_pd_global(intx, StackRedPages, 1);
5858

59-
define_pd_global(intx, StackShadowPages, 4 DEBUG_ONLY(+5));
59+
// Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the
60+
// stack if compiled for unix and LP64. To pass stack overflow tests we need
61+
// 20 shadow pages.
62+
define_pd_global(intx, StackShadowPages, 20 DEBUG_ONLY(+5));
6063

6164
define_pd_global(intx, PreInflateSpin, 10);
6265

0 commit comments

Comments
 (0)
Please sign in to comment.