@@ -15,77 +15,77 @@ public NodeMemoryLayoutDumps(ITestOutputHelper testOutputHelper)
15
15
}
16
16
17
17
//Type layout for 'AccessOrderNode`2'
18
- //Size: 48 bytes.Paddings: 2 bytes(%4 of empty space)
19
- //|====================================================|
20
- //| Object Header(8 bytes) |
21
- //|----------------------------------------------------|
22
- //| Method Table Ptr(8 bytes) |
23
- //|====================================================|
24
- //| 0-7: LfuNodeList`2 list (8 bytes) |
25
- //|----------------------------------------------------|
26
- //| 8-15: LfuNode `2 next (8 bytes) |
27
- //|----------------------------------------------------|
28
- //| 16-23: LfuNode`2 prev (8 bytes) |
29
- //|----------------------------------------------------|
30
- //| 24-31: Object Key (8 bytes) |
31
- //|----------------------------------------------------|
32
- //| 32-39: Object<Value> k__BackingField (8 bytes) |
33
- //|----------------------------------------------------|
34
- //| 40-43: Position<Position> k__BackingField (4 bytes) |
35
- //| |===============================| |
36
- //| | 0-3: Int32 value__(4 bytes) | |
37
- //| |===============================| |
38
- //|---------------------------------------------------- |
39
- //| 44: Boolean wasRemoved(1 byte) |
40
- //|----------------------------------------------------|
41
- //| 45 : Boolean wasDeleted (1 byte) |
42
- //|----------------------------------------------------|
43
- //| 46-47: padding(2 bytes) |
44
- //|====================================================|
18
+ //Size: 48 bytes. Paddings: 0 bytes (%0 of empty space)
19
+ //|===================================================== |
20
+ //| Object Header (8 bytes) |
21
+ //|----------------------------------------------------- |
22
+ //| Method Table Ptr (8 bytes) |
23
+ //|===================================================== |
24
+ //| 0-7: Object data (8 bytes) |
25
+ //|----------------------------------------------------- |
26
+ //| 8-15: LfuNodeList `2 list (8 bytes) |
27
+ //|----------------------------------------------------- |
28
+ //| 16-23: LfuNode`2 next (8 bytes) |
29
+ //|----------------------------------------------------- |
30
+ //| 24-31: LfuNode`2 prev (8 bytes) |
31
+ //|----------------------------------------------------- |
32
+ //| 32-39: Object Key (8 bytes) |
33
+ //|----------------------------------------------------- |
34
+ //| 40-43: Int32 sequence (4 bytes) |
35
+ //|----------------------------------------------------- |
36
+ //| 44-45: Position <Position>k__BackingField (2 bytes) |
37
+ //| |================================ | |
38
+ //| | 0-1: Int16 value__ (2 bytes) | |
39
+ //| |================================| |
40
+ //|----------------------------------------------------- |
41
+ //| 46 : Boolean wasRemoved (1 byte) |
42
+ //|----------------------------------------------------- |
43
+ //| 47: Boolean wasDeleted (1 byte) |
44
+ //|===================================================== |
45
45
[ Fact ]
46
46
public void DumpAccessOrderNode ( )
47
47
{
48
48
var layout = TypeLayout . GetLayout < AccessOrderNode < object , object > > ( includePaddings : true ) ;
49
49
testOutputHelper . WriteLine ( layout . ToString ( ) ) ;
50
50
}
51
51
52
- //Type layout for 'TimeOrderNode`2'
53
- //Size: 72 bytes.Paddings: 2 bytes(%2 of empty space)
54
- //|====================================================|
55
- //| Object Header(8 bytes) |
56
- //|----------------------------------------------------|
57
- //| Method Table Ptr(8 bytes) |
58
- //|====================================================|
59
- //| 0-7: LfuNodeList`2 list (8 bytes) |
60
- //|----------------------------------------------------|
61
- //| 8-15: LfuNode `2 next (8 bytes) |
62
- //|----------------------------------------------------|
63
- //| 16-23: LfuNode`2 prev (8 bytes) |
64
- //|----------------------------------------------------|
65
- //| 24-31: Object Key (8 bytes) |
66
- //|----------------------------------------------------|
67
- //| 32-39: Object<Value> k__BackingField (8 bytes) |
68
- //|----------------------------------------------------|
69
- //| 40-43: Position<Position> k__BackingField (4 bytes) |
70
- //| |===============================| |
71
- //| | 0-3: Int32 value__(4 bytes) | |
72
- //| |===============================| |
73
- //|---------------------------------------------------- |
74
- //| 44: Boolean wasRemoved(1 byte) |
75
- //|----------------------------------------------------|
76
- //| 45 : Boolean wasDeleted (1 byte) |
77
- //|----------------------------------------------------|
78
- //| 46-47: padding(2 bytes) |
79
- //|----------------------------------------------------|
80
- //| 48-55: TimeOrderNode`2 prevTime(8 bytes) |
81
- //|----------------------------------------------------|
82
- //| 56-63: TimeOrderNode`2 nextTime(8 bytes) |
83
- //|----------------------------------------------------|
84
- //| 64-71: Duration timeToExpire(8 bytes) |
85
- //| |===========================| |
86
- //| | 0-7: Int64 raw(8 bytes) | |
87
- //| |===========================| |
88
- //|====================================================|
52
+ // Type layout for 'TimeOrderNode`2'
53
+ //Size: 72 bytes. Paddings: 0 bytes (%0 of empty space)
54
+ //|===================================================== |
55
+ //| Object Header (8 bytes) |
56
+ //|----------------------------------------------------- |
57
+ //| Method Table Ptr (8 bytes) |
58
+ //|===================================================== |
59
+ //| 0-7: Object data (8 bytes) |
60
+ //|----------------------------------------------------- |
61
+ //| 8-15: LfuNodeList `2 list (8 bytes) |
62
+ //|----------------------------------------------------- |
63
+ //| 16-23: LfuNode`2 next (8 bytes) |
64
+ //|----------------------------------------------------- |
65
+ //| 24-31: LfuNode`2 prev (8 bytes) |
66
+ //|----------------------------------------------------- |
67
+ //| 32-39: Object Key (8 bytes) |
68
+ //|----------------------------------------------------- |
69
+ //| 40-43: Int32 sequence (4 bytes) |
70
+ //|----------------------------------------------------- |
71
+ //| 44-45: Position <Position>k__BackingField (2 bytes) |
72
+ //| |================================ | |
73
+ //| | 0-1: Int16 value__ (2 bytes) | |
74
+ //| |================================| |
75
+ //|----------------------------------------------------- |
76
+ //| 46 : Boolean wasRemoved (1 byte) |
77
+ //|----------------------------------------------------- |
78
+ //| 47: Boolean wasDeleted (1 byte) |
79
+ //|----------------------------------------------------- |
80
+ //| 48-55: TimeOrderNode`2 prevTime (8 bytes) |
81
+ //|----------------------------------------------------- |
82
+ //| 56-63: TimeOrderNode`2 nextTime (8 bytes) |
83
+ //|----------------------------------------------------- |
84
+ //| 64-71: Duration timeToExpire (8 bytes) |
85
+ //| |============================ | |
86
+ //| | 0-7: Int64 raw (8 bytes) | |
87
+ //| |============================ | |
88
+ //|===================================================== |
89
89
[ Fact ]
90
90
public void DumpTimeOrderNode ( )
91
91
{
0 commit comments