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]

Re: C++ and garbage collection


* Enrico Weigelt:

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

Performance might change.

Object lifetimes are no longer deterministic, and destructors will not
be called.  This can be a significant issue.

There are a few cases when the Boehm-Dehmers-Weiser collector won't
work, for instance if you have got custom memory allocators or use
some pointer encoding schemes.


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