squeak-smalltalk / squeak-object-memory

Issues and assets related to the Squeak object memory.
https://bugs.squeak.org
MIT License
13 stars 1 forks source link

Fast repeated saving of the image without quitting wrecks the system #97

Open codeZeilen opened 1 year ago

codeZeilen commented 1 year ago

I was able to trigger this issue with a 6.0 and a trunk image by running:

1000 timesRepeat: [
  Smalltalk snapshot: true andQuit: false].

The image breaks in different ways. Behaviors I have observed:

codefrau commented 1 year ago

"Doctor, it hurts when I do this!" — "Stop doing this then."

I'm not surprised, because the snapshot mechanism involves image shutdown and startup, and parts of the startup code are likely asynchronous.

codeZeilen commented 1 year ago

Fair point regarding the script. :D

However, originally this occurred when I used "snapshot without quit" as part of a benchmark suite which had breaks of at least 5 seconds between snapshots. I would count that as a maybe unusual but nevertheless appropriate use of the snapshot mechanism.

On Wed, 4 Oct 2023, 09:44 Vanessa Freudenberg, @.***> wrote:

"Doctor, it hurts when I do this!" — "Stop doing this then."

I'm not surprised, because the snapshot mechanism involves image shutdown and startup, and parts of the startup code are likely asynchronous.

— Reply to this email directly, view it on GitHub https://github.com/squeak-smalltalk/squeak-object-memory/issues/97#issuecomment-1746318910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEI3YBHJMFFAK7B67GZQ5TX5UHXVAVCNFSM6AAAAAA5SETHBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWGMYTQOJRGA . You are receiving this because you authored the thread.Message ID: @.***>