[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] pushRcvr fails for context instances whose sender has been set to an Integer instance (Issue #654)

Eliot Miranda notifications at github.com
Sun Sep 18 19:01:15 UTC 2022


I’m sorry but this counts as shooting oneself in the foot.  This should be handled in the fuzzed as an exception. Contexts are created via Context class>>#sender:receiver:method:arguments:, or if via newForMethod:, properly initialized  with a method soon thereafter.  Why? Because supporting methodless contexts adds checks in critical paths that will slow down not only process switch, but also return.

If there is a bug it is that Context class>>#newMethod: does not initialize the method inst var.  I shall fix this in trunk.  Then any fuzzer must be written to test contexts as a special case and instantiate them via Context class>>#newMethod: or Context class>>#sender:receiver:method:arguments:

-- 
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/654#issuecomment-1250367436
You are receiving this because you are subscribed to this thread.

Message ID: <OpenSmalltalk/opensmalltalk-vm/issues/654/1250367436 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20220918/85880fa9/attachment.html>


More information about the Vm-dev mailing list