Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan Hoyos <juan.hoyos@microsoft.com>2022-07-06 03:42:04 +0300
committerGitHub <noreply@github.com>2022-07-06 03:42:04 +0300
commit0e5fcea02506b4f4526aa5e3aaec13d81a181b2d (patch)
tree105acb9120f962149395cabe353034784b179a41 /src
parentb9b5c8fd3fa531e8c4cbf3443316559f3762ae95 (diff)
Hold stop-go lock when requesting CCW (#71660)
Diffstat (limited to 'src')
-rw-r--r--src/coreclr/debug/di/rsappdomain.cpp3
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;