> some sort of magic to me.
Your stack is on the heap and it contains an instruction pointer to jump to for resume.