Skip to content
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

Add some sanity checking for SPMI JIT options arguments #94248

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

BruceForstall
Copy link
Member

Check that the argument passed doesn't include a leading DOTNET_.

Update the help to specify the allowed key#value format.

Currently using DOTNET_ causes a warning, but arguably superpmi.py should just pass it through and superpmi.exe should just strip the prefix, so it would "just work".

Check that the argument passed doesn't include a leading `DOTNET_`.

Update the help to specify the allowed `key#value` format.

Currently using `DOTNET_` causes a warning, but arguably superpmi.py
should just pass it through and superpmi.exe should just strip the
prefix, so it would "just work".
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Oct 31, 2023
@ghost ghost assigned BruceForstall Oct 31, 2023
@ghost
Copy link

ghost commented Oct 31, 2023

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

Check that the argument passed doesn't include a leading DOTNET_.

Update the help to specify the allowed key#value format.

Currently using DOTNET_ causes a warning, but arguably superpmi.py should just pass it through and superpmi.exe should just strip the prefix, so it would "just work".

Author: BruceForstall
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@BruceForstall
Copy link
Member Author

@jakobbotsch PTAL
cc @dotnet/jit-contrib

@BruceForstall
Copy link
Member Author

I was confused for a while when something I tried didn't cause any spmi replay errors, and it's because I was passing -jitoption DOTNET_xxx=yyy.

@BruceForstall BruceForstall merged commit fc547ad into dotnet:main Nov 1, 2023
108 of 110 checks passed
@BruceForstall BruceForstall deleted the CheckSpmiJitOptionArg branch November 1, 2023 15:47
@ghost ghost locked as resolved and limited conversation to collaborators Dec 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants