home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!news.mentorg.com!bcannard
- From: bcannard@hppcb36.mentorg.com (Bob Cannard @ PCB x5565)
- Subject: Re: Garbage Collection for C++
- Originator: bcannard@hppcb36
- Sender: news@news.mentorg.com (News User)
- Message-ID: <1992Aug15.005542.3104@news.mentorg.com>
- Date: Sat, 15 Aug 1992 00:55:42 GMT
- References: <1992Aug13.153211.16572@ericsson.se> <1992Aug14.101226.6929@ericsson.se>
- Nntp-Posting-Host: hppcb36.mentorg.com
- Organization: Mentor Graphics
- Keywords:
- Followup-To:
- Lines: 26
-
-
- In article <1992Aug14.101226.6929@ericsson.se>, jonas@beppe.ericsson.se (Jonas Nygren) writes:
- |> I do not know if this really went out. So I am reposting my own article.
- |> /jonas
- |>
- |> In article 16572@ericsson.se, jonas@beppe.ericsson.se (Jonas Nygren) writes:
- [snip]
- |> > I am experimenting with a reference counting scheme where the ref-counter is
- |> > placed in a class 'object', which every class that want to be shared must
- |> > inherit. To work with multipel inheritance class 'object' should be declared
- |> > public virtual. Class 'object' also has the information wether the object was
- |> > dynamically allocated or not.
- [snip]
-
- Reference counting suffers serious drawbacks:
-
- 1. It can't handle cyclic data structures
-
- 2. It is one of the most inefficient forms of garbage collection known to man.
-
- The main reason I'm pushing for true garbage collection is that I consider
- reference counting (which I already have) to be an unacceptably poor solution.
- --
- bob_cannard@mentorg.com "Human beings? ... Well, I suppose they are a
- form of life, even if they are unspeakable"
- Exprssed opinions are not necessarily those of Mentor Graphics Corporation.
-