Skip to content

Commit

Permalink
casting and whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Feb 9, 2023
1 parent 6d76135 commit e789fc6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion base/options.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct JLOptions
cpu_target::Ptr{UInt8}
nthreadpools::Int16
nthreads::Int16
ngcthreads::Int8
ngcthreads::UInt8
nthreads_per_pool::Ptr{Int16}
nprocs::Int32
machine_file::Ptr{UInt8}
Expand Down
2 changes: 1 addition & 1 deletion src/chase-lev-deque.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ STATIC_INLINE void *ws_queue_steal_from(ws_queue_t *q) JL_NOTSAFEPOINT
}
#endif

#endif
#endif
6 changes: 3 additions & 3 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1795,13 +1795,13 @@ STATIC_INLINE void gc_markqueue_push(jl_gc_markqueue_t *mq, jl_value_t *obj) JL_
// Pop from the mark queue
STATIC_INLINE jl_value_t *gc_markqueue_pop(jl_gc_markqueue_t *mq)
{
return ws_queue_pop(&mq->q);
return (jl_value_t *)ws_queue_pop(&mq->q);
}

// Steal from `mq2`
STATIC_INLINE jl_value_t *gc_markqueue_steal_from(jl_gc_markqueue_t *mq2)
{
return ws_queue_steal_from(&mq2->q);
return (jl_value_t *)ws_queue_steal_from(&mq2->q);
}

// Double the chunk queue
Expand Down Expand Up @@ -2597,7 +2597,7 @@ void gc_mark_loop_worker(jl_ptls_t ptls)

void gc_mark_loop_master(jl_ptls_t ptls)
{
if (__likely(jl_n_gcthreads) == 0) {
if (__likely(jl_n_gcthreads == 0)) {
gc_mark_loop(ptls);
}
else {
Expand Down
1 change: 0 additions & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,6 @@ static NOINLINE void _finish_julia_init(JL_IMAGE_SEARCH rel, jl_ptls_t ptls, jl_
jl_load(jl_core_module, "boot.jl");
post_boot_hooks();
}

jl_start_threads();

jl_gc_enable(1);
Expand Down

0 comments on commit e789fc6

Please sign in to comment.