Initialize gc_mark_timestamp to zero to avoid garbage values. 78/16978/2
authorBrian Nesbitt <brian.nesbitt@owmobility.com>
Tue, 22 Jan 2019 14:47:53 +0000 (14:47 +0000)
committerDave Barach <openvpp@barachs.net>
Wed, 23 Jan 2019 13:49:48 +0000 (13:49 +0000)
Change-Id: Ib3f030e906da9828fdad27e19b9efb0c349b0734
Signed-off-by: Brian Nesbitt <brian.nesbitt@owmobility.com>
src/vlibmemory/memory_shared.c

index 1ccd563..1263f2c 100644 (file)
@@ -176,6 +176,7 @@ vl_msg_api_alloc_internal (int nbytes, int pool, int may_return_null)
     rv = clib_mem_alloc (nbytes);
 
   rv->q = 0;
+  rv->gc_mark_timestamp = 0;
   svm_pop_heap (oldheap);
   pthread_mutex_unlock (&am->vlib_rp->mutex);