<blockquote>
<p>P.P.S. It would be great to be able to <code>call validateImage()</code> from within the debugger.</p>
</blockquote>
<p>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.</p>
<p>In any case here are the functions:<br>
runLeakCheckerForFreeSpace(sqInt gcModes)<br>
runLeakCheckerFor(sqInt gcModes)<br>
runLeakCheckerForexcludeUnmarkedObjsclassIndicesShouldBeValid(sqInt gcModes, sqInt excludeUnmarkedObjs, sqInt classIndicesShouldBeValid)</p>
<p>And the GC modes are in VMMaker, see GCModeFull, etc.</p>
<p>Aeolus.image$ finddefine GCMode ../spur64src/vm/gcc3x-cointerp.c<br>
#define GCModeBecome 8<br>
#define GCModeFreeSpace 32<br>
#define GCModeFull 1<br>
#define GCModeImageSegment 16<br>
#define GCModeIncremental 4<br>
#define GCModeNewSpace 2</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/444?email_source=notifications&email_token=AIJPEW6GPR2WPQU4H2MC7XTQUNTABA5CNFSM4JNBNJH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEMZ4FA#issuecomment-555326996">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW4A2VW52F6KOBMME63QUNTABANCNFSM4JNBNJHQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEW4BCEVEXXJRN4PPTK3QUNTABA5CNFSM4JNBNJH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEMZ4FA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/444?email_source=notifications\u0026email_token=AIJPEW6GPR2WPQU4H2MC7XTQUNTABA5CNFSM4JNBNJH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEMZ4FA#issuecomment-555326996",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/444?email_source=notifications\u0026email_token=AIJPEW6GPR2WPQU4H2MC7XTQUNTABA5CNFSM4JNBNJH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEMZ4FA#issuecomment-555326996",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>