Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alexrp@xamarin.com>2017-07-22 15:42:06 +0300
committerAlex Rønne Petersen <alexrp@xamarin.com>2017-07-22 15:42:06 +0300
commite013096c65e879e6fc5deb3ccfe4d0e1e23c7258 (patch)
treedc029a3d8abea1a69d7a8b8bc8eb0a360aab3a13 /acceptance-tests
parentf0e6bd2f9637927bc0e93f1f84eea2e7741da690 (diff)
[acceptance-tests] Fix a crash in the profiler stress runner caused by racey modification of a StringBuilder.
Diffstat (limited to 'acceptance-tests')
-rw-r--r--acceptance-tests/profiler-stress/runner.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/acceptance-tests/profiler-stress/runner.cs b/acceptance-tests/profiler-stress/runner.cs
index ace091b4207..69ba9e5ab0a 100644
--- a/acceptance-tests/profiler-stress/runner.cs
+++ b/acceptance-tests/profiler-stress/runner.cs
@@ -152,12 +152,14 @@ namespace Mono.Profiling.Tests.Stress {
proc.OutputDataReceived += (sender, args) => {
if (args.Data != null)
- stdout.AppendLine (args.Data);
+ lock (result)
+ stdout.AppendLine (args.Data);
};
proc.ErrorDataReceived += (sender, args) => {
if (args.Data != null)
- stderr.AppendLine (args.Data);
+ lock (result)
+ stderr.AppendLine (args.Data);
};
result.Stopwatch.Start ();