Repository navigation
Commit eeec6e9
Reset LocalAllocator when returning it to the pool (#1435)
* Reset pooled LocalAllocator when attaching a thread
Between GetPooledAllocator and AddLocal, the allocator is neither pooled nor
registered, so a collection in that window does not reset it. The thread then
allocates from holes that the collection may have handed out again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Reset LocalAllocator when returning it to the pool
Pooled allocators now never hold holes, instead of resetting them when a
thread attaches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 73c4c8b commit eeec6e9
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3154 | 3154 | | |
3155 | 3155 | | |
3156 | 3156 | | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
3157 | 3160 | | |
3158 | 3161 | | |
3159 | 3162 | | |
| |||
0 commit comments