The GC keeps track of the starting address and the length of each allocation.
How to deal with: 1.alloc 1000 bytes to pointer 2.increment pointer by 500 bytes 3.checking if block 1000 bytes is reachable but only pointer is in roots
The GC keeps track of the starting address and the length of each allocation.
How to deal with: 1.alloc 1000 bytes to pointer 2.increment pointer by 500 bytes 3.checking if block 1000 bytes is reachable but only pointer is in roots