|
|
On 3/14/2012 9:24, clipka wrote:
> So far, so good. But how does the GC know how long each chunk of
> garbage-to-collect is?
It's using basically the same kind of information that's already in each
object to point to a vtable. If the first word of each object points to a
vtable, you stick the information once in the vtable about how big it is and
where the pointers are.
--
Darren New, San Diego CA, USA (PST)
People tell me I am the counter-example.
Post a reply to this message
|
|