Skip to content

Commit

Permalink
Add an error for enabled multithreaded gc (oscar-system#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Apr 29, 2024
1 parent a6d73fc commit 5920502
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/GAP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ function __init__()
windows_error()
end

if isdefined(Threads, :ngcthreads) && Threads.ngcthreads() > 1
error("GAP.jl currently does not support multithreaded garbage collection. Please run julia with `--gcthreads=1` for now.")
end

# always regenerate our custom GAP root dir, to accommodate for changes
# in the system configuration (artifact paths, available compilers, ...)
global sysinfo
Expand Down

0 comments on commit 5920502

Please sign in to comment.