]> granicus.if.org Git - gc/commit
Fix GC_finalized_malloc for out-of-memory case (and for missing
authorIvan Maidanski <ivmai@mail.ru>
Wed, 18 Jan 2012 04:51:16 +0000 (08:51 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 18 Jan 2012 09:20:45 +0000 (13:20 +0400)
commit14175912b9a31dd4dc19402743f6ca74e3d3b4e0
treea771fe5aab5e264c66d297bd1103548140217f53
parenteed89a623b65d6223e5240ba6444e7c7d71799be
Fix GC_finalized_malloc for out-of-memory case (and for missing
'const' qualifier)

* fnlz_mlc.c (GC_finalized_disclaim): Add 'const' qualifier for "fc"
pointer.
* fnlz_mlc.c (GC_core_finalized_malloc, GC_finalized_malloc): Cast
"op" to 'const' pointer on "fclos" storing.
* fnlz_mlc.c (GC_finalized_malloc): Use GC_get_oom_fn() instead of
locked read of GC_oom_fn.
* fnlz_mlc.c (GC_core_finalized_malloc): Test GC_generic_malloc result
for NULL (return NULL in this case).
* fnlz_mlc.c (GC_core_finalized_malloc): Add assertion on GC_size
returned value (at least just to outline that it might be bigger than
"lb" value).
fnlz_mlc.c