@@ -491,7 +491,7 @@ ep_rt_config_value_get_enable_stackwalk (void)
491491 if (RhConfig ::Environment ::TryGetBooleanValue ("EventPipeEnableStackwalk" , & value ))
492492 return value ;
493493
494- return true ;
494+ return false ;
495495}
496496
497497/*
@@ -1550,10 +1550,9 @@ ep_rt_thread_handle_t
15501550ep_rt_thread_get_handle (void )
15511551{
15521552 STATIC_CONTRACT_NOTHROW ;
1553- // shipping criteria: no EVENTPIPE-NATIVEAOT-TODO left in the codebase
1554- // TODO: Implement thread creation/management if needed
1555- // return GetThreadNULLOk ();
1556- return NULL ;
1553+
1554+ extern ep_rt_thread_handle_t ep_rt_aot_thread_get_handle (void );
1555+ return ep_rt_aot_thread_get_handle ();
15571556}
15581557
15591558static
@@ -1562,13 +1561,9 @@ ep_rt_thread_id_t
15621561ep_rt_thread_get_id (ep_rt_thread_handle_t thread_handle )
15631562{
15641563 STATIC_CONTRACT_NOTHROW ;
1565- EP_ASSERT (thread_handle != NULL );
15661564
1567- // shipping criteria: no EVENTPIPE-NATIVEAOT-TODO left in the codebase
1568- // TODO: Implement thread creation/management if needed
1569- // return ep_rt_uint64_t_to_thread_id_t (thread_handle->GetOSThreadId64 ());
1570- // PalDebugBreak();
1571- return 0 ;
1565+ extern ep_rt_thread_id_t ep_rt_aot_thread_get_id (ep_rt_thread_handle_t thread_handle );
1566+ return ep_rt_aot_thread_get_id (thread_handle );
15721567}
15731568
15741569static
@@ -1605,25 +1600,15 @@ ep_rt_thread_activity_id_handle_t
16051600ep_rt_thread_get_activity_id_handle (void )
16061601{
16071602 STATIC_CONTRACT_NOTHROW ;
1608- // shipping criteria: no EVENTPIPE-NATIVEAOT-TODO left in the codebase
1609- // TODO: Implement thread creation/management if needed
1610- // return GetThread ();
1611- // PalDebugBreak();
1612- return NULL ;
1603+ return ep_rt_thread_get_or_create ();
16131604}
16141605
16151606static
16161607inline
16171608const uint8_t *
16181609ep_rt_thread_get_activity_id_cref (ep_rt_thread_activity_id_handle_t activity_id_handle )
16191610{
1620- STATIC_CONTRACT_NOTHROW ;
1621- EP_ASSERT (activity_id_handle != NULL );
1622-
1623- // shipping criteria: no EVENTPIPE-NATIVEAOT-TODO left in the codebase
1624- // TODO: Implement thread creation/management if needed
1625- // return reinterpret_cast<const uint8_t *>(activity_id_handle->GetActivityId ());
1626- // PalDebugBreak();
1611+ EP_UNREACHABLE ("EP_THREAD_INCLUDE_ACTIVITY_ID should have been defined on NativeAOT" );
16271612 return NULL ;
16281613}
16291614
@@ -1640,7 +1625,7 @@ ep_rt_thread_get_activity_id (
16401625 EP_ASSERT (activity_id != NULL );
16411626 EP_ASSERT (activity_id_len == EP_ACTIVITY_ID_SIZE );
16421627
1643- memcpy (activity_id , ep_rt_thread_get_activity_id_cref (activity_id_handle ), EP_ACTIVITY_ID_SIZE );
1628+ memcpy (activity_id , ep_thread_get_activity_id_cref (activity_id_handle ), EP_ACTIVITY_ID_SIZE );
16441629}
16451630
16461631static
@@ -1656,10 +1641,7 @@ ep_rt_thread_set_activity_id (
16561641 EP_ASSERT (activity_id != NULL );
16571642 EP_ASSERT (activity_id_len == EP_ACTIVITY_ID_SIZE );
16581643
1659- // shipping criteria: no EVENTPIPE-NATIVEAOT-TODO left in the codebase
1660- // TODO: Implement thread creation/management if needed
1661- // activity_id_handle->SetActivityId (reinterpret_cast<LPCGUID>(activity_id));
1662- // PalDebugBreak();
1644+ memcpy (ep_thread_get_activity_id_ref (activity_id_handle ), activity_id , EP_ACTIVITY_ID_SIZE );
16631645}
16641646
16651647#undef EP_YIELD_WHILE
0 commit comments