Skip to content

Commit

Permalink
Disable GC state assertion when threading is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan authored and fcard committed Feb 28, 2017
1 parent 3f5eb1f commit 371e2e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,9 @@ JL_DLLEXPORT jl_value_t *jl_gc_pool_alloc(jl_ptls_t ptls, int pool_offset,
// to workaround a llvm bug.
// Ref https://llvm.org/bugs/show_bug.cgi?id=27190
jl_gc_pool_t *p = (jl_gc_pool_t*)((char*)ptls + pool_offset);
#ifdef JULIA_ENABLE_THREADING
assert(ptls->gc_state == 0);
#endif
#ifdef MEMDEBUG
return jl_gc_big_alloc(ptls, osize);
#endif
Expand Down

0 comments on commit 371e2e0

Please sign in to comment.