overlapping stacks #18920
-
I've got a main thread, and two workers, sharing shared memory, the usual 16 megs. Their stacks all seem to overlap with each other in the beginning 64kiB of the memory, which I guess is the default. This doesn't sound healthy to me, aren't they all just going to overwrite each other? I've tried to put them in different pages like this: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Are you using |
Beta Was this translation helpful? Give feedback.
Are you using
pthread_create
to create your workers/threads? The emscripten runtime takes care of allocating a different stack for each thread during the pthread creation process.