diff options
author | Brian Nesbitt <brian.nesbitt@owmobility.com> | 2019-01-22 14:47:53 +0000 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-01-23 13:49:48 +0000 |
commit | 194212c005a52db89fbee0190b526a5f023161d0 (patch) | |
tree | 602193dcbf60d1c2cd45c7f3c649df41e689caa4 /src/vlibmemory | |
parent | c0b7a82a924e098a4afde28e9fc327de83da6475 (diff) |
Initialize gc_mark_timestamp to zero to avoid garbage values.
Change-Id: Ib3f030e906da9828fdad27e19b9efb0c349b0734
Signed-off-by: Brian Nesbitt <brian.nesbitt@owmobility.com>
Diffstat (limited to 'src/vlibmemory')
-rw-r--r-- | src/vlibmemory/memory_shared.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlibmemory/memory_shared.c b/src/vlibmemory/memory_shared.c index 1ccd563639f..1263f2c9433 100644 --- a/src/vlibmemory/memory_shared.c +++ b/src/vlibmemory/memory_shared.c @@ -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); |