[1291] in Coldmud discussion meeting
[COLD] calldepth.. bug
daemon@ATHENA.MIT.EDU (Mon May 5 22:34:13 1997
)
Date: Mon, 5 May 1997 20:31:27 -0600 (MDT)
From: Brandon Gillespie <brandon@cold.org>
To: coldstuff@cold.org
Actually, its not forked methods.. The bug lies in the implementation of
pause() (which forked methods essentially do). When a method is paused()
the frame_depth isn't included in the pause, and the next method to be
executed (or resumed, which is where the problem arises) takes on whatever
the call depth from the previous task was... Basically... (getting
technical here for my own sake, so I don't forget) vm_current() needs to
record frame_depth and restore_vm needs to restore it..
-Brandon Gillespie