We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 525868c commit aae5c40Copy full SHA for aae5c40
runtime/fiber.c
@@ -85,7 +85,8 @@ uintnat caml_get_init_stack_wsize (int thread_stack_wsz)
85
page size. However, the stack guard pages, headers, etc. have
86
some overhead, so we want the requested stack size to be a bit
87
less than a multiple of the hugepage size */
88
- if (stack_wsize > Wsize_bsize(caml_plat_hugepagesize)) {
+ if (caml_plat_hugepagesize > 0
89
+ && stack_wsize > Wsize_bsize(caml_plat_hugepagesize)) {
90
/* round down to multiple of hugepage size */
91
stack_wsize &= ~(Wsize_bsize(caml_plat_hugepagesize) - 1);
92
/* 3 pages is enough to cover the overhead */
0 commit comments