Skip to content

Commit 3cadb6c

Browse files
committed
Remove pointer indirection in _TRACY_STOP
1 parent edf55b9 commit 3cadb6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/timing.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,12 @@ enum jl_timing_counter_types {
250250
#define _TRACY_CTOR(block, name) static const struct ___tracy_source_location_data TIMING_CONCAT(__tracy_source_location,__LINE__) = { name, __func__, TracyFile, (uint32_t)__LINE__, 0 }; \
251251
(block)->tracy_srcloc = &TIMING_CONCAT(__tracy_source_location,__LINE__)
252252
#define _TRACY_START(block) (block)->tracy_ctx = ___tracy_emit_zone_begin( (block)->tracy_srcloc, 1 );
253-
#define _TRACY_STOP(ctx) TracyCZoneEnd(*ctx)
253+
#define _TRACY_STOP(ctx) TracyCZoneEnd(ctx)
254254
#else
255255
#define _TRACY_CTX_MEMBER
256256
#define _TRACY_CTOR(block, name)
257257
#define _TRACY_START(block)
258-
#define _TRACY_STOP(block)
258+
#define _TRACY_STOP(ctx)
259259
#endif
260260

261261
/**
@@ -370,7 +370,7 @@ STATIC_INLINE void _jl_timing_block_destroy(jl_timing_block_t *block) JL_NOTSAFE
370370
uint64_t t = cycleclock(); (void)t;
371371
_ITTAPI_STOP(block);
372372
_COUNTS_STOP(&block->counts_ctx, t);
373-
_TRACY_STOP(&block->tracy_ctx);
373+
_TRACY_STOP(block->tracy_ctx);
374374

375375
jl_task_t *ct = jl_current_task;
376376
jl_timing_block_t **pcur = &ct->ptls->timing_stack;

0 commit comments

Comments
 (0)