Commit 3b8b75f
committed
Fixes allocator heap corruption bug and assertion failure.
- page_collect shouldn't assume that the page has an empty free list,
but neither should it do O(n) work when it does not.
- After page_free, alloc_generic should not refer to the page anymore.
Signed-off-by: Nathan Ringo <me@remexre.com>1 parent e3211a5 commit 3b8b75f
2 files changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 114 | | |
118 | | - | |
| 115 | + | |
119 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
274 | 278 | | |
275 | | - | |
276 | 279 | | |
277 | 280 | | |
278 | 281 | | |
| |||
0 commit comments