From: Christopher Dykes Date: Wed, 8 Jun 2016 19:51:28 +0000 (-0700) Subject: Pack PackedSyncPtr X-Git-Tag: 2016.07.26~158 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=67a55881d21e8359640c86a0486de2f0da44390f;p=folly.git 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 --- 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,