From 73fbda10ad950396a9869ebc60df8f2ef52cd5f8 Mon Sep 17 00:00:00 2001 From: Maged Michael Date: Fri, 19 Jan 2018 21:46:22 -0800 Subject: [PATCH 1/1] Fix integer sign consistency. Summary: Keeping all variables that interact with hazptr_domain::rcount_ signed int to avoid conversion errors. Reviewed By: yfeldblum Differential Revision: D6754593 fbshipit-source-id: e283f127a112a529a0e98eb82b6061b44aa9d2ca --- folly/concurrency/test/DynamicBoundedQueueTest.cpp | 11 ----------- folly/experimental/hazptr/hazptr-impl.h | 10 +++++----- folly/experimental/hazptr/hazptr.h | 3 +++ 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/folly/concurrency/test/DynamicBoundedQueueTest.cpp b/folly/concurrency/test/DynamicBoundedQueueTest.cpp index 290df3da..a4421011 100644 --- a/folly/concurrency/test/DynamicBoundedQueueTest.cpp +++ b/folly/concurrency/test/DynamicBoundedQueueTest.cpp @@ -93,17 +93,6 @@ TEST(DynamicBoundedQueue, basic) { basic_test(); } -TEST(DynamicBoundedQueue, size) { - { - folly::DynamicBoundedQueue q(10); - ASSERT_EQ(sizeof(q), 640); - } - { - folly::DynamicBoundedQueue q(10); - ASSERT_EQ(sizeof(q), 80 + sizeof(folly::hazptr::hazptr_obj_batch)); - } -} - template