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

chore: upgrade rusty_v8 to 0.48.1 #15310

Merged
merged 14 commits into from
Aug 15, 2022
Merged

Conversation

bartlomieju
Copy link
Member

No description provided.

@bartlomieju bartlomieju changed the title chore: upgrade rusty_v8 to 0.48.0 chore: upgrade rusty_v8 to 0.48.1 Aug 14, 2022
core/bindings.rs Outdated
) {
// SAFETY: This pointer is definitely valid for the lifetime of this function.
let isolate = unsafe { &mut *isolate };
isolate.set_microtasks_policy(v8::MicrotasksPolicy::Explicit);
Copy link
Contributor

@andreubotella andreubotella Aug 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This callback is called whenever a wasm streaming resource is closed or aborted, which happens from Deno-internal JS code (the handleWasmStreaming function in 26_fetch.js). Therefore, even if we skip the microtask checkpoint when resolving resolver, the microtasks will run when the JS stack is emptied, which is just after this callback runs. As such, setting the microtasks policy doesn't actually do anything – it's setting the callback that seems to make the difference.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I removed that. I will check later why the callback needs to be set.

@bartlomieju bartlomieju merged commit 5a4f84a into denoland:main Aug 15, 2022
@bartlomieju bartlomieju deleted the upgrade_rusty_v8 branch August 15, 2022 12:12
@ry
Copy link
Member

ry commented Aug 15, 2022

Nice work @bartlomieju - I saw an earlier version of this PR and glad to see the callback not setting and unsetting modes.

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.

None yet

4 participants