mdbx: speedup debug/checked build.

This resolves https://github.com/leo-yuriev/libmdbx/issues/80

Change-Id: I20596f87db17ce01379dae5f58f4c2b158a04a4a
This commit is contained in:
Leonid Yuriev 2020-01-29 03:29:42 +03:00
parent c1ad86c368
commit fb1d600597

View File

@ -2488,8 +2488,10 @@ static int lcklist_detach_locked(MDBX_env *env) {
} \
} \
\
for (TYPE *scan = begin + 1; scan < end; ++scan) \
assert(CMP(scan[-1], scan[0])); \
if (mdbx_audit_enabled()) { \
for (TYPE *scan = begin + 1; scan < end; ++scan) \
assert(CMP(scan[-1], scan[0])); \
} \
}
/*------------------------------------------------------------------------------
@ -2528,11 +2530,13 @@ static int lcklist_detach_locked(MDBX_env *env) {
++first; \
} \
\
for (TYPE_LIST *scan = begin; scan < first; ++scan) \
assert(CMP(*scan, item)); \
for (TYPE_LIST *scan = first; scan < end; ++scan) \
assert(!CMP(*scan, item)); \
(void)begin, (void)end; \
if (mdbx_audit_enabled()) { \
for (TYPE_LIST *scan = begin; scan < first; ++scan) \
assert(CMP(*scan, item)); \
for (TYPE_LIST *scan = first; scan < end; ++scan) \
assert(!CMP(*scan, item)); \
(void)begin, (void)end; \
} \
\
return first; \
}