On Tue, Sep 22, 2009 at 8:40 AM, bearophile <bearophileh...@lycos.com> wrote: > Daniel Keep: >>What if the GC just happens to re-use that address for a different object?< > > I don't understand. Can you explain me an example where this problem may > happen? > > Bye, > bearophile >
Object is allocated at 0x10001000, that object is collected, its memory is put back on the freelist, another object of the same size is allocated, and that block of memory is used again, allocating a new object at 0x10001000.