Re: Compiler Bug HP ANSI C++ creates memory Leak
From: Brand Hunt (brandhunt_at_hotmail.com)
Date: 05/29/04
- Next message: Alan D Johnson: "Re: Logging User-Activities"
- Previous message: RJH: "Flash 6 crashes Mozilla"
- In reply to: Helmut Zeisel: "Compiler Bug HP ANSI C++ creates memory Leak"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 May 2004 23:47:38 -0700
Helmut-
It isn't necessarily a memory leak. There is no guarantee that an
allocator will return the same memory block that has been most
recently
freed (even if the new malloc call is for the same size of the block
just freed.)
Yes, many allocators choose to implement it the way you expect.
That said, you could _easily_ be seeing a problem with memory
fragmentation within the allocator. NewCode has a whitepaper on their
website that describes this problem within the HP-UX allocator. I
recommend you give the whitepaper a look and write them for an eval:
-Brand
Helmut Zeisel <helmut.zeisel@aon.at> wrote in message
news:<c8v4j5.3oo.1@webpc1.vaig.vads.cc>...
> We are porting a C++ program to HPUX. Because of a compiler bug, our
> program creates memory leaks. Essentially the problem is as follows:
>
<snip>
>
> Is there a newer version of aCC available that corrects this bug?
>
> Helmut Zeisel
- Next message: Alan D Johnson: "Re: Logging User-Activities"
- Previous message: RJH: "Flash 6 crashes Mozilla"
- In reply to: Helmut Zeisel: "Compiler Bug HP ANSI C++ creates memory Leak"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|