From a0c758c0b1e0009cceab5faea42bee550743c9b2 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Sun, 17 Jan 2016 21:39:51 -0500 Subject: [PATCH] Ensure thread data fields are initialized --- gc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gc.c b/gc.c index 1cfc8ba2..0c8955b4 100644 --- a/gc.c +++ b/gc.c @@ -1211,8 +1211,10 @@ void gc_thread_data_init(gc_thread_data *thd, int mut_num, char *stack_base, lon gc_thr_grow_move_buffer(thd); thd->gc_alloc_color = ck_pr_load_int(&gc_color_clear); thd->gc_status = ck_pr_load_int(&gc_status_col); + thd->pending_writes = 0; thd->last_write = 0; thd->last_read = 0; + thd->mark_buffer = NULL; thd->mark_buffer_len = 128; thd->mark_buffer = vpbuffer_realloc(thd->mark_buffer, &(thd->mark_buffer_len)); if (pthread_mutex_init(&(thd->lock), NULL) != 0) {