From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner)
Subject: Re: Access to classwide type
Date: 2000/07/24
Date: 2000-07-24T00:00:00+00:00 [thread overview]
Message-ID: <8li2f1$8q61@news.cis.okstate.edu> (raw)
In-Reply-To: 8li0m5$1i4$1@nnrp1.deja.com
On Mon, 24 Jul 2000 18:08:09 GMT, reason67@my-deja.com wrote:
>How in the heck does it do that? Does Ada.Unchecked_Deallocation read
>the tag and do a `size on the data structure to determine the size of
>the memory in heap to release? I am suprised by this. It is more
>implicit than I am used to in Ada.
You're assuming that the 'size is the amount of memory allocated. From
what I've read, most memory allocaters round that up to the nearest
power of 2, and some add their own chunk of memory for tracking
purposes. I believe GNAT just implements it as a small wrapper around
C's free function.
--
David Starner - dstarner98@aasaa.ofe.org
http/ftp: x8b4e53cd.dhcp.okstate.edu
It was starting to rain on the night that they cried forever,
It was blinding with snow on the night that they screamed goodbye.
- Dio, "Rock and Roll Children"
next prev parent reply other threads:[~2000-07-24 0:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-23 0:00 Access to classwide type reason67
2000-07-24 0:00 ` David Botton
2000-07-24 0:00 ` reason67
2000-07-24 0:00 ` Pat Rogers
2000-07-24 0:00 ` Pascal Obry
2000-07-24 0:00 ` David Starner [this message]
2000-07-25 0:00 ` Laurent Guerby
2000-07-24 0:00 ` Larry Kilgallen
2000-07-24 0:00 ` reason67
2000-07-24 0:00 ` Larry Kilgallen
2000-07-24 0:00 ` David Botton
2000-07-25 0:00 ` Matthew J Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox