[Vm-dev] Question about process preemption during longJump

tim Rowledge tim at rowledge.org
Tue Apr 16 16:47:46 UTC 2013

A fairly wild guess based on old memories and speculation about code I haven't actually read yet - this is using stackLimit as a flag for an interrupt having occurred. If stackLimit is a globally accessible value that an interrupt or thread handler can write then one would set it to 0 as a way of saying "at the very next opportunity, force a porces switch check (or even a process switch check)"

You might find a similar check in other places like primitive calls etc.

tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful random insult:- Ought to have a warning label on his forehead.

More information about the Vm-dev mailing list