diff options
author | Juan Hoyos <juan.hoyos@microsoft.com> | 2022-07-06 03:42:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-06 03:42:04 +0300 |
commit | 0e5fcea02506b4f4526aa5e3aaec13d81a181b2d (patch) | |
tree | 105acb9120f962149395cabe353034784b179a41 | |
parent | b9b5c8fd3fa531e8c4cbf3443316559f3762ae95 (diff) |
Hold stop-go lock when requesting CCW (#71660)
-rw-r--r-- | src/coreclr/debug/di/rsappdomain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coreclr/debug/di/rsappdomain.cpp b/src/coreclr/debug/di/rsappdomain.cpp index 7c72d6d306a..a31e0d3c38f 100644 --- a/src/coreclr/debug/di/rsappdomain.cpp +++ b/src/coreclr/debug/di/rsappdomain.cpp @@ -1082,8 +1082,9 @@ HRESULT CordbAppDomain::GetObjectForCCW(CORDB_ADDRESS ccwPointer, ICorDebugValue PUBLIC_API_ENTRY(this); FAIL_IF_NEUTERED(this); - VALIDATE_POINTER_TO_OBJECT(ppManagedObject, ICorDebugValue **); + ATT_REQUIRE_STOPPED_MAY_FAIL(GetProcess()); + HRESULT hr = S_OK; *ppManagedObject = NULL; |