Garbage Collection – Plan Phase
摘要
After the Mark phase, all objects have been identified as reachable or not. Those reachable are marked by a dedicated bit. Some of the marked objects may be additionally marked as pinned by another bit. At this moment, the Garbage Collector has all the necessary information to continue its job. But the question arises – should it proceed with a Sweep or a Compact collection?