Skip to content

fix: ThreadsafeOneShotRef prevents event loop destroy#10082

Merged
SyMind merged 1 commit intomainfrom
fix-ThreadsafeOneShotRef
Apr 18, 2025
Merged

fix: ThreadsafeOneShotRef prevents event loop destroy#10082
SyMind merged 1 commit intomainfrom
fix-ThreadsafeOneShotRef

Conversation

@SyMind
Copy link
Copy Markdown
Member

@SyMind SyMind commented Apr 18, 2025

Summary

ThreadsafeOneShotRef use ThreadsafeFunction to delete ref when struct drop not in node thread.

We should unref ThreadsafeFunction before create ThreadsafeFunction, avoid it prevents event loop destroy.

Checklist

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

@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Apr 18, 2025
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 18, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit b3516b8
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/68022903ef0a79000885cfc3
😎 Deploy Preview https://deploy-preview-10082--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@SyMind SyMind changed the title fix: ThreadsafeOneShotRef prevent event loop destroy fix: ThreadsafeOneShotRef prevents event loop destroy Apr 18, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 18, 2025

📝 Ecosystem CI detail: Open

suite result
modernjs ❌ failure
rspress ✅ success
lynx-stack ❌ failure
plugin ✅ success
examples ✅ success
nuxt ✅ success
rsdoctor ❌ failure
rslib ✅ success
devserver ❌ failure
rsbuild ✅ success

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 18, 2025

CodSpeed Performance Report

Merging #10082 will not alter performance

Comparing fix-ThreadsafeOneShotRef (b3516b8) with main (b522bfd)

Summary

✅ 11 untouched benchmarks

@SyMind SyMind merged commit 2008bf8 into main Apr 18, 2025
52 checks passed
@SyMind SyMind deleted the fix-ThreadsafeOneShotRef branch April 18, 2025 11:03
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) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants