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

Fix SPMI issue in getHelperFtn #90888

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Fix SPMI issue in getHelperFtn #90888

merged 1 commit into from
Aug 22, 2023

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Aug 21, 2023

Fixes #90711

tldr:
getHelperFtn may now (since #90412) return different result over time for the same helper id (e.g. if the underlying helper is being jitted to its final tier in background). It doesn't cause any issues for JIT currently as that function is called once per method in lower. So theoretically it's possible to see something like this in codegen:

call [CORINFO_HELPER_ISINSTANCEOFANY]  ;; indirect call
call CORINFO_HELPER_ISINSTANCEOFANY    ;; direct call

Other EE APIs with potentially similar behavior are listed in #90886

@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 Aug 21, 2023
@ghost ghost assigned EgorBo Aug 21, 2023
@ghost
Copy link

ghost commented Aug 21, 2023

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

Issue Details

Fixes #90711

tldr:
getHelperFtn may now (since #90412) return different result over time for the same helper id (e.g. if the underlying helper is being jitted to its final tier in background). It doesn't cause any issues for JIT currently as that function is called once per method in lower. So theoretically it's possible to see something like this in codegen:

call [CORINFO_HELPER_ISINSTANCEOFANY]  ;; indirect call
call CORINFO_HELPER_ISINSTANCEOFANY    ;; direct call

Other API calls with potentially similar behavior are listed in #90886

Author: EgorBo
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@EgorBo
Copy link
Member Author

EgorBo commented Aug 21, 2023

/azp run runtime-coreclr jitstress

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@EgorBo EgorBo merged commit 8915575 into dotnet:main Aug 22, 2023
139 checks passed
@EgorBo EgorBo deleted the fix-spmi-collect branch August 22, 2023 08:58
@ghost ghost locked as resolved and limited conversation to collaborators Sep 21, 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.

Test failure JIT\\superpmi\\superpmicollect\\superpmicollect.cmd
2 participants