Correct usage of posix_fallocate
commit08abd8fd25d10ae5c098609ebd51ab6590509b0b
authorGabe Levi <gabe@fb.com>
Thu, 28 Jul 2016 16:00:40 +0000 (28 09:00 -0700)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Thu, 28 Jul 2016 16:02:50 +0000 (28 09:02 -0700)
tree6b218b841defb329623dfc37429a4d1fe84a6a6b
parentc101f428b4849bd9c546a5ed7dcc64127a3ecc71
Correct usage of posix_fallocate

Summary:
posix_fallocate takes an offset, not a pointer. The bug that the
previous diff tried to fix was that `memfd_reserve` was being called in the
first place even though the memory that we were trying to reserve was not
actually in memfd at all.

Reviewed By: andrewjkennedy, dlreeves

Differential Revision: D3623164

fbshipit-source-id: 9feb491faa865d3e14f07df8cb674ec5916faabd
hphp/hack/src/heap/hh_shared.c