X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fbihash_template.c;h=47e9bd0113dc6433a42fdf8b992912bb3d180691;hb=a90ba644b2c5463b89a91d019b3c22780242acc3;hp=f7d88073418017448cae9b46c4e9593538423e5b;hpb=843ea7c3e356b6e9353f9f275976f2fee23beeac;p=vpp.git diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c index f7d88073418..47e9bd0113d 100644 --- a/src/vppinfra/bihash_template.c +++ b/src/vppinfra/bihash_template.c @@ -568,6 +568,9 @@ static_always_inline int BV (clib_bihash_add_del_inline_with_hash) BV (clib_bihash_instantiate) (h); BV (clib_bihash_alloc_unlock) (h); } +#else + /* Debug image: make sure the table has been instantiated */ + ASSERT (h->instantiated != 0); #endif b = BV (clib_bihash_get_bucket) (h, hash);