packages/libs/libfolly/patches/101-remove-undefined-dcheck.patch
Rosen Penev 2973b57a39
libfolly: Update to 2019.09.02
Several optimizations to reduce size. ~35KB. Mostly because of LTO.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-09-09 11:34:14 -07:00

10 lines
469 B
Diff

--- a/folly/stats/detail/BufferedStat-inl.h
+++ b/folly/stats/detail/BufferedStat-inl.h
@@ -69,7 +69,6 @@ void BufferedStat<DigestT, ClockT>::doUpdate(
TimePoint now,
const std::unique_lock<SharedMutex>& g,
UpdateMode updateMode) {
- DCHECK(g.owns_lock());
// Check that no other thread has performed the slide after the check
auto oldExpiry = expiry_.load(std::memory_order_relaxed).tp;
if (now > oldExpiry || updateMode == UpdateMode::Now) {