Pack RefData::m_cow and m_z into a one byte bitfield.
commit59ae316f278650f74a9b45d965a10b7fd34f9b39
authorEdwin Smith <smith@fb.com>
Mon, 23 Mar 2015 15:47:48 +0000 (23 08:47 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Mon, 23 Mar 2015 16:00:33 +0000 (23 09:00 -0700)
tree0c38ea3b486cc42d98bf208823a131278ed25645
parentcc32e93cf1fcc4b7a4352f24b39215bdd1068108
Pack RefData::m_cow and m_z into a one byte bitfield.

Summary: Taking care to assign to all bitfield members at once, and sizing them
to use a whole byte, enables gcc/clang to optimize mutations into byte
sized memory ops. This also makes room for an extra header byte for
memory-manager use (for GC, later).

Reviewed By: @​bnell

Differential Revision: D1930578
hphp/runtime/base/ref-data.h