Skip to content

Commit 465d350

Browse files
committedNov 3, 2021
8276157: C2: Compiler stack overflow during escape analysis on Linux x86_32
Reviewed-by: kvn, thartmann
1 parent 7439b59 commit 465d350

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/hotspot/os_cpu/linux_x86/globals_linux_x86.hpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ define_pd_global(intx, CompilerThreadStackSize, 1024);
3434
define_pd_global(intx, ThreadStackSize, 1024); // 0 => use system default
3535
define_pd_global(intx, VMThreadStackSize, 1024);
3636
#else
37-
define_pd_global(intx, CompilerThreadStackSize, 512);
37+
// Some tests in debug VM mode run out of compile thread stack.
38+
// Observed on some x86_32 VarHandles tests during escape analysis.
39+
#ifdef ASSERT
40+
define_pd_global(intx, CompilerThreadStackSize, 768);
41+
#else
42+
define_pd_global(intx, CompilerThreadStackSize, 512);
43+
#endif
3844
// ThreadStackSize 320 allows a couple of test cases to run while
3945
// keeping the number of threads that can be created high. System
4046
// default ThreadStackSize appears to be 512 which is too big.

0 commit comments

Comments
 (0)
Please sign in to comment.