public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* C++ and garbage collection
@ 2011-02-04 20:25 Enrico Weigelt
  2011-02-04 22:13 ` Florian Weimer
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Enrico Weigelt @ 2011-02-04 20:25 UTC (permalink / raw)
  To: gcc-help


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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-02-12 20:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-04 20:25 C++ and garbage collection Enrico Weigelt
2011-02-04 22:13 ` Florian Weimer
2011-02-05 12:51   ` Enrico Weigelt
2011-02-05  0:03 ` Jonathan Wakely
2011-02-05  4:25 ` Lawrence Crowl
2011-02-05 14:37   ` Enrico Weigelt
2011-02-05 14:43     ` Jonathan Wakely
2011-02-05 14:56       ` Enrico Weigelt
2011-02-06 19:29         ` Florian Weimer
2011-02-07  6:41           ` Enrico Weigelt
2011-02-07 18:50             ` Florian Weimer
2011-02-12 20:55               ` Enrico Weigelt
2011-02-06 23:01         ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).