diff options
author | Damjan Marion <damarion@cisco.com> | 2022-03-23 18:53:29 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-03-23 18:41:13 +0000 |
commit | 8d7cdc808fdb810a843b48bfcca358cf083c04e8 (patch) | |
tree | e78c02e0f2823371856640ee866dddaccd0f867a /src/vppinfra/vec.h | |
parent | f87acfaf739f7b6361d6299549a897b03b0cc8c6 (diff) |
vppinfra: deprecate clib_mem_is_vec
Use of clib_mem_is_heap_object is not reliable enough for production use
as it relies on just few bytes of memory allocator chunk header.
Type: improvement
Change-Id: I48c8adde8b6348b15477e3a015ba515eb7ee7ec2
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/vec.h')
-rw-r--r-- | src/vppinfra/vec.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/vppinfra/vec.h b/src/vppinfra/vec.h index 1e2f614d910..8f42149021a 100644 --- a/src/vppinfra/vec.h +++ b/src/vppinfra/vec.h @@ -187,18 +187,6 @@ _vec_resize_will_expand (void *v, uword n_elts, uword elt_size) #define vec_resize_will_expand(V, N) \ _vec_resize_will_expand (V, N, sizeof ((V)[0])) -/** \brief Predicate function, says whether the supplied vector is a clib heap - object - - @param v pointer to a vector - @return 0 or 1 -*/ -always_inline uword -clib_mem_is_vec (void *v) -{ - return clib_mem_is_heap_object (vec_header (v)); -} - /* Local variable naming macro (prevents collisions with other macro naming). */ #define _v(var) _vec_##var |