GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: avoid OOM in CachedInputFileSystem when duration is Infinity by alexander-akait · Pull Request #527 · webpack/enhanced-resolve

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Apr 16, 2026

Copy link
Copy Markdown
Member

When 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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@claude
fix: avoid OOM in CachedInputFileSystem when duration is Infinity
be7ce58
When `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
@changeset-bot

changeset-bot Bot commented Apr 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c3c953c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
enhanced-resolve Patch

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Apr 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

CLA Not Signed

  • ✅ login: alexander-akait / name: Alexander Akait (c3c953c)
  • ❌ - login: @claude / name: Claude . The commit (be7ce58) is not authorized under a signed CLA. Please click here to be authorized. For further assistance with EasyCLA, please submit a support request ticket.

claude[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Apr 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.72%. Comparing base (b5259a0) to head (c3c953c).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
lib/CachedInputFileSystem.js 80.00% 1 Missing ⚠️
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              
Flag Coverage Δ
integration 96.72% <80.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codspeed

codspeed Bot commented Apr 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 43 untouched benchmarks


Comparing claude/fix-issue-368-aW3az (c3c953c) with main (b5259a0)

Open in CodSpeed
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait
Create serious-zebras-cross.md
c3c953c
@alexander-akait
alexander-akait merged commit db3c6b8 into main Apr 17, 2026
31 of 33 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait
alexander-akait deleted the claude/fix-issue-368-aW3az branch April 17, 2026 11:37
@github-actions github-actions Bot mentioned this pull request Apr 17, 2026
chore(release): new release #496
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

CachedInputFileSystem OOM when duration is infinity

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@alexander-akait @claude
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.