Commit aa8017a
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 cleanup1 parent 689660a commit aa8017a
File tree
1 file changed
+332
-88
lines changed- packages/indexer-common/src/performance
1 file changed
+332
-88
lines changed
0 commit comments