Commit 7d95dd4
fix(scheduler): drop the global TASKS entry on exit
The global TASKS BTreeMap got a new TaskHandle on every spawn
but was never cleaned up. This made join()'s
TASKS.contains_key(&id) always return true for any tid that ever
existed, and slowly leaked TaskHandles. exit() already removes the
WAITING_TASKS queue — remove the TASKS entry symmetrically.1 parent a1f61b1 commit 7d95dd4
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
0 commit comments