[prev in list] [next in list] [prev in thread] [next in thread] 

List:       debian-devel
Subject:    Re: memory debugging and C++ (program keeps crashing)
From:       Marc Singer <elf () buici ! com>
Date:       2002-09-30 16:01:28
[Download RAW message or body]

On Mon, Sep 30, 2002 at 01:41:29AM -0400, Glenn Maynard wrote:
> On Sun, Sep 29, 2002 at 10:13:57PM -0700, Marc Singer wrote:
> > Indeed.  I mean that the memory is allocated and freed through the
> > same mechanisms.  Unlike other operating systems, there is usually
> > only one heap per process.  In the absence of constructors and
> > destructors, the calls are interchangeable.
> 

> Emphasizing that this isn't portable may not even work on later versions
> of g++, 

There is no guarantee, but it will tend to work.

> and probably won't work at all for delete[].

Look.  I'm not recommending this behavior.  I strongly recommend folks
to be parallel in their implementation.  There is no *good* reason not
to.  My point has been that there is only one heap.

> (This was implied, and may be obvious to most of us, but should be said
> explicitly to avoid confusion.)
> 
> -- 
> Glenn Maynard


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic