Skip to content

Commit b189bed

Browse files
authored
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.
1 parent 893fecc commit b189bed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/julia.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,9 +2052,6 @@ typedef struct _jl_task_t {
20522052

20532053
// hidden state:
20542054

2055-
#ifdef USE_TRACY
2056-
const char *name;
2057-
#endif
20582055
// id of owning thread - does not need to be defined until the task runs
20592056
_Atomic(int16_t) tid;
20602057
// threadpool id
@@ -2072,6 +2069,9 @@ typedef struct _jl_task_t {
20722069
size_t world_age;
20732070
// quick lookup for current ptls
20742071
jl_ptls_t ptls; // == jl_all_tls_states[tid]
2072+
#ifdef USE_TRACY
2073+
const char *name;
2074+
#endif
20752075
// saved exception stack
20762076
jl_excstack_t *excstack;
20772077
// current exception handler

0 commit comments

Comments
 (0)