Skip to content

Commit 22923ce

Browse files
committed
Wasmer uses a mmap guard
1 parent e0f3446 commit 22923ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libc-top-half/musl/src/internal/pthread_impl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ extern hidden unsigned __default_guardsize;
225225
#ifdef __wasilibc_unmodified_upstream
226226
#define DEFAULT_GUARD_SIZE 8192
227227
#else
228-
/* guard doesn't make much sense without mprotect. */
229-
#define DEFAULT_GUARD_SIZE 0
228+
#define DEFAULT_GUARD_SIZE 4096
230229
#endif
231230

232231
#define DEFAULT_STACK_MAX (8<<20)

0 commit comments

Comments
 (0)