Skip to content

[mono][jit] Allow inlining of methods which make calls to ThrowHelper… - #55061

Merged
vargaz merged 1 commit into
dotnet:mainfrom
vargaz:inline-throw
Jul 2, 2021
Merged

vargaz merged 1 commit into
dotnet:mainfrom
vargaz:inline-throw

Conversation

@vargaz

@vargaz vargaz commented Jul 2, 2021

Copy link
Copy Markdown
Contributor

… methods.

Calls to ThrowHelper are very common in perf sensitive code like indexers/iterators.

… methods.

Calls to ThrowHelper are very common in perf sensitive code like indexers/iterators.
@filipnavara

Copy link
Copy Markdown
Member

I'm pretty sure the point of the if was not to inline the ThrowHelper itself since that's supposed to be a cold path. Was the condition at wrong place?

@BrzVlad

BrzVlad commented Jul 2, 2021

Copy link
Copy Markdown
Member

@filipnavara This is not about the inlining of the throw helper, but rather about inlining of some methods that call the throw helper. By default we don't inline methods that call other methods.

@filipnavara

Copy link
Copy Markdown
Member

Ah, my bad, I read the diff the other way around... 🤦‍♂️

@vargaz
vargaz merged commit bbb7d90 into dotnet:main Jul 2, 2021
@vargaz
vargaz deleted the inline-throw branch July 2, 2021 15:27
@ghost ghost locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants