POV-Ray : Newsgroups : povray.off-topic : A tale of two cities : Re: A tale of two cities Server Time
29 Jul 2024 16:18:57 EDT (-0400)
  Re: A tale of two cities  
From: Darren New
Date: 14 Mar 2012 23:42:54
Message: <4f61653e$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.