You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b5226a1
Browse filesBrowse the repository at this point in the historyBrowse files
fix(worker): let a heap-limit terminate or nested console call re-enter the inspector lock (#2070)
WorkerWrapper::ConsoleLog holds inspectorMutex_ across WorkerInspectorClient::consoleLog, which allocates and runs user JS while it stringifies the arguments. A near-heap-limit callback raised there calls Terminate(), and a getter that logs re-enters ConsoleLog; both take the mutex again on the same thread and deadlocked the worker. inspectorMutex_ is now a std::recursive_mutex. It still spans the call, since a worker callback run through __runOnMainThread logs from the main thread while the worker thread can delete the client.
Adds a spec for a console call nested in argument formatting.
0 commit comments