Skip to content

Commit cbf67ec

Browse files
DaMandal0rianclaude
andcommitted
fix: prevent memory leak in AllocationPriorityQueue with bounded map
- Add MAX_PROCESSING_TIMES_SIZE limit (10,000 entries) to processingTimes map - Implement periodic cleanup of stale entries (5-minute interval) - Add proper disposal with cleanup interval clearing - Extract magic numbers into PRIORITY_QUEUE_DEFAULTS and PRIORITY_WEIGHTS - Add ensureNotDisposed guard for all public methods - Add Symbol.asyncDispose support for proper resource cleanup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 9d81da2 commit cbf67ec

File tree

1 file changed

+332
-88
lines changed

1 file changed

+332
-88
lines changed

0 commit comments

Comments
 (0)