Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lambdageek
Copy link
Member

If the runtime gets a single step or breakpoint signal while it is already
running native code for a P/Invoke, it will be in GC Safe mode. Switch back to
GC Unsafe to run the debugger engine steps.

Addresses #20490

If the runtime gets a single step or breakpoint signal while it is already
running native code for a P/Invoke, it will be in GC Safe mode.  Switch back to
GC Unsafe to run the debugger engine steps.

Addresses mono#20490
@lambdageek
Copy link
Member Author

@thaystg Do we have debugger tests that call out to native code?

A robust test case would need to run a thread that blocks on a mutex in native, then try to single step that thread, then release the native mutex from a second thread.

@thaystg
Copy link
Contributor

thaystg commented Oct 20, 2020

@thaystg Do we have debugger tests that call out to native code?

A robust test case would need to run a thread that blocks on a mutex in native, then try to single step that thread, then release the native mutex from a second thread.

No, we don't have any test like this, if you want I can add this robust test case that you suggested in my backlog!

@lambdageek lambdageek merged commit 2304610 into mono:master Oct 20, 2020
@lambdageek lambdageek deleted the fix-gh-20490 branch October 20, 2020 14:45
@lambdageek
Copy link
Member Author

@monojenkins backport to 2020-02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants