-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Implement DacDbi cDAC APIs CreateRefWalk, DeleteRefWalk, WalkRefs #129345
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
891c687
Implement DacDbi cDAC APIs CreateRefWalk, DeleteRefWalk, WalkRefs
Copilot 71d7a3b
code review
rcj1 89e8153
use marshal count
rcj1 d1ea1e2
Potential fix for pull request finding
rcj1 34217a0
Merge remote-tracking branch 'rachel' into copilot/implement-cdac-apis
rcj1 cd9fadc
code review
rcj1 d708577
code review
rcj1 86973a6
Merge branch 'main' into copilot/implement-cdac-apis
rcj1 a9308ab
Update TestTarget.cs
rcj1 925d7b5
Apply suggestions from code review
rcj1 729ff40
Potential fix for pull request finding
rcj1 eb7df08
code revierw
rcj1 1e87302
move linear read cache and create scope
rcj1 cd21fa2
fix buidl break
rcj1 5e1f797
cpde review
rcj1 2d5d7bf
code review
rcj1 35f6f85
code review
rcj1 bc8ad5b
revert to separate linearreadcache
rcj1 5263cf4
Update GcScanContext.cs
rcj1 086b19a
Update HeapWalk.cs
rcj1 0b1ea62
add comments
rcj1 ec07fc0
ccr
rcj1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...crosoft.Diagnostics.DataContractReader.Abstractions/Contracts/Extensions/IGCExtensions.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
|
|
||
| namespace Microsoft.Diagnostics.DataContractReader.Contracts.Extensions; | ||
|
|
||
| public static class IGCExtensions | ||
| { | ||
| public static IEnumerable<(GCHeapSegmentInfo Segment, GCHeapData Heap)> EnumerateAllSegments(this IGC gc) | ||
| { | ||
| string[] gcIdentifiers = gc.GetGCIdentifiers(); | ||
| bool isWorkstation = gcIdentifiers.Contains(GCIdentifiers.Workstation); | ||
|
rcj1 marked this conversation as resolved.
|
||
| foreach (GCHeapData heap in EnumerateHeaps(gc, isWorkstation)) | ||
|
rcj1 marked this conversation as resolved.
|
||
| { | ||
| foreach (GCHeapSegmentInfo seg in gc.EnumerateHeapSegments(heap)) | ||
| { | ||
| yield return (seg, heap); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| private static IEnumerable<GCHeapData> EnumerateHeaps(IGC gc, bool isWorkstation) | ||
| { | ||
| if (isWorkstation) | ||
| { | ||
| yield return gc.GetHeapData(); | ||
| } | ||
| else | ||
| { | ||
| foreach (TargetPointer heapAddress in gc.GetGCHeaps()) | ||
| yield return gc.GetHeapData(heapAddress); | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.