[squeak-dev] What Error should I expect when I fill up the image with objects?
eliot.miranda at gmail.com
Wed Oct 27 14:47:22 UTC 2021
> On Oct 27, 2021, at 7:26 AM, gettimothy via Squeak-dev <squeak-dev at lists.squeakfoundation.org> wrote:
> Hi Folks,
> I am doing an experiment to load a bunch of objects into my Squeak6/Spur image.
> What should I expect if it fills up?
> Will it throw a SmallTalk error with a debugger?
Yes, a low space error. Search for lowspace in a Message Names and you should find the low space process, etc. look also at the allocation tests. However…
> Or should I expect it to segfault or something.
Not segfault, but something. In practice Spur asks for more memory from the OS. There is an optional limit on old space size. If set then you should see a low space signal. If not set the system will simply slow down as the OS continues to provide memory and start to page.
The low space mechanism can work, but only if the vm has a good estimate of how much memory it can ask for. Unfortunately I’m unaware of APIs the vm can use to derive this estimate. So one is left with having to set thd limit manually.
> Thank you for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev