🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3495

How much free heap memory?

#3495
From: Brian Modra
Date: Fri, 17 Nov 1995 00:00
20 lines
1621 bytes
Posted to comp.unix.programmer, and gnu.g++.help

Does anyone have experience with mallinfo() on Solaris?
I'm trying to use malloc(3X) rather than malloc(3C) because 3X is more
space eficient, and it allows me to query the remaining space using
mallinfo(). The problem I am having though, is that the "new" command in
C++ calls malloc() for me, and I think it must be getting the wrong
malloc(), because it coredumps. I've included -lmalloc after all the
objects, and added it after all the libararies too just for good
measure, but it coredumps. Any clues?

Does anyone know an alternate method of finding out how much heap memory
is available?

Please reply by Email as well as posting because the news feed is a bit
unreliable here, and I miss a lot of the postings.
-- 
Brian Modra (Software Engineer/Director AMRAD Pty/Ltd)
bmodra@lands.sa.gov.au, bmodra@amrad.com.au
Work: 08-2049060 Home: 08-3655075 (international: 61-8-3655075)
Technical Details
Message-ID: <30ABD4DE.330E@lands.sa.gov.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc89c,695336593c3df0ac,start
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 10ba33,695336593c3df0ac,start
X-Google-Attributes: gid10ba33,public
From: Brian Modra <bmodra@lands.sa.gov.au>
Subject: How much free heap memory?
Date: 1995/11/17
Message-ID: <30ABD4DE.330E@lands.sa.gov.au>
X-Deja-AN: 119579216
to: lisa-team@lands.sa.gov.au, dave@csis.dit.csiro.au
content-type: text/plain; charset=us-ascii
organization: S.A. Dept. of Environment & Natural Resources
mime-version: 1.0
newsgroups: comp.unix.programmer,gnu.g++.help
x-mailer: Mozilla 2.0b1 (X11; I; HP-UX A.09.01 9000/715)