1- using BitFaster . Caching . Lru ;
1+ using System ;
2+ using BitFaster . Caching . Lru ;
23using ObjectLayoutInspector ;
34using Xunit ;
45using Xunit . Abstractions ;
@@ -16,23 +17,23 @@ public LruItemMemoryLayoutDumps(ITestOutputHelper testOutputHelper)
1617
1718 //Type layout for 'LruItem`2'
1819 //Size: 24 bytes. Paddings: 2 bytes (%8 of empty space)
19- //|================================================ |
20- //| Object Header (8 bytes) |
21- //|------------------------------------------------ |
22- //| Method Table Ptr (8 bytes) |
23- //|================================================ |
24- //| 0-7: Object Key (8 bytes) |
25- //|------------------------------------------------ |
26- //| 8-15: Object <Value>k__BackingField (8 bytes) |
27- //|------------------------------------------------ |
28- //| 16-19: Int32 sequence (4 bytes) |
29- //|------------------------------------------------ |
30- //| 20: Boolean wasAccessed (1 byte) |
31- //|------------------------------------------------ |
32- //| 21: Boolean wasRemoved (1 byte) |
33- //|------------------------------------------------ |
34- //| 22-23: padding (2 bytes) |
35- //|================================================ |
20+ //|=====================================|
21+ //| Object Header (8 bytes) |
22+ //|-------------------------------------|
23+ //| Method Table Ptr (8 bytes) |
24+ //|=====================================|
25+ //| 0-7: Object data (8 bytes) |
26+ //|-------------------------------------|
27+ //| 8-15: Object Key (8 bytes) |
28+ //|-------------------------------------|
29+ //| 16-19: Int32 sequence (4 bytes) |
30+ //|-------------------------------------|
31+ //| 20: Boolean wasAccessed (1 byte) |
32+ //|-------------------------------------|
33+ //| 21: Boolean wasRemoved (1 byte) |
34+ //|-------------------------------------|
35+ //| 22-23: padding (2 bytes) |
36+ //|=====================================|
3637 [ Fact ]
3738 public void DumpLruItem ( )
3839 {
@@ -47,9 +48,9 @@ public void DumpLruItem()
4748 //|---------------------------------------------------|
4849 //| Method Table Ptr (8 bytes) |
4950 //|===================================================|
50- //| 0-7: Object Key (8 bytes) |
51+ //| 0-7: Object data (8 bytes) |
5152 //|---------------------------------------------------|
52- //| 8-15: Object <Value>k__BackingField (8 bytes) |
53+ //| 8-15: Object Key (8 bytes) |
5354 //|---------------------------------------------------|
5455 //| 16-19: Int32 sequence (4 bytes) |
5556 //|---------------------------------------------------|
0 commit comments