diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-11-18 17:16:32 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-11-18 17:16:32 +0300 |
commit | 40dbd69a03753a4f2b1d8893833ebaf9a7e04f9a (patch) | |
tree | f514e8ae4c38569347206e099aa30579a0d8d865 /mallocx.c | |
parent | c5d4ef9c1bc7ebca7e710bd96d78d28fb5fe1449 (diff) | |
download | bdwgc-40dbd69a03753a4f2b1d8893833ebaf9a7e04f9a.tar.gz |
Ensure oom_fn callback executed on out-of-memory in calloc
(fix commits e10c1eb, 4e1a6f9)
* malloc.c [REDIRECT_MALLOC && !REDIRECT_MALLOC_IN_HEADER] (calloc):
Call oom_fn(SIZE_MAX) (instead of returning NULL) if n*lb overflows.
* typd_mlc.c (GC_calloc_explicitly_typed): Likewise.
* typd_mlc.c (GC_calloc_explicitly_typed): If register_disappearing_link
failed due to lack of memory then call oom_fn(lb) instead of
GC_malloc(lb); update comment.
Diffstat (limited to 'mallocx.c')
0 files changed, 0 insertions, 0 deletions