-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Max Charlamb
committed
Dec 3, 2024
1 parent
9625d22
commit 3cf533a
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,29 @@ | ||
# Contract GCCover | ||
|
||
This contract encapsulates support for [GCCover](../coreclr/jit/investigate-stress.md) (GC stress testing) in the runtime. | ||
|
||
## APIs of contract | ||
|
||
```csharp | ||
public virtual TargetPointer? GetGCCoverageInfo(NativeCodeVersionHandle codeVersionHandle); | ||
``` | ||
|
||
## Version 1 | ||
|
||
Data descriptors used: | ||
| Data Descriptor Name | Field | Meaning | | ||
| --- | --- | --- | | ||
| NativeCodeVersionNode | GCCoverageInfo | pointer to GC coverage info | | ||
|
||
Contracts used: | ||
| Contract Name | | ||
| --- | | ||
| CodeVersions | | ||
| RuntimeTypeSystem | | ||
|
||
### Getting GCCoverageInfo for a NativeCodeVersion | ||
```csharp | ||
public virtual TargetPointer? GetGCCoverageInfo(NativeCodeVersionHandle codeVersionHandle); | ||
``` | ||
1. If `codeVersionHandle` is synthetic, attempt to read the GCCoverageInfo off of the MethodDesc using the RuntimeTypeSystem contract. | ||
2. If `codeVersionHandle` is explicit, fetch the `NativeCodeVersionNode` and attempt to read the `GCCoverageInfo` pointer. This value will only exist on targets with `HAVE_GCCOVER` enabled. If this value exists return it. Otherwise return null. |
This file contains 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