[Cuis-dev] Infinite recursions
Luciano Notarfrancesco
luchiano at gmail.com
Sun Oct 16 04:57:08 PDT 2022
Cool, I tested it with some examples and works fine, thanks.
Does it have any impact on performance? Why is it not active by default?
And wouldn’t it be better to get a notification from the VM when it’s about
to run out of memory instead of crashing? I can imagine how this can be
annoying for new students, but stability is important for all of us, and
even experienced Smalltalkers can introduce infinite recursions without
realizing it. I usually work with an image that I have open and running for
months at a time, and it is very stable except for infinite recursions (I
think over the last few years it crashed only once for other reason).
On Sun, 16 Oct 2022 at 18:33 Hernán Wilkinson <hernan.wilkinson at 10pines.com>
wrote:
> Hi Luciano,
> I solved that issue that is very common with new students... What I did
> is a process that checks the size of the stack of each process and if it is
> greater than X it stops the process and opens a debugger
> You can activate it from the Process Browser window. Right click on the
> process list and select "start StackSizeWatcher"
> You can look at the StackSizeWatcher class to see how it works.
>
> Cheers
> Hernan.
>
> On Sun, Oct 16, 2022 at 5:11 AM Luciano Notarfrancesco via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> We might have talked about this here before, I’m not sure.
>>
>> In my experience with Cuis crashes are very very rare, except for
>> infinite recursions. Is there any way for Cuis to detect infinite
>> recursions and signal an exception instead of crashing?
>>
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>
>
> --
>
> *Hernán WilkinsonAgile Software Development, Teaching & Coaching*
> *Phone: +54-011*-4893-2057
> *Twitter: @HernanWilkinson*
> *site: http://www.10Pines.com <http://www.10pines.com/>*
> Address: Alem 896, Floor 6, Buenos Aires, Argentina
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20221016/d0421680/attachment-0001.htm>
More information about the Cuis-dev
mailing list