Commit 52e71ad
authored
Fix test for mutex starvation as well as small fix in thread_sync.c (ruby#15982)
Don't reset `th->running_time_us` when unlocking from `mutex_free` or
force unlocking during thread destruction. Follow-up to 994257a.1 parent 5d76922 commit 52e71ad
2 files changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1667 | 1667 | | |
1668 | 1668 | | |
1669 | 1669 | | |
1670 | | - | |
| 1670 | + | |
1671 | 1671 | | |
| 1672 | + | |
| 1673 | + | |
1672 | 1674 | | |
1673 | 1675 | | |
1674 | | - | |
| 1676 | + | |
1675 | 1677 | | |
1676 | 1678 | | |
1677 | | - | |
| 1679 | + | |
1678 | 1680 | | |
1679 | 1681 | | |
1680 | | - | |
| 1682 | + | |
1681 | 1683 | | |
1682 | 1684 | | |
1683 | 1685 | | |
1684 | 1686 | | |
1685 | | - | |
| 1687 | + | |
1686 | 1688 | | |
1687 | 1689 | | |
1688 | 1690 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| |||
0 commit comments