File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/coreclr/nativeaot/Runtime Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,12 @@ PInvokeTransitionFrame* Thread::GetTransitionFrameForStackTrace()
6868 return m_pDeferredTransitionFrame;
6969}
7070
71+ PInvokeTransitionFrame* Thread::GetTransitionFrameForSampling ()
72+ {
73+ CrossThreadUnhijack ();
74+ return GetTransitionFrame ();
75+ }
76+
7177void Thread::WaitForGC (PInvokeTransitionFrame* pTransitionFrame)
7278{
7379 ASSERT (!IsDoNotTriggerGcSet ());
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ class Thread : private RuntimeThreadLocals
320320 bool IsCurrentThreadInCooperativeMode ();
321321
322322 PInvokeTransitionFrame* GetTransitionFrameForStackTrace ();
323- PInvokeTransitionFrame* GetTransitionFrameForSampling () { return GetTransitionFrame (); }
323+ PInvokeTransitionFrame* GetTransitionFrameForSampling ();
324324 void * GetCurrentThreadPInvokeReturnAddress ();
325325
326326 //
You can’t perform that action at this time.
0 commit comments