comp.lang.ada
 help / color / mirror / Atom feed
* Question about garbage collection
@ 1998-04-18  0:00 Centaury
  1998-04-18  0:00 ` Matthew Heaney
  0 siblings, 1 reply; 12+ messages in thread
From: Centaury @ 1998-04-18  0:00 UTC (permalink / 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








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

end of thread, other threads:[~1998-04-28  0:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-18  0:00 Question about garbage collection Centaury
1998-04-18  0:00 ` 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
1998-04-24  0:00               ` Robert Dewar
     [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

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