Re: Allocators and memory reclamation
- From: Maciej Sobczak <see.my.homepage@xxxxxxxxx>
- Date: Tue, 29 Jan 2008 03:12:48 -0800 (PST)
On 29 Sty, 01:41, Robert A Duff <bobd...@xxxxxxxxxxxxxxxxxxxx> wrote:
Finalization of heap objects happens when you do[...]
Unchecked_Deallocation. In addition, when an access type goes
out of scope, all remaining objects (the ones you did not
Unchecked_Deallocate) are finalized in an arbitrary order,
but this does not free the memory.
In implementation terms, each finalizable heap object is[...]
chained onto a doubly-linked list. U_D removes the object
from the list, finalizes it, and frees the memory.
When the access type goes out of scope, the implementation
walks down the list and finalizes everything on it.
This, and the replies from Adam and Dmitry give me the complete
picture of how it works. Thanks for the explanation.
--
Maciej Sobczak * www.msobczak.com * www.inspirel.com
.
- References:
- Allocators and memory reclamation
- From: Maciej Sobczak
- Re: Allocators and memory reclamation
- From: Robert A Duff
- Allocators and memory reclamation
- Prev by Date: Allocators and memory reclamation
- Next by Date: Re: Interfaces and private types
- Previous by thread: Re: Allocators and memory reclamation
- Next by thread: Allocators and memory reclamation
- Index(es):
Relevant Pages
|