Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coreclr/nativeaot/Runtime/eventpipe/ep-rt-aot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ ep_rt_thread_handle_t ep_rt_aot_setup_thread (void)

ep_rt_thread_id_t ep_rt_aot_thread_get_id (ep_rt_thread_handle_t thread_handle)
{
return (ep_rt_thread_id_t)thread_handle->GetPalThreadIdForLogging();
return (ep_rt_thread_id_t)thread_handle->GetOSThreadId();
}

#ifdef EP_CHECKED_BUILD
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/nativeaot/Runtime/gcenv.ee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ void GCToEEInterface::LogErrorToHost(const char *message)

uint64_t GCToEEInterface::GetThreadOSThreadId(Thread* thread)
{
return (uint64_t)thread->GetPalThreadIdForLogging();
return (uint64_t)thread->GetOSThreadId();
}

bool GCToEEInterface::GetStringConfigValue(const char* privateKey, const char* publicKey, const char** value)
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/nativeaot/Runtime/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ bool Thread::IsGCSpecial()
return IsStateSet(TSF_IsGcSpecialThread);
}

uint64_t Thread::GetPalThreadIdForLogging()
uint64_t Thread::GetOSThreadId()
{
return m_threadId;
}
Expand Down Expand Up @@ -817,7 +817,7 @@ void Thread::HijackReturnAddressWorker(StackFrameIterator* frameIterator, Hijack
*ppvRetAddrLocation = (void*)pfnHijackFunction;

STRESS_LOG2(LF_STACKWALK, LL_INFO10000, "InternalHijack: TgtThread = %llx, IP = %p\n",
GetPalThreadIdForLogging(), frameIterator->GetRegisterSet()->GetIP());
GetOSThreadId(), frameIterator->GetRegisterSet()->GetIP());
}
}
#endif // FEATURE_HIJACK
Expand Down Expand Up @@ -871,7 +871,7 @@ bool Thread::Redirect()
redirectionContext->SetIp(origIP);

STRESS_LOG2(LF_STACKWALK, LL_INFO10000, "InternalRedirect: TgtThread = %llx, IP = %p\n",
GetPalThreadIdForLogging(), origIP);
GetOSThreadId(), origIP);

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/nativeaot/Runtime/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class Thread : private RuntimeThreadLocals
ee_alloc_context * GetEEAllocContext();
gc_alloc_context * GetAllocContext();

uint64_t GetPalThreadIdForLogging();
uint64_t GetOSThreadId();

void GcScanRoots(ScanFunc* pfnEnumCallback, ScanContext * pvCallbackData);

Expand Down
Loading