Skip to content

Commit 161c9d5

Browse files
authored
Revert changes that are unrelated to the memory leak (#5822)
1 parent 9c29c84 commit 161c9d5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/core/Akka/Actor/CoordinatedShutdown.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ private ClusterJoinUnsuccessfulReason() { }
251251
/// <summary>
252252
/// The <see cref="ActorSystem"/>
253253
/// </summary>
254-
public ExtendedActorSystem System { get; private set; }
254+
public ExtendedActorSystem System { get; }
255255

256256
/// <summary>
257257
/// The set of named <see cref="Phase"/>s that will be executed during coordinated shutdown.
@@ -261,7 +261,7 @@ private ClusterJoinUnsuccessfulReason() { }
261261
/// <summary>
262262
/// INTERNAL API
263263
/// </summary>
264-
internal ILoggingAdapter Log { get; private set; }
264+
internal ILoggingAdapter Log { get; }
265265

266266
private readonly HashSet<string> _knownPhases;
267267

@@ -660,9 +660,6 @@ internal static void InitPhaseActorSystemTerminate(ActorSystem system, Config co
660660
Environment.Exit(0);
661661
}
662662

663-
coord.System = null;
664-
coord.Log = null;
665-
coord._tasks.Clear(); // Clear the dictionary, just in case it is retained in memory
666663
return Done.Instance;
667664
});
668665
}
@@ -697,7 +694,6 @@ internal static void InitClrHook(ActorSystem system, Config conf, CoordinatedShu
697694
system.WhenTerminated.ContinueWith(tr =>
698695
{
699696
AppDomain.CurrentDomain.ProcessExit -= exitTask;
700-
coord._clrShutdownTasks.Clear(); // Clear the tasks, just in case it is retained in memory
701697
});
702698

703699
coord.AddClrShutdownHook(() =>

0 commit comments

Comments
 (0)