[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Reproduceable Segmentation fault while saving images (#444)

Eliot Miranda notifications at github.com
Tue Nov 19 04:24:32 UTC 2019

> P.P.S. It would be great to be able to `call validateImage()` from within the debugger.

You can run the leak checker.  You have to be careful because it scans stack frames, etc, and so needs to be called at a sensible point.  Expsriencer shows what these points are, but generally around the invocation of a primitive is a good point, when the VM is polling for events, etc.  Btu half way through building a frame is probably not a good idea, etc.

In any case here are the functions:
runLeakCheckerForFreeSpace(sqInt gcModes)
runLeakCheckerFor(sqInt gcModes)
runLeakCheckerForexcludeUnmarkedObjsclassIndicesShouldBeValid(sqInt gcModes, sqInt excludeUnmarkedObjs, sqInt classIndicesShouldBeValid)

And the GC modes are in VMMaker, see GCModeFull, etc.

Aeolus.image$ finddefine GCMode ../spur64src/vm/gcc3x-cointerp.c
#define GCModeBecome 8
#define GCModeFreeSpace 32
#define GCModeFull 1
#define GCModeImageSegment 16
#define GCModeIncremental 4
#define GCModeNewSpace 2

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20191118/fce34b47/attachment.html>

More information about the Vm-dev mailing list