Skip to content

Commit

Permalink
bugfix in gc-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Feb 20, 2023
1 parent 9cdf897 commit b5b5791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gc-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static void restore(void)
static void gc_verify_track(jl_ptls_t ptls)
{
// `gc_verify_track` is limited to single-threaded GC
if (jl_n_gcthreads == 0)
if (jl_n_gcthreads != 0)
return;
do {
jl_gc_markqueue_t mq;
Expand Down Expand Up @@ -257,7 +257,7 @@ static void gc_verify_track(jl_ptls_t ptls)
void gc_verify(jl_ptls_t ptls)
{
// `gc_verify` is limited to single-threaded GC
if (jl_n_gcthreads == 0)
if (jl_n_gcthreads != 0)
return;
jl_gc_markqueue_t mq;
jl_gc_markqueue_t *mq2 = &ptls->mark_queue;
Expand Down

0 comments on commit b5b5791

Please sign in to comment.