Skip to content

Commit

Permalink
fix segfault when CILK_ALERT=memory (and that alert is enabled in deb…
Browse files Browse the repository at this point in the history
…ug.h)
  • Loading branch information
Kyle Singer committed Dec 16, 2024
1 parent 8b950f2 commit b2c3b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/internal-malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void dump_memory_state(FILE *out, global_state *g) {
dump_buckets(out, &g->im_desc);
for (unsigned int i = 0; i < g->nworkers; i++) {
__cilkrts_worker *w = g->workers[i];
if (!w)
if (!w || !w->l)
continue;
fprintf(out, "Worker %u:\n", i);
dump_buckets(out, &w->l->im_desc);
Expand Down

0 comments on commit b2c3b88

Please sign in to comment.