Skip to content

Commit

Permalink
Add asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored and github-actions committed Jul 21, 2024
1 parent 1531c60 commit 307cf65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/vm/stubhelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ FCIMPL3(SIZE_T, StubHelpers::ProfilerBeginTransitionCallback, SIZE_T pSecretPara
}

{
_ASSERTE(pThread != nullptr);
GCX_PREEMP_THREAD_EXISTS(pThread);

ProfilerManagedToUnmanagedTransitionMD(pRealMD, COR_PRF_TRANSITION_CALL);
Expand Down Expand Up @@ -582,6 +583,7 @@ FCIMPL2(void, StubHelpers::ProfilerEndTransitionCallback, MethodDesc* pRealMD, T
// and the transition requires us to set up a HMF.
HELPER_METHOD_FRAME_BEGIN_0();
{
_ASSERTE(pThread != nullptr);
GCX_PREEMP_THREAD_EXISTS(pThread);

ProfilerUnmanagedToManagedTransitionMD(pRealMD, COR_PRF_TRANSITION_RETURN);
Expand Down

0 comments on commit 307cf65

Please sign in to comment.