Skip to content

Commit

Permalink
Fix ISOSDACInterface::GetThreadData reading the GC alloc context. (#1…
Browse files Browse the repository at this point in the history
…04762)

* Fix ISOSDACInterface::GetThreadData reading the GC alloc context.

The RuntimeThreadLocals struct that the gc_alloc_context is in wasn't being added
to dump in Thread::EnumMemoryRegions.
  • Loading branch information
mikem8361 authored Jul 12, 2024
1 parent cae3aec commit 0d5a9e7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/coreclr/vm/threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8067,6 +8067,15 @@ Thread::EnumMemoryRegions(CLRDataEnumMemoryFlags flags)
}
}

//
// Add the thread local variables like alloc_context, etc.
//

if (m_pRuntimeThreadLocals.IsValid())
{
m_pRuntimeThreadLocals.EnumMem();
}

//
// Try and do a stack trace and save information
// for each part of the stack. This is very vulnerable
Expand Down

0 comments on commit 0d5a9e7

Please sign in to comment.