We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ec75d6 commit 59f1534Copy full SHA for 59f1534
1 file changed
src/threading.c
@@ -398,8 +398,8 @@ void jl_init_threading(void)
398
}
399
if (jl_n_threads <= 0)
400
jl_n_threads = 1;
401
- jl_measure_compile_time = (uint8_t*)realloc(jl_measure_compile_time, jl_n_threads * sizeof(*jl_measure_compile_time));
402
- jl_cumulative_compile_time = (uint64_t*)realloc(jl_cumulative_compile_time, jl_n_threads * sizeof(*jl_cumulative_compile_time));
+ jl_measure_compile_time = (uint8_t*)calloc(jl_n_threads, sizeof(*jl_measure_compile_time));
+ jl_cumulative_compile_time = (uint64_t*)calloc(jl_n_threads, sizeof(*jl_cumulative_compile_time));
403
#ifndef __clang_analyzer__
404
jl_all_tls_states = (jl_ptls_t*)calloc(jl_n_threads, sizeof(void*));
405
#endif
0 commit comments