[SERVER-14889] report out of memory error when malloc() or realloc() fails Created: 13/Aug/14  Updated: 11/Jul/16  Resolved: 16/Aug/14

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 2.7.5

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-5348 Redefinition of macros while using th... Closed
is related to SERVER-13429 Replace writes to cout/cerr or stdout... Closed
is related to CXX-52 Remove MONGO_MALLOC and standardize d... Closed
is related to SERVER-12714 Eliminate uses of realloc/malloc/free... Closed
Participants:
Linked BF Score: 0

 Description   
  • rename ourmalloc/realloc to mongoMalloc/mongoRealloc
  • de-inline mongoMalloc and mongoRealloc
  • get rid of MONGO_MALLOC and MONGO_REALLOC macros


 Comments   
Comment by Githook User [ 15/Aug/14 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-14889 wrapped all malloc/realloc calls within src/mongo with mongoMalloc/mongoRealloc.
if memory allocation fails, report error and exit.
Branch: master
https://github.com/mongodb/mongo/commit/be05259d36ec5f44c821c8f2d103a4ee83ebaf53

Generated at Thu Feb 08 03:36:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.