]> granicus.if.org Git - gc/commit
New API function (get_expl_freed_bytes_since_gc)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 11 Jan 2018 21:56:36 +0000 (00:56 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 11 Jan 2018 21:56:36 +0000 (00:56 +0300)
commitc3fb80019f9df0f14528cddddbafa277fb4149f2
tree71d52b3b77026d59ebd347eaacd67c7f25acfe7c
parentff5a875bb4ceeffce412a08403dca84ba0a81840
New API function (get_expl_freed_bytes_since_gc)

Note: this function could be used in test_cpp to check that the proper
operator delete is called.

* include/gc.h (GC_get_expl_freed_bytes_since_gc): New function
prototype.
* mallocx.c (GC_get_expl_freed_bytes_since_gc): New function definition
(which returns GC_bytes_freed).
include/gc.h
mallocx.c