Hacker News new | ask | show | jobs
by leodag 1087 days ago
Wasn't that because of Variable-Length Arrays? I remember a while back there was a movement to remove all of them from the kernel.
1 comments

Perhaps. I think there are other reasons to avoid VLAs. I've heard the code generated for them kinda sucks.

But IMO a compiler should generate extra benign reads on a large stack allocation. You mention avoiding VLAs in the kernel, but even user mode code has this problem.

Certainly a browser JITing random JS from the internet should be able to work around such a problem.