From b189bedb02bdda49e89b1d004c700518714709d8 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Mon, 18 Sep 2023 11:29:40 -0400 Subject: [PATCH] Move thread name after ptls field to avoid changing offsets (#51353) Makes it a bit easier to recompile with Tracy, the sysimg stays valid since we don't change the offset of the ptls field. --- src/julia.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/julia.h b/src/julia.h index 1b3b2c7a70138..50c4f8994de15 100644 --- a/src/julia.h +++ b/src/julia.h @@ -2052,9 +2052,6 @@ typedef struct _jl_task_t { // hidden state: -#ifdef USE_TRACY - const char *name; -#endif // id of owning thread - does not need to be defined until the task runs _Atomic(int16_t) tid; // threadpool id @@ -2072,6 +2069,9 @@ typedef struct _jl_task_t { size_t world_age; // quick lookup for current ptls jl_ptls_t ptls; // == jl_all_tls_states[tid] +#ifdef USE_TRACY + const char *name; +#endif // saved exception stack jl_excstack_t *excstack; // current exception handler