home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aix / 9361 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!iWarp.intel.com|ichips!tmcconne
  3. From: tmcconne@sedona.intel.com (Tom McConnell)
  4. Subject: Re: AIX malloc and fault tolerance
  5. Message-ID: <1992Sep3.213432.21887@ichips.intel.com>
  6. Originator: tmcconne@sedona
  7. Sender: tmcconne@sedona (Tom McConnell)
  8. Organization: Intel Corporation
  9. References:  <1992Sep3.135156.9166@medtron.medtronic.com>
  10. Date: Thu, 3 Sep 1992 21:34:32 GMT
  11. Lines: 20
  12.  
  13.  
  14. In article <1992Sep3.135156.9166@medtron.medtronic.com>, sh0001@israel (Scott Hansohn) writes:
  15. > In AIX, a nonzero return from malloc does not guarantee that the
  16. > memory requested has been allocated to the process.  Neither does
  17. > a successful launch of a program containing a large static buffer
  18. > guarantee that the buffer may be fully usable.
  19. >
  20.  
  21.   You might also note that "malloc(0)" currently returns "0", although it is not
  22. guarenteed to do this in the future. This is what breaks the current version of
  23. g++ (version 2.2.2) if you call new[] with a size of 0.
  24.  
  25.     Cheers,
  26.  
  27.     Tom McConnell
  28. -- 
  29.  Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  30.  Intel, Corp. C3-91     |     Phone: (602)-554-8229
  31.  5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
  32.  Chandler, AZ  85226    | their right mind would claim them.
  33.