Compaction: The Top Fix for Mark-Sweep Fragmentation

The leading solution to Mark-Sweep's memory fragmentation is *compaction* (Mark-Compact), which involves relocating live objects to contiguous memory blocks, thereby consolidating free space, although this phase is notably expensive in terms of time and resources.

Sources

Open the full topic