Skip to content

Commit 31f2cae

Browse files
committed
9.0.7
1 parent 9faf67c commit 31f2cae

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

Unhinged/Engine/Connection.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public unsafe class Connection : IDisposable
2828
/// Header data, no allocations
2929
/// </summary>
3030
public BinaryH1HeaderData BinaryH1HeaderData { get; set; }
31-
public H1HeaderData H1HeaderData { get; set; }
31+
32+
public H1HeaderData H1HeaderData { get; set; } = null!;
3233

3334
/// <param name="maxConnections">Used to size the slabs (typically per-worker slab size).</param>
3435
/// <param name="inSlabSize">Bytes per connection for receive.</param>
@@ -37,9 +38,9 @@ public Connection(int maxConnections, int inSlabSize, int outSlabSize)
3738
{
3839
//AlignedAlloc(size, 64) ensures your memory starts at an address that’s a multiple of 64,
3940
//matching CPU cache-line size, reducing false sharing and improving SIMD/cache performance.
40-
ReceiveBuffer = (byte*)NativeMemory.AlignedAlloc((nuint)(maxConnections * inSlabSize), 64);
41+
ReceiveBuffer = (byte*)NativeMemory.AlignedAlloc((nuint)(inSlabSize), 64);
4142
WriteBuffer = new FixedBufferWriter(
42-
(byte*)NativeMemory.AlignedAlloc((nuint)(maxConnections * outSlabSize), 64),
43+
(byte*)NativeMemory.AlignedAlloc((nuint)(outSlabSize), 64),
4344
outSlabSize);
4445
}
4546

Unhinged/Unhinged.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<Authors>Diogo Martins</Authors>
1111
<RepositoryUrl>https://github.com/MDA2AV/Unhinged</RepositoryUrl>
1212
<RepositoryType>git</RepositoryType>
13-
<AssemblyVersion>9.0.6</AssemblyVersion>
14-
<FileVersion>9.0.6</FileVersion>
15-
<Version>9.0.6</Version>
13+
<AssemblyVersion>9.0.7</AssemblyVersion>
14+
<FileVersion>9.0.7</FileVersion>
15+
<Version>9.0.7</Version>
1616
<PackageReadmeFile>README.md</PackageReadmeFile>
1717
<PackageTags>Unhinged</PackageTags>
1818
<PackageLicenseFile>LICENSE</PackageLicenseFile>

0 commit comments

Comments
 (0)