Skip to content

Commit

Permalink
mark thread_gc function NOTSAFEPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jun 11, 2019
1 parent fd03c24 commit bc534e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ static size_t max_collect_interval = 500000000UL;
// determine how often the given thread should atomically update
// the global allocation counter.
// NOTE: currently the same for all threads.
static int64_t per_thread_counter_interval(jl_ptls_t ptls)
static int64_t per_thread_counter_interval(jl_ptls_t ptls) JL_NOTSAFEPOINT
{
if (jl_n_threads == 1)
return gc_num.interval;
Expand Down Expand Up @@ -991,7 +991,7 @@ void jl_gc_count_allocd(size_t sz) JL_NOTSAFEPOINT
ptls->gc_num.allocd += sz;
}

static void combine_thread_gc_counts(jl_gc_num_t *dest)
static void combine_thread_gc_counts(jl_gc_num_t *dest) JL_NOTSAFEPOINT
{
for (int i = 0; i < jl_n_threads; i++) {
jl_ptls_t ptls = jl_all_tls_states[i];
Expand All @@ -1007,7 +1007,7 @@ static void combine_thread_gc_counts(jl_gc_num_t *dest)
}
}

static void reset_thread_gc_counts(void)
static void reset_thread_gc_counts(void) JL_NOTSAFEPOINT
{
for (int i = 0; i < jl_n_threads; i++) {
jl_ptls_t ptls = jl_all_tls_states[i];
Expand Down

0 comments on commit bc534e1

Please sign in to comment.