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
Copy file name to clipboardExpand all lines: src/mono/browser/runtime/pthreads/ui-thread.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -274,7 +274,7 @@ function getNewWorker (modulePThread: PThreadLibrary): PThreadWorker {
274
274
if(!WasmEnableThreads)returnnullasany;
275
275
276
276
if(modulePThread.unusedWorkers.length==0){
277
-
mono_log_debug(()=>`Failed to find unused WebWorker, this may deadlock. Please increase the pthreadPoolInitialSize. Running threads ${modulePThread.runningWorkers.length}. Loading workers: ${modulePThread.unusedWorkers.length}`);
277
+
mono_log_debug(()=>`Failed to find unused WebWorker, this may deadlock. Please increase the pthreadPoolInitialSize. Running threads ${Object.keys(modulePThread.pthreads).length}. Loading workers: ${modulePThread.unusedWorkers.length}`);
278
278
constworker=allocateUnusedWorker();
279
279
modulePThread.loadWasmModuleToWorker(worker);
280
280
returnworker;
@@ -293,7 +293,7 @@ function getNewWorker (modulePThread: PThreadLibrary): PThreadWorker {
293
293
returnworker;
294
294
}
295
295
}
296
-
mono_log_debug(()=>`Failed to find loaded WebWorker, this may deadlock. Please increase the pthreadPoolInitialSize. Running threads ${modulePThread.runningWorkers.length}. Loading workers: ${modulePThread.unusedWorkers.length}`);
296
+
mono_log_debug(()=>`Failed to find loaded WebWorker, this may deadlock. Please increase the pthreadPoolInitialSize. Running threads ${Object.keys(modulePThread.pthreads).length}. Loading workers: ${modulePThread.unusedWorkers.length}`);
297
297
returnmodulePThread.unusedWorkers.pop()!;
298
298
}
299
299
@@ -333,7 +333,7 @@ export function getUnusedWorkerPool (): PThreadWorker[] {
mono_assert(runtimeHelpers.featureWasmFinalEh,"This browser/engine doesn't support WASM exception handling. Please use a modern version. See also https://learn.microsoft.com/aspnet/core/blazor/supported-platforms");
87
87
}
88
-
module.mainScriptUrlOrBlob=loaderHelpers.scriptUrl;// this is needed by worker threads
89
88
90
89
// these all could be overridden on DotnetModuleConfig, we are chaining them to async below, as opposed to emscripten
91
90
// when the user sets config, we are running our default startup sequence.
0 commit comments