Expose TODO for cleaning up old threads

This commit is contained in:
Justin Ethier 2017-01-26 18:55:10 -05:00
parent 8c6c27b3d6
commit 8b530989ee

10
gc.c
View file

@ -1684,11 +1684,11 @@ void gc_thread_data_free(gc_thread_data * thd)
{ {
if (thd) { if (thd) {
// //
// !! !!
// TODO: (not necessarily here, but somewhere need to roll heap pages into TODO: (not necessarily here, but somewhere need to roll heap pages into
// another thread data. need to include cached heap sizes/total, too. another thread data. need to include cached heap sizes/total, too.
// then free cached heap vars here. then free cached heap vars here.
// !! !!
// //
if (pthread_mutex_destroy(&thd->lock) != 0) { if (pthread_mutex_destroy(&thd->lock) != 0) {
// TODO: can only destroy the lock if it is unlocked. need to make sure we // TODO: can only destroy the lock if it is unlocked. need to make sure we