Skip to content

Commit

Permalink
Set *ppIndirection to NULL in MethodContext::repGetAddrOfCaptureThrea…
Browse files Browse the repository at this point in the history
…dGlobal() if there is corresponding GetAddrOfCaptureThreadGlobal LWM (dotnet#48260)
  • Loading branch information
echesakov authored Feb 16, 2021
1 parent 4823e7c commit a39ce71
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -4184,7 +4184,9 @@ LONG* MethodContext::repGetAddrOfCaptureThreadGlobal(void** ppIndirection)
if ((GetAddrOfCaptureThreadGlobal == nullptr) || (GetAddrOfCaptureThreadGlobal->GetIndex((DWORD)0) == -1))
{
#ifdef sparseMC
LogDebug("Sparse - repGetAddrOfCaptureThreadGlobal returning 0xCAFE0001");
LogDebug("Sparse - repGetAddrOfCaptureThreadGlobal returning nullptr and 0xCAFE0001");
if (ppIndirection != nullptr)
*ppIndirection = nullptr;
return (LONG*)(size_t)0xCAFE0001;
#else
LogException(EXCEPTIONCODE_MC, "Didn't find anything for GetAddrOfCaptureThreadGlobal", "");

0 comments on commit a39ce71

Please sign in to comment.