🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.powerpc
Article #2367

Re: Ask yourself these before you choosing a 32bit OS...

#2367
From: Jerry Shekhel
Date: Wed, 27 Sep 1995 03:41
27 lines
1902 bytes
Moises Lejter (mlm@cs.brown.edu) wrote:
:   Jerry>
:   Jerry> On the other hand, UNIX provides very robust virtual memory
:   Jerry> capabilities, so most programs can get by using only the
:   Jerry> unsophisticated heap management of malloc() and related
:   Jerry> functions.
:
: I am not sure how fair this statement is to modern versions of UNIX.
: It is true that the OS itself provides rudimentary facilities for
: expanding the heap - just sbrk() to extend heap memory.  However, the
: standard C library's heap allocation routines (malloc() and friends)
: do try to do a reasonable job in terms or reusing freed blocks,
: compacting contiguous free blocks when convenient.  I will grant you
: it is possible to construct an application whose dynamic memory
: behavior will defeat the strategies in the standard C library, but I
: am not sure that this is commonly a problem...
:

It's not a question of defeating the standard C library; there are some
things that malloc() simply cannot do.  Sure, it can coalesce adjacent
free blocks, but it cannot compact the heap by moving the allocated blocks,
because it has no way of fixing up the pointers into those blocks.

: Moises
--
Jerry J. Shekhel
jerry@cybercom.net
Technical Details
Message-ID: <44ah66$605@orion.cybercom.net>
Path: arc1-ca.pugleaf.net!kalypso.cybercom.net!jerry
References: <3vh2hc$9dd@falcon.ccs.uwo.ca> <wade-1809952212460001@f182-067.net.wisc.edu> <MLM.95Sep20011239@monaco.cs.brown.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!kalypso.cybercom.net!jerry
From: jerry@cybercom.net (Jerry Shekhel)
Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel,comp.os.ms-windows.advocacy
Subject: Re: Ask yourself these before you choosing a 32bit OS...
Date: 27 Sep 1995 03:41:57 GMT
Organization: Cyber Access Internet Communications, Inc.
Message-ID: <44ah66$605@orion.cybercom.net>
References: <3vh2hc$9dd@falcon.ccs.uwo.ca> <wade-1809952212460001@f182-067.net.wisc.edu> <MLM.95Sep20011239@monaco.cs.brown.edu>
NNTP-Posting-Host: kalypso.cybercom.net
X-Newsreader: TIN [version 1.2 PL2]