Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2050

Include size in error messages when memory allocation fails

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.7.0
    • Labels:
      None
    • # Replies:
      4
    • Last comment by Customer:
      true

      Description

      If a malloc or realloc call fails, it would sometimes be useful to know whether we're trying to allocate 100 bytes or 100MB. Add the size to the relevant error message.

        Issue Links

          Activity

          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'daveh86', u'name': u'David Hows', u'email': u'howsdav@gmail.com'}

          Message: WT-2050 - when memory allocation fails, say how much memory we were trying to allocate
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/88e3072ba22ec885898af72262a975953f5dc414

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'daveh86', u'name': u'David Hows', u'email': u'howsdav@gmail.com'} Message: WT-2050 - when memory allocation fails, say how much memory we were trying to allocate Branch: develop https://github.com/wiredtiger/wiredtiger/commit/88e3072ba22ec885898af72262a975953f5dc414
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'daveh86', u'name': u'David Hows', u'email': u'howsdav@gmail.com'}

          Message: WT-2050 - switch PRIu64 with WT_SIZET_FMT
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/fe4034d6979567173e0dea10630f4b4840d453d3

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'daveh86', u'name': u'David Hows', u'email': u'howsdav@gmail.com'} Message: WT-2050 - switch PRIu64 with WT_SIZET_FMT Branch: develop https://github.com/wiredtiger/wiredtiger/commit/fe4034d6979567173e0dea10630f4b4840d453d3
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'}

          Message: Merge pull request #2139 from wiredtiger/WT-2050

          WT-2050 - show size with memory allocation errors
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/258e2e19e605d90d04c7d915c831bd1924b8ead8

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'} Message: Merge pull request #2139 from wiredtiger/ WT-2050 WT-2050 - show size with memory allocation errors Branch: develop https://github.com/wiredtiger/wiredtiger/commit/258e2e19e605d90d04c7d915c831bd1924b8ead8
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'}

          Message: Merge pull request #2139 from wiredtiger/WT-2050

          WT-2050 - show size with memory allocation errors
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/258e2e19e605d90d04c7d915c831bd1924b8ead8

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'} Message: Merge pull request #2139 from wiredtiger/ WT-2050 WT-2050 - show size with memory allocation errors Branch: develop https://github.com/wiredtiger/wiredtiger/commit/258e2e19e605d90d04c7d915c831bd1924b8ead8

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 30 weeks, 5 days ago
                Date of 1st Reply: