Skip to content

Switch to PREEMPT mode when calling CoTaskMem* APIs - #71031

Merged
AaronRobinsonMSFT merged 3 commits into
dotnet:mainfrom
AaronRobinsonMSFT:runtime_70973
Jun 21, 2022
Merged

Switch to PREEMPT mode when calling CoTaskMem* APIs#71031
AaronRobinsonMSFT merged 3 commits into
dotnet:mainfrom
AaronRobinsonMSFT:runtime_70973

Conversation

@AaronRobinsonMSFT

Copy link
Copy Markdown
Member

Fixes#70973

This enables WinForms to pass.

Still need to consider other COM entry points (for example, ComPreStubWorker).

Comment threadsrc/coreclr/vm/comtoclrcall.cpp Outdated
@jkotas

Copy link
Copy Markdown
Member

Still need to consider other COM entry points (for example, ComPreStubWorker).

I think ComPreStubWorker is the only one that needs it. There may be other entrypoints for various corner cases, but I do not think we need to boil the ocean to add this check everywhere.

Add check in ComPreStubWorker().
@AaronRobinsonMSFT
AaronRobinsonMSFT marked this pull request as ready for review June 21, 2022 03:15
Comment threadsrc/coreclr/vm/comtoclrcall.cpp Outdated
Comment threadsrc/coreclr/vm/comtoclrcall.cpp Outdated
Comment threadsrc/coreclr/vm/comtoclrcall.cpp Outdated

@jkotasjkotas 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.

Thank you!

@AaronRobinsonMSFT

Copy link
Copy Markdown
MemberAuthor

Failure is #70969.

@AaronRobinsonMSFT
AaronRobinsonMSFT merged commit 786ec9d into dotnet:mainJun 21, 2022
@AaronRobinsonMSFT
AaronRobinsonMSFT deleted the runtime_70973 branch June 21, 2022 15:32
@ghostghost locked as resolved and limited conversation to collaborators Jul 21, 2022
Sign up for freeto 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.

cli xUnit tests fail since https://github.com/dotnet/runtime build 20220616.9

2 participants

@AaronRobinsonMSFT@jkotas