Skip to content

Commit e42bd8b

Browse files
run gcext test single threaded
Revert "run gcext test single threaded" This reverts commit 4f8668c. Update gcext.c
1 parent 372ac6a commit e42bd8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/gcext/gcext.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,12 @@ int main()
600600
jl_gc_set_cb_notify_external_alloc(alloc_bigval, 1);
601601
jl_gc_set_cb_notify_external_free(free_bigval, 1);
602602

603+
// single threaded mode
604+
jl_options.nthreadpools = 1;
605+
jl_options.nthreads = 1;
606+
int16_t ntpp[] = {jl_options.nthreads};
607+
jl_options.nthreads_per_pool = ntpp;
608+
603609
jl_init();
604610
if (jl_gc_enable_conservative_gc_support() < 0)
605611
abort();

0 commit comments

Comments
 (0)