From: John Salem Date: Wed, 20 Feb 2019 20:22:24 +0000 (-0800) Subject: Fix GC Hole by using SetAt on the PTRARRAY for the Assembly objects X-Git-Tag: submit/tizen/20210909.063632~11030^2~2380^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a36092f3f5b1bedce49b19b20b83e05f2bf19198;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix GC Hole by using SetAt on the PTRARRAY for the Assembly objects Commit migrated from https://github.com/dotnet/coreclr/commit/a63e6487936b54dd707636d8b8210dfd956f37d7 --- diff --git a/src/coreclr/src/vm/debugdebugger.cpp b/src/coreclr/src/vm/debugdebugger.cpp index a839340..a5cc9bc 100644 --- a/src/coreclr/src/vm/debugdebugger.cpp +++ b/src/coreclr/src/vm/debugdebugger.cpp @@ -519,8 +519,8 @@ FCIMPL4(void, DebugStackTrace::GetStackFramesInternal, pILI4[iNumValidFrames] = data.pElements[i].dwILOffset; // Assembly - OBJECTREF *pAssemblyArray = pStackFrameHelper->rgAssembly->GetDataPtr(); - pAssemblyArray[iNumValidFrames] = pFunc->GetAssembly()->GetDomainAssembly()->GetExposedAssemblyObject(); + OBJECTREF pAssembly = pFunc->GetAssembly()->GetDomainAssembly()->GetExposedAssemblyObject(); + pStackFrameHelper->rgAssembly->SetAt(iNumValidFrames, pAssembly); if (data.fDoWeHaveAnyFramesFromForeignStackTrace) {