4 ms·
But couldn't the hash be based on the object pointer or something?
But couldn't the hash be based on the object pointer or something?
Doesn't work because the GC moves objects around in memory
No, because the GC is free to move objects around to compact the heap.
No, for reasons others have said, but they can use the pointer to deal with collisions