Commit 91822c85 authored by Nils Goroll's avatar Nils Goroll

assert umem cache sanity

Ref #3210
parent 0cf29671
...@@ -201,6 +201,11 @@ smu_alloc(const struct stevedore *st, size_t size) ...@@ -201,6 +201,11 @@ smu_alloc(const struct stevedore *st, size_t size)
} }
smu->sz = size; smu->sz = size;
smu->s.space = size; smu->s.space = size;
#ifndef BUG3210
assert(smu->sc == smu_sc);
assert(smu->s.priv == smu);
AZ(smu->s.len);
#endif
return (&smu->s); return (&smu->s);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment