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

lib: add deserialization callbacks for worker threads #45919

Conversation

debadree25
Copy link
Member

Have attempted to call the runDeserializeCallbacks() in reference to // TODO(joyeecheung): do this for worker threads as well.

cc @joyeecheung

(I have a feeling there might be more work to this if yes any guidance would be appreciated)

Refs: #44869

@@ -107,7 +107,6 @@ function prepareExecution(options) {
// (including preload modules).
initializeClusterIPC();

// TODO(joyeecheung): do this for worker threads as well.
require('internal/v8/startup_snapshot').runDeserializeCallbacks();
Copy link
Member

Choose a reason for hiding this comment

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

The worker thread also runs this function, you can just move this outside the block then it gets run by both.

For now though this isn't really meaningful because there aren't any deserialize callback added for the workers.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see so closing the PR for now
Thanks!

@debadree25 debadree25 closed this Dec 23, 2022
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

2 participants