fix ConcurrentSkipList::Recycler layout
authorPhilip Pronin <philipp@fb.com>
Tue, 8 Apr 2014 18:08:02 +0000 (11:08 -0700)
committerptarjan <ptarjan@fb.com>
Wed, 9 Apr 2014 03:59:39 +0000 (20:59 -0700)
commitd92b1b900c4cf319224c6497f2ff529120534ae5
tree6557f7a67ca27a51d50b6aa826a169a643867cdf
parentbfdcbc20197ed2b2dbcd9a4f17c0cb1a665d62a1
fix ConcurrentSkipList::Recycler layout

Summary:
D1261546 introduced regression in `sizeof(ConcurrentSkipList)`.
In case of `NodeAlloc = folly::SysAlloc`, size of an empty `NodeAlloc` struct
is 1 byte, due to the alignment requirements of the next field, it got
translated into wasting 8 bytes.

Test Plan: fbconfig -r folly/test && fbmake opt -j32

@override-unit-failures

Reviewed By: lucian@fb.com

FB internal diff: D1264730
folly/ConcurrentSkipList-inl.h