Fix test_cpp failure in case GC_DEBUG is defined
authorIvan Maidanski <ivmai@mail.ru>
Thu, 5 Jul 2018 14:38:11 +0000 (17:38 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 5 Jul 2018 14:38:11 +0000 (17:38 +0300)
commit0dfe3cc3b4fd7428aeb94966df6496659ae52f16
tree3d647a0c2d28bb0f35acb5666560a721922f65b7
parent74c113b720f6201f15aa320b65feeacad71ca7a5
Fix test_cpp failure in case GC_DEBUG is defined

Now GC_bytes_freed is updated even if the real deallocation of the
explicitly freed object is deferred.

* dbg_mlc.c (GC_debug_free): Increment GC_bytes_freed by hhdr->hb_sz
in case of GC_free is not called (when the object is filled with
GC_FREED_MEM_MARKER); add comment.
dbg_mlc.c