summaryrefslogtreecommitdiff
path: root/mallocx.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2016-11-18 17:16:32 +0300
committerIvan Maidanski <ivmai@mail.ru>2016-11-18 17:16:32 +0300
commit40dbd69a03753a4f2b1d8893833ebaf9a7e04f9a (patch)
treef514e8ae4c38569347206e099aa30579a0d8d865 /mallocx.c
parentc5d4ef9c1bc7ebca7e710bd96d78d28fb5fe1449 (diff)
downloadbdwgc-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