|
From: | strk |
Subject: | [Gnash-dev] GC and refcount |
Date: | Sat, 19 Dec 2009 12:17:43 +0100 |
Here's another idea to reduce memory use. We could mix refcount and gc for the GcResources so that in absence of circular refs we'll release them sooner. The additional overhead would be: - refcount management (per reference) - GC list management (per object) Implementation: - manage GcResources with intrusive_ptr<> like others. - Tweak add/drop refs for GcResource in libbase/smart_ptr.h - Tweak GcResource to add refcount and signal GC about being removed. --strk; Free GIS & Flash consultant/developer () ASCII Ribbon Campaign http://foo.keybit.net/~strk/services.html /\ Keep it simple!
[Prev in Thread] | Current Thread | [Next in Thread] |