-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
worker_threads: fix spawning from preload scripts #37481
Conversation
@addaleax ... what would you think of a command line argument that imposed a process-level upper limit on the maximum number of concurrent Workers? |
Fix spawning nested worker threads from preload scripts and warn about doing so. Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: nodejs#36531
a2243e1
to
671bbc7
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I guess that would be fine – there’s precedent for that kind of thing in the form of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Landed in 360e8c8 |
Fix spawning nested worker threads from preload scripts and warn about doing so. Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: nodejs#36531 PR-URL: nodejs#37481 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Fix spawning nested worker threads from preload scripts and
warn about doing so.
Signed-off-by: James M Snell jasnell@gmail.com
Fixes: #36531