diff options
author | Dave Barach <dave@barachs.net> | 2017-01-09 15:54:00 -0500 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2017-01-09 15:54:41 -0500 |
commit | 842b9c59cc21b3e2917aaa25069fb15addf976f1 (patch) | |
tree | dff8bd1e948ac1e311bf8547ee40175b6eeace8e /src/vlibmemory/api.h | |
parent | d995c757f05f78aa759b0a65c0a7e38088e690a9 (diff) |
Self-service garbage collection for the API message allocator
Change-Id: Iadc08eede15fa5978e4010bbece0232aab8b0fee
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vlibmemory/api.h')
-rw-r--r-- | src/vlibmemory/api.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vlibmemory/api.h b/src/vlibmemory/api.h index 54a0a0011fd..8e44c20d4ed 100644 --- a/src/vlibmemory/api.h +++ b/src/vlibmemory/api.h @@ -86,6 +86,9 @@ typedef struct vl_shmem_hdr_ /* Number of messages reclaimed during application restart */ u32 restart_reclaims; + /* Number of garbage-collected messages */ + u32 garbage_collects; + } vl_shmem_hdr_t; #define VL_SHM_VERSION 2 |