From: stt@henning.camb.inmet.com (Tucker Taft)
Subject: Re: Q: memory management
Date: 1996/06/18
Date: 1996-06-18T00:00:00+00:00 [thread overview]
Message-ID: <Dt7Iv0.AHw.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: uvvg27t9v68.fsf@chaq.informatik.uni-tuebingen.de
Hannes Haug (Hannes.Haug@Student.Uni-Tuebingen.de) wrote:
: >>>>> "TT" == Tucker Taft <stt@henning.camb.inmet.com> writes:
: TT> This should work. The storage pool would be specified via
: TT> Some_Access_Type'Storage_Pool where Some_Access_Type is any
: TT> access type declared at the library level. It would be safest
: TT> if the access type had an unconstrained designated subtype,
: TT> such as:
: TT> type Some_Access_Type is access all String;
: TT> to avoid the implementation-chosen storage pool from being one
: TT> that only works on access collections of uniformly-sized
: TT> objects.
: Let's be e little bit pedantic. The size of such an array is always > 0,
: even if the length is 0. The bounds have to be stored somewhere. So what
: happens if I want to allocate a piece of memory that is smaller than such
: an array of length 0 ? Perhaps the storage pool doesn't handle such small
: pieces. It's just a theoretical problem, of course.
Solution: You implement your own storage pool. Which probably ends
up calling "malloc" or some even lower level operation.
That's what happens when you start getting too theoretical ;-).
: - hannes
-Tucker Taft stt@inmet.com http://www.inmet.com/~stt/
Intermetrics, Inc. Cambridge, MA USA
next prev parent reply other threads:[~1996-06-18 0:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-15 0:00 Q: memory management Hannes Haug
1996-06-15 0:00 ` Robert Dewar
1996-06-15 0:00 ` Jon S Anthony
1996-06-16 0:00 ` Robert Dewar
1996-06-18 0:00 ` Kent Mitchell
1996-06-16 0:00 ` Hannes Haug
1996-06-17 0:00 ` Hannes Haug
1996-06-17 0:00 ` Tucker Taft
1996-06-18 0:00 ` Hannes Haug
1996-06-18 0:00 ` Tucker Taft [this message]
1996-06-19 0:00 ` Hannes Haug
1996-06-18 0:00 ` Jon S Anthony
-- strict thread matches above, loose matches on Subject: below --
1996-06-19 0:00 W. Wesley Groleau (Wes)
1996-06-20 0:00 ` Hannes Haug
1996-06-20 0:00 ` Robert Dewar
1996-06-20 0:00 ` Hannes Haug
1996-06-21 0:00 ` Hannes Haug
1996-06-21 0:00 ` Robert Dewar
1996-06-25 0:00 ` Hannes Haug
1996-06-24 0:00 Q: Memory management W. Wesley Groleau (Wes)
1996-06-25 0:00 ` Jon S Anthony
1996-06-26 0:00 ` Robert Dewar
1996-06-25 0:00 ` Hannes Haug
1996-06-25 0:00 ` Robert A Duff
1996-06-25 0:00 ` Tucker Taft
[not found] ` <Dtzv4J.9FL@thomsoft.com>
1996-07-17 0:00 ` Robert Dewar
1996-06-27 0:00 ` Hannes Haug
[not found] <JSA.96Jun26142033@organon.com>
1996-06-27 0:00 ` Hannes Haug
1996-06-27 0:00 ` Robert A Duff
1996-06-27 0:00 ` Hannes Haug
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox