Commit 67a55881 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 8

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
parent 8bac351a
...@@ -135,7 +135,7 @@ public: ...@@ -135,7 +135,7 @@ public:
private: private:
PicoSpinLock<uintptr_t> data_; PicoSpinLock<uintptr_t> data_;
}; } FOLLY_PACK_ATTR;
static_assert( static_assert(
std::is_pod<PackedSyncPtr<void>>::value, std::is_pod<PackedSyncPtr<void>>::value,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment