Commit dbe0604
committed
Remove unused mark_barrier and done_barrier struct fields
Phase 5.3 replaced barrier-based dispatch with per-worker condvar
dispatch (see _PyGC_DispatchAndWait and the per-worker wake_mutex/
wake_cond plus pool-level done_mutex/done_cond). The mark_barrier
and done_barrier _PyGCBarrier fields stayed in _PyParallelGCState
with their Init/Fini calls but were no longer waited on.
Drop the two unused fields, their Init/Fini calls, and update the
struct + worker-loop documentation comments. startup_barrier stays
— still used for the once-per-pool worker-ready handshake during
ParallelStart.
Verified:
- Full distclean rebuild required (struct layout changed; the Makefile
doesn't track header changes through all .o files — without distclean,
stale .o files with the old struct offsets hit an assertion at runtime).
- GIL test suite: 124 tests pass (test_gc, test_gc_parallel_mark_alive,
test_gc_ws_deque) — same as before the cleanup.
Part of post-Phase-5 cleanup. The corresponding cleanup of FTP's
mark_barrier/done_barrier/phase_barrier is deferred until FTP's pool
dispatch is also converted to per-worker condvars (a follow-up to the
adaptive-controller forward-port).1 parent e2335fd commit dbe0604
2 files changed
Lines changed: 18 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| |||
308 | 310 | | |
309 | 311 | | |
310 | 312 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | 313 | | |
319 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
546 | 543 | | |
547 | 544 | | |
548 | 545 | | |
| |||
557 | 554 | | |
558 | 555 | | |
559 | 556 | | |
560 | | - | |
561 | | - | |
562 | 557 | | |
563 | 558 | | |
564 | 559 | | |
| |||
655 | 650 | | |
656 | 651 | | |
657 | 652 | | |
658 | | - | |
659 | | - | |
660 | | - | |
| 653 | + | |
| 654 | + | |
661 | 655 | | |
662 | 656 | | |
663 | 657 | | |
| |||
750 | 744 | | |
751 | 745 | | |
752 | 746 | | |
753 | | - | |
| 747 | + | |
754 | 748 | | |
755 | 749 | | |
756 | 750 | | |
| |||
0 commit comments