Skip to content

Commit

Permalink
Remove AOT deoptimization (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalStrehovsky authored Nov 26, 2023
1 parent be21705 commit 6703efc
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Pipelines.Sockets.Unofficial/Arenas/PerTypeHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ public static Allocator<T> PreferUnmanaged()

static Allocator<T> Calculate()
{
if (IsBlittable
#if NETCOREAPP3_0_OR_GREATER
&& RuntimeFeature.IsDynamicCodeSupported
#endif
)
if (IsBlittable)
{
return UnmanagedAllocator<T>.Shared;
}
Expand All @@ -118,11 +114,7 @@ public static Allocator<T> PreferPinned()

static Allocator<T> Calculate()
{
if (IsBlittable
#if NETCOREAPP3_0_OR_GREATER
&& RuntimeFeature.IsDynamicCodeSupported
#endif
)
if (IsBlittable)
{
return PinnedArrayPoolAllocator<T>.Shared;
}
Expand Down

0 comments on commit 6703efc

Please sign in to comment.