Argument Against GC

From wiki
Revision as of 22:07, 24 September 2007 by SeanParent (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Use Cases for Garbage Collection in C++

  • Object oriented programming - reference based objects
  • Functional programming - avoiding copies of immutable objects
  • Trash collection - preventing bad code from crashing or exhausting memory or address space.

Analysis of Each Use Case

  • Current solutions - reference counting and pooled memory
  • Look at what happens with reference counting with move semantics
  • For trash collection - sight issues with trash and reference counted systems [I had a good one recently - can't find it at the moment - bug easy to google for.]

Complexity of Current GC for C++ Design

  • Type qualifiers vs. modifiers for gc_strict and gc_relaxed