Skip to content

Commit

Permalink
don't delete ngcthreads
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Jun 26, 2023
1 parent 4fedfda commit cee0701
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions base/options.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ struct JLOptions
cpu_target::Ptr{UInt8}
nthreadpools::Int16
nthreads::Int16
ngcthreads::Int16
nmarkthreads::Int16
nsweepthreads::Int8
nthreads_per_pool::Ptr{Int16}
Expand Down
2 changes: 2 additions & 0 deletions src/jloptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ JL_DLLEXPORT void jl_init_options(void)
NULL, // cpu_target ("native", "core2", etc...)
0, // nthreadpools
0, // nthreads
0, // ngcthreads
0, // nmarkthreads
0, // nsweepthreads
NULL, // nthreads_per_pool
Expand Down Expand Up @@ -841,6 +842,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
jl_errorf("julia: --gcthreads=<n>,<m>; n must be 0 or 1");
jl_options.nsweepthreads = (int8_t)nsweepthreads;
}
jl_options.ngcthreads = jl_options.nmarkthreads + jl_options.nsweepthreads;
break;
case opt_permalloc_pkgimg:
if (!strcmp(optarg,"yes"))
Expand Down
1 change: 1 addition & 0 deletions src/jloptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ typedef struct {
const char *cpu_target;
int8_t nthreadpools;
int16_t nthreads;
int16_t ngcthreads;
int16_t nmarkthreads;
int8_t nsweepthreads;
const int16_t *nthreads_per_pool;
Expand Down

0 comments on commit cee0701

Please sign in to comment.