This commit is contained in:
Justin Ethier 2018-08-24 12:52:23 -04:00
parent 698d156ce4
commit 388759853d
2 changed files with 8 additions and 0 deletions

5
gc.c
View file

@ -273,6 +273,11 @@ void gc_remove_mutator(gc_thread_data * thd)
pthread_mutex_unlock(&mutators_lock); pthread_mutex_unlock(&mutators_lock);
} }
/**
* @brief Determine if the given mutator is in the list of active threads.
* @param thd Thread data object of the m
* @return A true value if the mutator is active, 0 otherwise.
*/
int gc_is_mutator_active(gc_thread_data *thd) int gc_is_mutator_active(gc_thread_data *thd)
{ {
ck_array_iterator_t iterator; ck_array_iterator_t iterator;

View file

@ -5161,6 +5161,9 @@ void Cyc_start_trampoline(gc_thread_data * thd)
exit(1); exit(1);
} }
/**
* @brief A helper function for calling `gc_mark_globals`.
*/
void gc_request_mark_globals(void) void gc_request_mark_globals(void)
{ {
gc_mark_globals(Cyc_global_variables, global_table); gc_mark_globals(Cyc_global_variables, global_table);