Skip to content

Commit

Permalink
[browser][MT] troubleshooting deadlocks 2 (#104615)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara authored Jul 10, 2024
1 parent a2b7214 commit ed9642e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public static void InstallMainSynchronizationContext(JSMarshalerArgument* argume
}
catch (Exception ex)
{
arg_exc.ToJS(ex);
Environment.FailFast($"InstallMainSynchronizationContext: Unexpected failure (ManagedThreadId {Environment.CurrentManagedThreadId}): " + ex);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ private void Pump()
// otherwise, we could schedule another round
AwaitNewData();
}
catch (Exception e)
catch (Exception ex)
{
Environment.FailFast($"JSSynchronizationContext.Pump failed, ManagedThreadId: {Environment.CurrentManagedThreadId}. {Environment.NewLine} {e.StackTrace}");
Environment.FailFast($"JSSynchronizationContext.Pump: Unexpected failure (ManagedThreadId {Environment.CurrentManagedThreadId}): " + ex);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ await executor.Execute(async () =>
}

[Theory, MemberData(nameof(GetTargetThreadsAndBlockingCalls))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/99951")]
public async Task WaitAssertsOnSyncCallback(Executor executor, NamedCall method)
{
using var cts = CreateTestCaseTimeoutSource();
Expand Down Expand Up @@ -555,6 +556,7 @@ await WebWorkerTestHelper.CallMeBackSync(() =>
}

[Theory, MemberData(nameof(GetTargetThreadsAndBlockingCalls))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/99951")]
public async Task WaitAssertsOnSyncJSExport(Executor executor, NamedCall method)
{
using var cts = CreateTestCaseTimeoutSource();
Expand Down

0 comments on commit ed9642e

Please sign in to comment.