Repository navigation
Commit 0bf94cf
committed
[JSC] Replace an unreachable branch in Heap::stopTheMutator with an assert
https://bugs.webkit.org/show_bug.cgi?id=328987
rdar://191050629
Reviewed by Yusuke Suzuki.
Heap::stopTheMutator returned false when the mutator already held the conn,
after asserting that the mutator had no heap access. That branch is never
taken: only the collector thread calls stopTheMutator, and only while it is
conducting, so no mutator holds the conn. Its asserts could not hold either: a
mutator is given the conn only while it has heap access, and releasing heap
access also gives up the conn.
Replace the branch, and the two other asserts that the mutator does not hold
the conn, with one assert at the top of the loop.
* Source/JavaScriptCore/heap/Heap.cpp:
(JSC::Heap::clearConcurrentRetainedDataIfPossible):
Canonical link: https://commits.webkit.org/324791@main1 parent be58304 commit 0bf94cf
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1403 | 1403 | | |
1404 | 1404 | | |
1405 | 1405 | | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
1406 | 1409 | | |
1407 | 1410 | | |
1408 | 1411 | | |
1409 | | - | |
1410 | 1412 | | |
1411 | 1413 | | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | 1414 | | |
1419 | 1415 | | |
1420 | | - | |
1421 | 1416 | | |
1422 | 1417 | | |
1423 | 1418 | | |
| |||
0 commit comments