Re: xmalloc string functions



Malcolm McLean wrote:
"CBFalconer" <cbfalconer@xxxxxxxxx> wrote in message #
Malcolm McLean wrote:
"Ben Pfaff" <blp@xxxxxxxxxxxxxxx> wrote in message

I have first-hand knowledge that VMware Workstation, Server, and
ESX Server contain wrappers over malloc() and related functions
that simply abort the entire program (including the running VM)
when memory is exhausted, and that it uses them in many places.

Thank you. The rubbish that some people are posting to this
thread is quite unbelievable.

If you carefully examine the message, I believe you will find that
Ben has confirmed the accuracy of the documentation, which states
that "malloc failure terminates the application" or similar. So
there is never any opportunity to correct, save, etc.

So these apps would be improved by replace the malloc() calls with
xmalloc().

No. xmalloc calls malloc. Boom.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.



--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • Re: xmalloc string functions
    ... ESX Server contain wrappers over malloc() and related functions ... that simply abort the entire program ... when memory is exhausted, and that it uses them in many places. ...
    (comp.lang.c)
  • Thank You -- Thomas J. Gritzan
    ... Thomas -- Your suggestion to malloc() out a block of memory was the ... Below are some details of my memory issues ... ... As a work around solution I guessed a ram disk would solve the ... persistence will frustrate the off topic police and give them a target ...
    (comp.lang.c)
  • Re: Simple question about headers and malloc!
    ... Therefore I am making all of its declarations ... memory (using malloc) and then exit back to main. ... allocation, I get data strored from the second allocation... ...
    (microsoft.public.vc.language)
  • Re: ten thousand small processes
    ... Stack needs to be executable for the current signal trampoline ... the use of malloc() that is causing your primary ... if there is any heap memory in use at all, no matter what you do, ... either directly, as a 4M page mapping (not used for user processes, ...
    (freebsd-performance)
  • Re: Help with Enter and Leave Instructions
    ... >>> for Memory Accesses, ... > The only standard way to do it is via malloc. ... Uh, SBRK/BRK is a standard, documented system call. ... > I really don't understand the objection to using C libraries. ...
    (alt.lang.asm)