[Vm-dev] off-topic garbage
Ben Coman
btc at openInWorld.com
Sun Dec 14 04:32:20 UTC 2014
David T. Lewis wrote:
>
> On Sat, Dec 13, 2014 at 12:00:43PM -0800, Eliot Miranda wrote:
>>
>> Hi All,
>>
>> I'm debugging the 64-bit variant of the Spur GC, having got the real
>> 64-bit Spur Stack VM to start-up and progress to the first GC (albeit with
>> the border of a window displayed in the wrong colour).
>
> Congratulations!
>
>
>> In doing so I
>> looked at the list of to-be-collected objects at the first full GC in the
>> simulator. I'll list them here. What are they you wonder? These are the
>> objects that are unreachable in a snapshotted image that has been converted
>> to 64-bits. So they're objects that I suspect are always reclaimed on the
>> first GC. They're the objects comprising the screen menu that was opened
>> to save and quit the image. Here's ones I printed out to investigate:
>>
>
> Interesting catch. It makes sense when you think about it, but I never would
> have thought about it.
>
> Dave
>
So we should be doing a garbage collect in #snapshot:andQuit:
right before the call to #snapshotPrimitive ?
cheers -ben
More information about the Vm-dev
mailing list