News for hackers. Stuff that matters.
Re:C99 doesn't need function bodies, or 'VLAs are Turing com... by jcelerier on Friday August 05, 2022 @03:44AM (#32352957)
how would you implement that in the face of multiple threads? you can't use TLS as it will have initialize your stack on first access of your malloc_stack in a given thread, which may or may not be safe to use in real-time-ish-contexts (I think it's definitely not on Windows, not sure on Linux)
Re:C99 doesn't need function bodies, or 'VLAs are Turing com... by dataflow on Friday August 05, 2022 @03:55AM (#32353030)
> how would you implement that in the face of multiple threads?

I imagine you could you allocate it at the same time as you allocate the thread's own stack?