Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

NoInlining Indirect for NotifyOfCrossThreadDependencySlow#9490

Closed
benaadams wants to merge 1 commit into
dotnet:masterfrom
benaadams:debugger
Closed

NoInlining Indirect for NotifyOfCrossThreadDependencySlow#9490
benaadams wants to merge 1 commit into
dotnet:masterfrom
benaadams:debugger

Conversation

@benaadams
Copy link
Copy Markdown
Member

To avoid the stackcrawlmark interpretation side effect

Debugger.NotifyOfCrossThreadDependency(); can't be inlined because Debugger:NotifyOfCrossThreadDependencySlow is marked as NoInlining; which in mscorlib means it has a StackCrawMark which means its caller also won't be inlined. This bail is then baked into the NGen image.

So currently AsyncTaskMethodBuilder has to call into it, rather than inline the check

To avoid the stackcrawlmark interpretation side effect
@jkotas
Copy link
Copy Markdown
Member

jkotas commented Feb 10, 2017

I am fixing this for good in #9491

@stephentoub
Copy link
Copy Markdown
Member

@jkotas, this can be closed then with your change, right?

@benaadams
Copy link
Copy Markdown
Member Author

I hope so 😄

@jkotas
Copy link
Copy Markdown
Member

jkotas commented Feb 10, 2017

Right

@jkotas jkotas closed this Feb 10, 2017
@karelz karelz modified the milestone: 2.0.0 Aug 28, 2017
@benaadams benaadams deleted the debugger branch January 11, 2019 21:37
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.

5 participants