POV-Ray : Newsgroups : povray.off-topic : Programming design question, related to GC : Re: Programming design question, related to GC Server Time
1 Oct 2024 07:18:36 EDT (-0400)
  Re: Programming design question, related to GC  
From: Nicolas Alvarez
Date: 11 Apr 2008 23:37:06
Message: <48002e62@news.povray.org>

>>   If this is so, then what we have is a memory leak. In a GC'd system.
> 
> It's definitely a problem. Some would argue that it's not technically a 
> memory leak, but rather a failure to disconnect the Listener from the 
> Engine. It's easier to diagnose (if it's deterministic, at least), 
> because you see the Engine's list growing indefinitely. You don't lose 
> memory and not know what's in it.

It would be a leak if the Engine kept *strong* references to the 
Listeners. Then the Listeners would never get GC'd.


Post a reply to this message

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