Use proper macros for GetContainingObject()
authorAndrew Au <andrewau@microsoft.com>
Fri, 10 Aug 2018 22:17:01 +0000 (15:17 -0700)
committerAndrew Au <cshung@gmail.com>
Wed, 7 Nov 2018 02:34:47 +0000 (18:34 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/31e996f77aad66847eaeb97e3e163ae0e14c4ae3

src/coreclr/src/debug/di/process.cpp

index 5225205..0cdb69a 100644 (file)
@@ -2534,12 +2534,12 @@ COM_METHOD CordbProcess::GetContainingObject(CORDB_ADDRESS interiorPointer, ICor
 
     HRESULT hr = S_OK;
     // TODO, databp, I don't know what I am doing, NO_LOCK doesn't sound right
-    PUBLIC_API_NO_LOCK_BEGIN(this);
+    PUBLIC_API_ENTRY(this);
+    FAIL_IF_NEUTERED(this);
+    ATT_REQUIRE_STOPPED_MAY_FAIL(this);
 
     *ppContainingObject = nullptr;
 
-    RSLockHolder ch(this->GetStopGoLock());
-
     DebuggerIPCEvent      event;
     this->InitIPCEvent(&event,
         DB_IPCE_GET_CONTAINER,
@@ -2565,7 +2565,6 @@ COM_METHOD CordbProcess::GetContainingObject(CORDB_ADDRESS interiorPointer, ICor
         }
     }
 
-    PUBLIC_API_END(hr);
     return hr;
 }