Don't fail on large allocations in ReadOnlyArena
commitb33ab0e7fd3748acd4ee8d9ffa382e5ba3b81bc7
authorBrett Simmers <bsimmers@fb.com>
Tue, 4 Aug 2015 16:44:21 +0000 (4 09:44 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Tue, 4 Aug 2015 17:02:30 +0000 (4 10:02 -0700)
treefed0175e76386747828b68cb2e42921a336481bf
parent624810437d130cc6439b4f220fb58a4df62126ec
Don't fail on large allocations in ReadOnlyArena

Summary: ReadOnlyArena used to assert that we never tried to allocate regions
bigger than m_chunkSize. So far this has caused nothing but operational
headaches, so I've modified it to support variable-sized chunks as
needed. There's still a configurable minimum chunk size since that can affect
how much space is wasted in the tails of chunks.

Reviewed By: @edwinsmith

Differential Revision: D2302310
hphp/util/read-only-arena.cpp
hphp/util/read-only-arena.h