Skip to content

Commit

Permalink
Fix concurrency bug in AssemblyHelper (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzq authored Apr 15, 2024
1 parent 8617393 commit 4315921
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if NETFRAMEWORK

using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.IO;
using System.Reflection;
using Xunit.Abstractions;
Expand All @@ -19,7 +19,7 @@ class AssemblyHelper : LongLivedMarshalByRefObject, IDisposable

readonly string directory;
readonly IMessageSink? internalDiagnosticsMessageSink;
readonly Dictionary<string, Assembly?> lookupCache = new();
readonly ConcurrentDictionary<string, Assembly?> lookupCache = new();

/// <summary>
/// Constructs an instance using the given <paramref name="directory"/> for resolution.
Expand Down

0 comments on commit 4315921

Please sign in to comment.