-
Notifications
You must be signed in to change notification settings - Fork 5k
Fix Metadata aggregator: removing cumulative sum for GUIDs heap offset #115268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
55e1080
03e6cb9
6ab179c
1ccfa80
f842df6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,8 @@ | |
public sealed class MetadataAggregator | ||
{ | ||
// For each heap handle and each delta contains aggregate heap lengths. | ||
// heapSizes[heap kind][reader index] == Sum { 0..index | reader[i].XxxHeap.Block.Length } | ||
// For all other Types: heapSizes[heap kind][reader index] == Sum { 0..index | reader[i].XxxHeap.Block.Length } | ||
// For GUIDs: heapSizes[heap kind][reader index] == reader[i].XxxHeap.Block.Length | ||
Check failure on line 14 in src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Ecma335/MetadataAggregator.cs
|
||
private readonly ImmutableArray<ImmutableArray<int>> _heapSizes; | ||
|
||
private readonly ImmutableArray<ImmutableArray<RowCounts>> _rowCounts; | ||
|
@@ -153,7 +154,7 @@ | |
userStringSizes[r + 1] = userStringSizes[r] + deltaReaders[r].GetHeapSize(HeapIndex.UserString); | ||
stringSizes[r + 1] = stringSizes[r] + deltaReaders[r].GetHeapSize(HeapIndex.String); | ||
blobSizes[r + 1] = blobSizes[r] + deltaReaders[r].GetHeapSize(HeapIndex.Blob); | ||
guidSizes[r + 1] = guidSizes[r] + deltaReaders[r].GetHeapSize(HeapIndex.Guid) / guidSize; | ||
guidSizes[r + 1] = deltaReaders[r].GetHeapSize(HeapIndex.Guid) / guidSize; | ||
} | ||
|
||
return ImmutableArray.Create( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment on line https://github.com/dotnet/runtime/pull/115268/files#diff-463bcba9d713f9c49493793a38b92567be4f344112abe18ebd08a34d3a5a1659R13 should be updated