This repository was archived by the owner on May 20, 2025. It is now read-only.
Commit ada086b
committed
mimalloc: consider heap tag when checking available abandoned pages
The logic in mi_segment_check_free didn't match the logic in
mi_segment_reclaim/right_page_reclaimed, which led to a segment
being reclaimed that did not have available pages for the
appropriate heap. This triggered an assertion error in
mi_segment_page_alloc_in.
Bug was probably introduced in 45e0ec5
Fixes #681 parent 70cc038 commit ada086b
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
1044 | | - | |
| 1044 | + | |
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
| |||
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
1062 | | - | |
| 1062 | + | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
| |||
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | | - | |
| 1173 | + | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
| |||
0 commit comments