GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — fix: avoid OOM in CachedInputFileSystem when duration is Infinity by alexander-akait · Pull Request #527 · webpack/enhanced-resolve Conversation
Member
When Guard both the level allocation and the async decay timer so that passing Closes #368
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsWhen `duration` is `Infinity`, the constructor's level-allocation loop (`for (let i = 5000; i < duration; i += 500)`) never terminates, which crashes the process with an out-of-memory error before any file is even resolved. Additionally, scheduling a decay `setTimeout` with an infinite timeout would be meaningless (and clamped by Node). Guard both the level allocation and the async decay timer so that passing `Infinity` yields a never-expiring cache, as users would expect. Closes #368
|
There was an error while loading. Please reload this page.
🦋 Changeset detectedLatest commit: c3c953c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #527 +/- ## ========================================== - Coverage 96.75% 96.72% -0.04% ========================================== Files 50 50 Lines 2589 2593 +4 Branches 788 790 +2 ========================================== + Hits 2505 2508 +3 - Misses 69 70 +1 Partials 15 15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Merging this PR will not alter performance
Comparing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
CachedInputFileSystem OOM when duration is infinity
There was an error while loading. Please reload this page.