Repository navigation
Commit 76ec268
committed
[JSC] Collector should decide whether its thread marks during the concurrent phase
https://bugs.webkit.org/show_bug.cgi?id=329209
rdar://191179872
Reviewed by Keith Miller.
SlotVisitor::drainInParallelPassively chose whether to mark on the collector
thread or to leave the marking to the helpers, by looking at the mutator's world
state. That is Collector policy and will need to be adjusted for global
collections with multiple mutators, so move it to its only caller,
Collector::runConcurrentPhase. Leave drainInParallelPassively only to donate and
wait for termination, which is also the path that its name describes.
This does not change behavior: the condition is the same, just negated,
rewritten in the caller, except that it drops the worldIsStopped() test, which
was always false. The collector thread enters the concurrent phase only after
resuming the world, and with concurrent GC off a collection never enters this phase.
Canonical link: https://commits.webkit.org/325058@main1 parent a0639cf commit 76ec268
2 files changed
Lines changed: 12 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
607 | 612 | | |
608 | 613 | | |
609 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
610 | 619 | | |
611 | 620 | | |
612 | 621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
| 727 | + | |
| 728 | + | |
739 | 729 | | |
740 | 730 | | |
741 | 731 | | |
| |||
0 commit comments