Saving the image in the background

Philippe Marschall philippe.marschall at gmail.com
Sun Jul 30 13:04:58 UTC 2006


2006/7/30, Damien Cassou <damien.cassou at laposte.net>:
> Hi,
>
> I would like to know if the following code is safe:
>
> [SmalltalkImage current snapshot: true andQuit: false]
>      forkAt: Processor userBackgroundPriority
>
> Is there any problem if the main process modifies something in the same
> time ?

Doesn't thay stall the image anyway? IIRC it makes a full GC with blocks.

If you have OSProcess you can fork the image (search the mailinglist,
Avi once asked about this). I don't know if this now works on Mac OS.
Also pay attention that if you have two forked images at the same
time, that they don't write into the same image file (if you want to
use it for Pier). Otherwise you might end up with a corrupted image
file.

Philippe



More information about the Squeak-dev mailing list