You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* COPYRIGHT: See COPYING in the top level directory
3
+
* PROJECT: MemoryManager.Core
4
+
* FILE: SlabBin.cs
5
+
* PURPOSE: Contains the SlabBin struct, which manages fixed-size buckets for the SlabLane. It tracks free slots and their offsets for efficient allocation and deallocation.
6
+
* PROGRAMMER: Peter Geinitz (Wayfarer)
7
+
*/
8
+
9
+
usingSystem.Runtime.CompilerServices;
10
+
11
+
namespaceMemoryManager.Core
12
+
{
13
+
/// <summary>
14
+
/// The SlabBin struct manages fixed-size buckets for the SlabLane. It tracks free slots and their offsets for efficient allocation and deallocation.
15
+
/// </summary>
16
+
publicstructSlabBin
17
+
{
18
+
/// <summary>
19
+
/// The size class
20
+
/// </summary>
21
+
publicreadonlyintSizeClass;
22
+
23
+
/// <summary>
24
+
/// The physical slot size
25
+
/// </summary>
26
+
publicreadonlyintPhysicalSlotSize;
27
+
28
+
/// <summary>
29
+
/// The free offsets
30
+
/// </summary>
31
+
privatereadonlyint[]_freeOffsets;
32
+
33
+
/// <summary>
34
+
/// The top
35
+
/// </summary>
36
+
privateint_top;
37
+
38
+
/// <summary>
39
+
/// Initializes a new instance of the <see cref="SlabBin"/> struct.
0 commit comments