Repository navigation
Commit d39ac42
committed
[JSC] Replace three unreachable collection epilogue calls with asserts
https://bugs.webkit.org/show_bug.cgi?id=329110
rdar://191115102
Reviewed by Keith Miller.
End sets the epilogue bit while the mutator is either stopped or running the
collection itself:
- If the mutator is stopped, it has no heap access. Its next acquireAccess()
takes the slow path because the bit is set, and acquireAccessSlow runs the
epilogue as soon as it has access.
- If the mutator is running the collection, it runs the epilogue in
finishChangingPhase when it resumes the world, before it returns from the
collection.
Either way, the epilogue runs before the mutator does anything else with heap
access, so stopIfNecessarySlow and releaseAccessSlow never find the bit set.
Assert that instead of calling handleNeedCollectionEpilogue(), and remove the
stale comment saying the epilogue sometimes can't run there.
stopIfNecessarySlow(unsigned) then always returns false, so make it void.
Canonical link: https://commits.webkit.org/324942@main1 parent 0da0fd6 commit d39ac42
2 files changed
Lines changed: 18 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1451 | 1451 | | |
1452 | 1452 | | |
1453 | 1453 | | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
1459 | | - | |
| 1454 | + | |
1460 | 1455 | | |
1461 | 1456 | | |
1462 | 1457 | | |
1463 | | - | |
| 1458 | + | |
1464 | 1459 | | |
1465 | 1460 | | |
1466 | 1461 | | |
1467 | 1462 | | |
1468 | | - | |
1469 | | - | |
1470 | | - | |
1471 | | - | |
1472 | | - | |
1473 | | - | |
1474 | | - | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
1475 | 1466 | | |
1476 | 1467 | | |
1477 | 1468 | | |
1478 | 1469 | | |
1479 | 1470 | | |
1480 | 1471 | | |
1481 | | - | |
| 1472 | + | |
1482 | 1473 | | |
1483 | | - | |
1484 | | - | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
1485 | 1481 | | |
1486 | 1482 | | |
1487 | 1483 | | |
| |||
1510 | 1506 | | |
1511 | 1507 | | |
1512 | 1508 | | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
| 1509 | + | |
| 1510 | + | |
1516 | 1511 | | |
1517 | 1512 | | |
1518 | 1513 | | |
| |||
1564 | 1559 | | |
1565 | 1560 | | |
1566 | 1561 | | |
| 1562 | + | |
1567 | 1563 | | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | 1564 | | |
1572 | | - | |
| 1565 | + | |
1573 | 1566 | | |
1574 | 1567 | | |
1575 | 1568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
| 679 | + | |
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| |||
0 commit comments