Skip to content

fix: plugin compilation hooks leak#10137

Merged
quininer merged 1 commit intoweb-infra-dev:mainfrom
quininer:fix/plugin-leak
Apr 23, 2025
Merged

fix: plugin compilation hooks leak#10137
quininer merged 1 commit intoweb-infra-dev:mainfrom
quininer:fix/plugin-leak

Conversation

@quininer
Copy link
Contributor

Summary

This PR removes the hooks in plugin's COMPILATION_HOOKS_MAP when clear_cache to avoid leak memory when rebuild.

Strictly speaking this is not semantically correct, since this is not a cache, and it is also hard to track hooks usage. There should be a better management mechanism in future. but for now, this is a simple fix.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@quininer quininer requested a review from LingyuCoder as a code owner April 23, 2025 06:21
@github-actions github-actions bot added the release: bug fix release: bug related release(mr only) label Apr 23, 2025
@netlify
Copy link

netlify bot commented Apr 23, 2025

Deploy Preview for rspack canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 4cb74d2
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/680890972d3e7f000870be1b

@codspeed-hq
Copy link

codspeed-hq bot commented Apr 23, 2025

CodSpeed Performance Report

Merging #10137 will not alter performance

Comparing quininer:fix/plugin-leak (4cb74d2) with main (242967b)

🎉 Hooray! codspeed-node just leveled up to 4.0.1!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

Summary

✅ 11 untouched benchmarks

@quininer quininer merged commit 6362a79 into web-infra-dev:main Apr 23, 2025
30 checks passed
@quininer quininer deleted the fix/plugin-leak branch April 23, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants