diff --git a/CHANGELOG.md b/CHANGELOG.md index 42c68c2123..bb86c860b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Fix system frames being marked as "in-app" ([#2408](https://github.com/getsentry/sentry-dotnet/pull/2408)) - NOTE: This important fix corrects a value that is used during issue grouping, so you may receive new alerts for existing issues after deploying this update. - Populate scope's Cookies property ([#2411](https://github.com/getsentry/sentry-dotnet/pull/2411)) +- Fix UWP GateKeeper errors ([#2415](https://github.com/getsentry/sentry-dotnet/pull/2415)) ### Dependencies diff --git a/src/Sentry/Internal/FastSerialization/GrowableArray.cs b/src/Sentry/Internal/FastSerialization/GrowableArray.cs index 1c99541b67..5c606afeef 100644 --- a/src/Sentry/Internal/FastSerialization/GrowableArray.cs +++ b/src/Sentry/Internal/FastSerialization/GrowableArray.cs @@ -10,11 +10,6 @@ internal struct HashableGrowableArray : IReadOnlyList, IEquatable(); - } - public HashableGrowableArray(int capacity) { _items = new GrowableArray(capacity); @@ -95,13 +90,7 @@ public bool Equals(HashableGrowableArray other) internal struct GrowableArray : IReadOnlyList { /// - /// Create an empty growable array. - /// - public GrowableArray() : this(0) { } - - /// - /// Create a growable array with the given initial size it will grow as needed. There is also the - /// default constructor that assumes initialSize of 0 (and does not actually allocate the array. + /// Create a growable array with the given initial size it will grow as needed. /// /// public GrowableArray(int initialSize) diff --git a/src/Sentry/Internal/SparseArray.cs b/src/Sentry/Internal/SparseArray.cs index e4becdfae5..4441ce85f7 100644 --- a/src/Sentry/Internal/SparseArray.cs +++ b/src/Sentry/Internal/SparseArray.cs @@ -9,13 +9,7 @@ internal sealed class SparseScalarArray where T : IEquatable private GrowableArray _items; private T _uninitializedValue; - public SparseScalarArray(T uninitializedValue) - { - _items = new GrowableArray(); - _uninitializedValue = uninitializedValue; - } - - public SparseScalarArray(T uninitializedValue, int capacity) + public SparseScalarArray(T uninitializedValue, int capacity = 0) { _items = new GrowableArray(capacity); _uninitializedValue = uninitializedValue; diff --git a/test/Sentry.Tests/Protocol/ProfilerTests.verify.cs b/test/Sentry.Tests/Protocol/ProfilerTests.verify.cs index fbf28e37ea..e1c31cd147 100644 --- a/test/Sentry.Tests/Protocol/ProfilerTests.verify.cs +++ b/test/Sentry.Tests/Protocol/ProfilerTests.verify.cs @@ -12,7 +12,7 @@ public ProfilerTests(ITestOutputHelper output) private static void AddStack(SampleProfile sut, List frames) { - var stack = new HashableGrowableArray(); + var stack = new HashableGrowableArray(0); foreach (var frame in frames) { stack.Add(frame);