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

aio-libs / multidict / 35515167561
87%

Build:
DEFAULT BRANCH: master
Ran 20 Sep 2026 02:01PM UTC
Jobs 1
Files 39
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

20 Sep 2026 02:00PM UTC coverage: 87.303%. Remained the same
35515167561

push

github

web-flow
Drop dead retry loop in md_clone_from_ht and fix suspend comments (#1486)

<!-- Thank you for your contribution! -->

## What do these changes do?

An automated review of #1484 flagged `md_readonly_find_next()`'s
allocation
as a potential use-after-free, reasoning that a blocking
`PyMem_Malloc()`
call could transiently suspend the held critical section. That mechanism
does not exist: per #1469, `PyMem_Malloc()` never suspends an acquired
critical section on the free-threaded build, so the finding was a false
positive there.

Chasing the same claim through the rest of `hashtable.h` turned up two
real issues. `md_clone_from_ht()` still carried the exact
retry-on-staleness loop #1469 already proved dead in `_md_resize()`,
just
never cleaned up here; this drops it the same way. `_md_del_at()`,
`_md_del_at_for_upd()` and `_md_replace()` have a real suspension risk
(a decref of the old key/value can run a finalizer or weakref callback),
but their comments wrongly attributed it to "the same allocator lock as
`PyMem_Malloc()`", pointing at a comment that no longer exists anywhere
in
the file after #1469; reworded those to name the actual mechanism.

## Are there changes in behavior for the user?

No.

## Is it a substantial burden for the maintainers to support this?

No; this only touches internal comments and removes unreachable code in
one free-threaded-only helper.

## Related issue number

Related to #1484 and #1469, not closing either.

## Checklist

- [x] I think the code is well written
- [ ] Unit tests for the changes exist -- N/A, no behavior change; the
      touched paths are already exercised by the existing suite on both
      backends
- [x] Documentation reflects the changes
- [ ] If you provide code modification, please add yourself to
`CONTRIBUTORS.txt` -- N/A, no such file in this repo
- [x] Add a new news fragment into the `CHANGES/` folder
- [x] `make doc-spelling` passes and any new technical words are added
to `docs/spelling_wordlist.txt... (continued)

762 of 1524 branches covered (50.0%)

Branch coverage included in aggregate %.

6320 of 6588 relevant lines covered (95.93%)

1.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 MyPy - 35515167561.1 20 Sep 2026 02:01PM UTC 78
87.3
GitHub Action Run
Source Files on build 35515167561
  • Tree
  • List 39
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35515167561
  • 50a6188a on github
  • Prev Build on master (#35507866989)
  • Next Build on master (#35528954494)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc