Are the GROWABLE_HEAP_X methods only needed for pthreads + ALLOW_MEMORY_GROWTH?

2023-07-07 Thread 'Michael Hagar' via emscripten-discuss
Do I need to use the GROWABLE_HEAP_X methods if I am only using ALLOW_MEMORY_GROWTH, but not pthreads? -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Are the GROWABLE_HEAP_X methods only needed for pthreads + ALLOW_MEMORY_GROWTH?

2023-07-07 Thread 'Sam Clegg' via emscripten-discuss
Yes, those methods are only used/needed/present when growable memory is combined with threads. What is more, you should not normally need to use them directly since emscripten should automatically convert all your heap accesses. This is done using the `growableHeap` in