catching infinite recursion?
Tim Rowledge
tim at sumeru.stanford.edu
Tue Oct 21 16:45:19 UTC 2003
It could be done in the VM, probably. Keep a count of contexts created
(or started up, whatever, depending on the context caching mechanism in
use at the time) and returned from. If the created - returned value
gets really big it is probably a suggestion that something ugly is
happening. Send a message into the image like we do for
doesNotUnderstand and let some image code do the checking.
If we have a context cache even vaguely like VW then the check could be
done any time it needs extending.
tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
A computer program does what you tell it to do, not what you want it to do.
More information about the Squeak-dev
mailing list
|