• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bdwgc / bdwgc / 1981
73%

Build:
DEFAULT BRANCH: master
Ran 29 Dec 2025 07:57PM UTC
Jobs 1
Files 37
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Dec 2025 07:47PM UTC coverage: 73.055% (-0.5%) from 73.579%
1981

push

travis-ci

ivmai
Provide GC_FREEZERO() and redirect platform freezero[all]()

Issue #497 (bdwgc).

* .cspell.json: Add `FREEZERO`, `freezero`, `FREEZEROALL`,
`freezeroall` words.
* README.md (The C Interface to the Allocator, Debugging Facilities):
Mention `GC_freezero()`.
* dbg_mlc.c (debug_free_zero): New static function (move code from
`GC_debug_free()` but add `clear_lb` argument).
* dbg_mlc.c (GC_debug_free): Call `debug_free_zero()`.
* dbg_mlc.c (GC_debug_freezero): Implement.
* malloc.c (GC_freezero): Likewise.
* docs/debugging.md (Prematurely Reclaimed Objects): Update about
incorrect `GC_free` call.
* docs/leak.md: Mention `freezero` and `freezeroall`.
* docs/macros.md (REDIRECT_MALLOC, REDIRECT_MALLOC_DEBUG, IGNORE_FREE):
Likewise.
* include/gc/gc.h (GC_find_leak, GC_non_gc_bytes, GC_malloc, GC_base):
Update comment.
* include/gc/gc_disclaim.h (GC_register_disclaim_proc): Likewise.
* include/gc/gc.h (GC_freezero, GC_debug_freezero): New API function
declaration.
* include/gc/gc.h (GC_FREEZERO, GC_FREEZEROALL): New public macro.
* include/gc/leak_detector.h (freezero, freezeroall): Undefine and
redefine macro.
* include/private/gc_priv.h (GC_free_internal): Update comment.
* include/private/gc_priv.h (GC_free_internal): Append `clear_ofs` and
`clear_lb` arguments.
* malloc.c (GC_free_internal): Likewise.
* malloc.c [REDIRECT_MALLOC && !REDIRECT_MALLOC_IN_HEADER]
(REDIRECT_FREEZERO_F): New macro.
* malloc.c [REDIRECT_MALLOC && !REDIRECT_MALLOC_IN_HEADER] (freezero,
freezeroall): Implement.
* malloc.c (GC_free_internal): Call `BZERO()` if `clear_lb` is
positive.
* tests/gctest.c (test_generic_malloc_or_special, run_one_test): Call
`GC_FREEZEROALL()` instead of some `GC_FREE()` calls.
* tests/gctest.c (run_one_test): Call `GC_freezero` instead of some
`GC_free()` calls; call `GC_FREEZERO()` instead of some `GC_FREE()`
calls.
* tests/leak.c (main): Call `freezero()` and `freezeroall()`.

25 of 27 new or added lines in 2 files covered. (92.59%)

181 existing lines in 6 files now uncovered.

6488 of 8881 relevant lines covered (73.05%)

14037784.62 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
40.25
1.57% dbg_mlc.c
1
89.49
0.11% malloc.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.0
-1.0% blacklst.c
1
93.58
-0.53% headers.c
27
85.32
-0.11% mallocx.c
28
85.76
-4.24% mark.c
29
67.5
-3.66% finalize.c
95
40.25
1.57% dbg_mlc.c
Jobs
ID Job ID Ran Files Coverage
1 1981.1 29 Dec 2025 07:57PM UTC 37
73.05
Travis Job
Source Files on build 1981
  • Tree
  • List 37
  • Changed 13
  • Source Changed 8
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1981
  • 6d018a1f on github
  • Prev Build on master (#1976)
  • Next Build on master (#1985)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc