Repository navigation
Commit 4bc9ad4
committed
[JSC] Assert that Heap::resumeTheMutator finds the mutator stopped
https://bugs.webkit.org/show_bug.cgi?id=329005
rdar://191056975
Reviewed by Vassili Bykov.
Heap::resumeTheMutator returned early when the mutator was not stopped, and
its asserts allowed a mutator that has heap access and is not stopped. Neither
happens: only the collector thread calls resumeTheMutator, when it is
conducting, and it conducts a stopped phase only after it has stopped the
mutator. A mutator that held heap access would have been handed the conn
instead, a stopped mutator cannot take heap access, and only resumeTheMutator
clears the stopped bit.
Replace the early return and the old asserts with three asserts, one for each
part of that state: the mutator is stopped, has no heap access, and does not
hold the conn.
Canonical link: https://commits.webkit.org/324804@main1 parent 1b4f243 commit 4bc9ad4
1 file changed
Lines changed: 5 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
1441 | | - | |
1442 | | - | |
1443 | | - | |
1444 | | - | |
1445 | | - | |
1446 | | - | |
1447 | | - | |
1448 | | - | |
1449 | | - | |
1450 | | - | |
1451 | | - | |
1452 | | - | |
1453 | | - | |
1454 | | - | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1455 | 1446 | | |
1456 | 1447 | | |
1457 | 1448 | | |
| |||
0 commit comments