Skip to content

Commit aa8017a

Browse files
committed
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
1 parent 689660a commit aa8017a

File tree

1 file changed

+332
-88
lines changed

1 file changed

+332
-88
lines changed

0 commit comments

Comments
 (0)