<div dir="ltr">Hi all,<div><br></div><div>I'm trying to understand when the outerContext of a BlockClosure is materialized in Cog. I'm assuming Cog does much better than materializing the context at allocation time of the BlockClosure, but I wasn't able to find that out by browsing VMMaker code.</div><div><br></div><div>Example: In `BlockClosureTest>>#setUp`, a BlockClosure is stored in an inst var and then accessed later in some tests. Assuming contexts are only materialized when necessary, how does Cog determine that the context of this closure has escaped? In the previous example, thisContext is also stored in an inst var. Whenever a context is stored like this, we must consider it escaped. Does the same apply for closures? As in, must we consider their home context escaped as soon as closures are stored somewhere?</div><div><br></div><div>Cheers,</div><div>Fabio</div></div>