Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow WTF timers to participate in the event loop #15557

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

190n
Copy link
Contributor

@190n 190n commented Dec 3, 2024

What does this PR do?

WebKit has WTF::RunLoop and WTF::RunLoop::Timer. The latter is created in order to run GC at certain intervals. Since Bun's event loop is really in charge of timers, rather than the RunLoop, the GC timers would previously never run. This PR enables Bun to include those timers in the event loop and fire them at the right times.

This also includes the change from #14885 to release heap access while waiting for events.

TODO:

Requires oven-sh/WebKit#71 and #15328

How did you verify your code works?

TODO

@robobun
Copy link

robobun commented Dec 3, 2024

Updated 11:14 AM PT - Dec 22nd, 2024

@Jarred-Sumner, your commit eea51d9 has some failures in #8425


🧪   try this PR locally:

bunx bun-pr 15557

@190n 190n mentioned this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants