[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] GC and refcount

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)

        - 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.


 Free GIS & Flash consultant/developer      ()  ASCII Ribbon Campaign  /\  Keep it simple! 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]