From 67a55881d21e8359640c86a0486de2f0da44390f Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Wed, 8 Jun 2016 12:51:28 -0700 Subject: [PATCH] Pack PackedSyncPtr Summary: The comment was right about the packed attribute not liking private members, so pack `PackedSyncPtr` to get GCC to pack structs containing it correctly. Reviewed By: yfeldblum Differential Revision: D3402936 fbshipit-source-id: 11d9def132d5dedf04b0e263c379cac339a52fa3 --- folly/PackedSyncPtr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/PackedSyncPtr.h b/folly/PackedSyncPtr.h index 00dc1e22..3db7ff16 100644 --- a/folly/PackedSyncPtr.h +++ b/folly/PackedSyncPtr.h @@ -135,7 +135,7 @@ public: private: PicoSpinLock data_; -}; +} FOLLY_PACK_ATTR; static_assert( std::is_pod>::value, -- 2.34.1