From: Mathieu Desnoyers Date: Thu, 14 Feb 2013 16:36:43 +0000 (-0500) Subject: rculfhash: add assertions on node alignment X-Git-Tag: v0.8.0~109 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=2f943cd7ef7e14ddd9dfc6c8a98db798c460eb33;hp=2f943cd7ef7e14ddd9dfc6c8a98db798c460eb33;p=urcu.git rculfhash: add assertions on node alignment I've had a report of someone running into issues with the RCU lock-free hash table by embedding the struct cds_lfht_node into a packed structure by mistake, thus not respecting alignment requirements stated in urcu/rculfhash.h. Assertions on "replace" and "add" operations should catch this, but I notice that we should add assertions on the REMOVAL_OWNER_FLAG to cover all possible misalignments. Acked-by: Paul E. McKenney Signed-off-by: Mathieu Desnoyers ---