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

bdwgc / bdwgc / 2099
81%

Build:
DEFAULT BRANCH: master
Ran 09 Apr 2026 07:49PM 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

09 Apr 2026 07:36PM UTC coverage: 80.342% (-0.6%) from 80.922%
2099

push

travis-ci

ivmai
Prevent abort in GC_suspend in case of thread terminated by DllMain

Issue #886 (bdwgc).

A race condition is possible where we read `pending_delete_thread` as
false but the thread terminates before we reach the suspend.  In this
case, there is we should not abort because the thread has terminated
and does not need suspension.  We should be able to recognize this case
by checking the last error code (`SuspendThread()` on a terminated
thread should set an error code of `ERROR_ACCESS_DENIED` or
`ERROR_NO_MORE_ITEMS`).

* win32_threads.c [!MSWINCE] (GC_suspend): Code refactoring to have
`SuspendThread()` call in a single place.
* win32_threads.c [!MSWINCE && !GC_NO_THREADS_DISCOVERY] (GC_suspend):
If `SuspendThread()` failed with `ERROR_ACCESS_DENIED` or
`ERROR_NO_MORE_ITEMS`, then assume the thread has been just terminated
(set `t->pending_delete_thread` and return).

Co-authored-by: Tobiasz Laskowski <tobil4sk@outlook.com>

7197 of 8958 relevant lines covered (80.34%)

20016292.6 hits per line

Coverage Regressions

Lines Coverage ∆ File
33
70.28
-4.83% finalize.c
30
83.33
0.0% mallocx.c
29
87.56
-4.45% mark.c
1
89.49
0.0% malloc.c
Jobs
ID Job ID Ran Files Coverage
1 2099.1 09 Apr 2026 07:49PM UTC 37
80.34
Travis Job
Source Files on build 2099
  • Tree
  • List 37
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #2099
  • b819d9fe on github
  • Prev Build on master (#2097)
  • Next Build on master (#2101)
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