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

ivmai / bdwgc / 1487
77%

Build:
DEFAULT BRANCH: master
Ran 25 Apr 2023 06:55AM UTC
Jobs 1
Files 58
Run time 2s
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

25 Apr 2023 06:55AM UTC coverage: 76.661% (+0.05%) from 76.615%
1487

push

travis-ci-com

ivmai
Do incremental mark some in GC_collect_a_little even if GC is disabled

Previous behavior was not documented but this API function did nothing
in this case.  That might cause a deadlock in the client code if the
incremental collection was ongoing and the client called
GC_collect_a_little() repeatedly (while the result is true).

The new behavior, for the cause of disabled garbage collection, is to
perform some amount of marking if the incremental collection is
ongoing (but not stopping the world and, thus, not causing the memory
reclaim to start), returning true if there is something more to mark.

* alloc.c (GC_try_to_collect_inner): Change a loop to do-while one.
* alloc.c (GC_collect_a_little): Do not check GC_dont_gc (i.e. call
GC_collect_a_little_inner() unconditionally); add comment.
* include/gc/gc.h (GC_collect_a_little): Update comment (describe the
case when GC is disabled).
* tests/gctest.c (check_heap_stats): Do not call GC_is_disabled(); add
comment.

5 of 5 new or added lines in 2 files covered. (100.0%)

7788 of 10159 relevant lines covered (76.66%)

8863351.24 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
77.47
-0.18% alloc.c

Uncovered Existing Lines

Lines Coverage ∆ File
5
90.82
-2.55% headers.c
8
79.14
-1.92% allchblk.c
8
86.25
-3.33% mallocx.c
28
74.74
-0.15% tests/gctest.c
87
77.47
-0.18% alloc.c
Jobs
ID Job ID Ran Files Coverage
5 1487.5 (CONF_OPTIONS="--enable-gcov --enable-single-obj-compilation --enable-cplusplus --disable-shared --enable-gc-assertions" CFLAGS_EXTRA="-D USE_CUSTOM_SPECIFIC" CC_FOR_CHECK=g++ MAKEFILE_TARGETS="all" MAKEFILE_TARGETS_CHECK="check" NO_CLONE_LIBATOMIC_OPS=true REPORT_COVERAGE=true TESTS_CUSTOM_RUN=true) 25 Apr 2023 06:55AM UTC 58
76.66
Travis Job 1487.5
Source Files on build 1487
  • Tree
  • List 58
  • Changed 34
  • Source Changed 4
  • Coverage Changed 34
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #1487
  • 4bdf9b9c on github
  • Prev Build on master (#1486)
  • Next Build on master (#1488)
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

© 2025 Coveralls, Inc