comp.lang.ada
 help / color / mirror / Atom feed
From: "Centaury" <utopian@tm.net.my>
Subject: Question about garbage collection
Date: 1998/04/18
Date: 1998-04-18T00:00:00+00:00	[thread overview]
Message-ID: <6h851g$sq$1@news.tm.net.my> (raw)


One question about access type garbage collection.
I understand that when an access object is no longer pointed at by an access
variable, the space taken by object would usually be reclaimed.
One question. . if the object itself is a record that has an access type in
it, and that object is pointing at another object, but not pointed at; would
it be considered lost and would the space be reclaimed??

Let me put it in illustration:

head --> ("myname",link) --> ("yourname", link) --> null
                ^
                |
                |
              ("hisname", link) -->null

will the space resided by ("hisname", link) be recovered by garbage
collector??

Regards,
Centaury








             reply	other threads:[~1998-04-18  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-18  0:00 Centaury [this message]
1998-04-18  0:00 ` Question about garbage collection Matthew Heaney
1998-04-19  0:00   ` Ed Falis
1998-04-19  0:00     ` Robert Dewar
1998-04-20  0:00       ` Fergus Henderson
1998-04-20  0:00         ` Robert Dewar
1998-04-21  0:00           ` raw
     [not found]         ` <ErqJro.9BI@world.std.com>
1998-04-21  0:00           ` Robert Dewar
1998-04-21  0:00             ` William Tanksley
     [not found]               ` <ErvsM0.Bu7@world.std.com>
1998-04-24  0:00                 ` Robert Dewar
     [not found]                   ` <Es39LE.B5o@world.std.com>
1998-04-28  0:00                     ` Robert Dewar
1998-04-24  0:00               ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox