logoalt Hacker News

dreamcompileryesterday at 4:12 PM2 repliesview on HN

Always adjust your stack pointer atomically, kids.


Replies

whizzteryesterday at 4:42 PM

I guess those that wrote the preemption were on X86 where this doesn't happen thanks to variable length instructions being able to hold the constant and thus relied on the code-gen to do it atomically, then the ARM port had an automatic "split" from a higher level to make things "easy" thus giving us this bug.

Nobodys fault really, but bad results ensued.

show 1 reply
drob518yesterday at 6:53 PM

Exactly what ran through my mind.