3 ms·
I don't like extra forwarding tables, as it imposes a huge cache hit. Forward pointers are only needed during a GC, so they very rare. Usually a compacting GC
by rurban 6y ago
I don't like extra forwarding tables, as it imposes a huge cache hit.
Forward pointers are only needed during a GC, so they very rare. Usually a compacting GC tags the forwarding ptr as normal heap ptr, and just checks if it needs to be forwarded or not. There are always at least 2 lower bits free and one is enough. It's just one extra redirection and needs no extra forwarding table lookup.
Also the extra table is pretty big. So not low memory overhead, rather largish.