≋ SharpRune / The Memory Lab
Inside a memory decision

Follow the reference.
Understand the lifetime.

Change an owner. Predict the outcome. Step through a collection and explain what survives.

A deterministic teaching model for CoreCLR concepts. It does not inspect your device, run the real GC, show real addresses or predict collection timings. Unity and Mono/Wasm use different collectors.

Ready to investigate

● Strong path┄ Weak edge▧ Reclaimed⌖ Pin active
Object reference graphThe readable object list below provides every state and retaining path.

Select an object to see its retaining path.

Collection journal

    Read the C# connection

    This sketch connects the diagram to a language construct. Run the full companion program in the linked lesson; the model is not its heap dump.

    Open the detailed lesson ↗

    From picture to evidence

    Use the diagram to form a hypothesis. Prove the actual retaining path with a matching-runtime dump, measure allocation rate and surviving bytes separately, then rerun the same workload after a change. A falling live set does not imply an immediate fall in process resident memory.