Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

[DAM analyzer] Update from main - #2373

Merged
sbomer merged 26 commits into
dotnet:feature/damAnalyzerfrom
sbomer:updateFromMain
Nov 16, 2021
Merged

sbomer merged 26 commits into
dotnet:feature/damAnalyzerfrom
sbomer:updateFromMain

Conversation

@sbomer

@sbomer sbomer commented Nov 16, 2021

Copy link
Copy Markdown
Member

This takes recent changes from main into the dataflow branch.

agocke and others added 26 commits October 28, 2021 15:01
Move RequiresAssemblyFiles from Analyzer to the linker RequiresCapability file
Move the new constraint code from RequiresUnreferencedCode to be on the base Requires file
Add Warning Id to messages from the analyzer to distinguish in a test which analyzer missed/found a warning
Add RequiresAssemblyFilesMismatchAttribute Title and Message to fix bug
Add testing in linker for mismatching attributes
Add testing in linker for Delegates in CompilerGenerated file
Add support for static constructor compiler-generated calls
Add additional warnings from DAM and RUC interaction. Not supported by the analyzer yet
Moves away from generating Theory cases for each method in the file and
uses one Fact per test file.
Move analyzer tests to one test per file
* Problem description and existing patterns
* Proposed solutions and some discussion of these

Co-authored-by: Eric Erhardt <[email protected]>
Currently this causes a crash in the linker due to null location scope.
Enabled by `--custom-data DisableMarkingOfCopyAssemblies=true` on the command line. Assumes that ALL assemblies on the input are in "copy" action (it doesn't validate this fact).

It disables marking basically fully - linker will go over all assemblies, and process them in "copy" mode (copy the original file over) and will call all the custom steps and so on, but it will do no marking (or very little, depends on descriptors and such which this doesn't disable).

This is intentionally non-discoverable feature, to be used only by the mono AOT toolchain.
- Add back dataflow tests as individual facts
- Fix test failures
- Lint and prevent code-fixing skipped facts

@agocke agocke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for making this

@sbomer
sbomer merged commit 03ba492 into dotnet:feature/damAnalyzer Nov 16, 2021
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
[DAM analyzer] Update from main

Commit migrated from dotnet/linker@03ba492
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants