mdbx: disable by-default workaround for obsolete E2K bug.

Change-Id: I9d6aaf0154e3c9f03dab7948575f4792a13dc988
This commit is contained in:
Leonid Yuriev
2019-12-08 14:56:56 +03:00
parent 8ac13aba75
commit 60f4134841
2 changed files with 10 additions and 16 deletions

View File

@@ -578,9 +578,10 @@ static __inline void get_key_optional(const MDBX_node *node,
}
/*------------------------------------------------------------------------------
* LY: temporary workaround for Elbrus's memcmp() bug. */
#if defined(__e2k__) && !__GLIBC_PREREQ(2, 24)
* Workaround for mmaped-lookahead-cross-page-boundary bug
* in an obsolete versions of Elbrus's libc and kernels. */
#if defined(__e2k__) && defined(MDBX_E2K_MLHCPB_WORKAROUND) && \
MDBX_E2K_MLHCPB_WORKAROUND
int __hot mdbx_e2k_memcmp_bug_workaround(const void *s1, const void *s2,
size_t n) {
if (unlikely(n > 42
@@ -688,7 +689,7 @@ size_t __hot mdbx_e2k_strnlen_bug_workaround(const char *s, size_t maxlen) {
}
return n;
}
#endif /* Elbrus's memcmp() bug. */
#endif /* MDBX_E2K_MLHCPB_WORKAROUND */
/*------------------------------------------------------------------------------
* safe read/write volatile 64-bit fields on 32-bit architectures. */