This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ and garbage collection


Hi folks,


I'm currently working on an complex C++ application (which I, if it
would have to be rewritten from scratch, would do in Java instead ;-o)
and I wonder whether it's possible to move to an garbage collection
in smaller steps. For now there're some parts using some "autopointer"
class (didn't deeply look into it, but I guess it's overloading
the pointer operations and doing some reference counting, which
of course isn't generally complete - would keep ring structures
forever ;-o).

My idea is to add some mark+sweep gc (boem-gc ?) and remove (or
somehow disable) all delete operations. Does that work safely,
or do I have to cope with certain nasty side effects ?


thx
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]