Check whether shared memory collection is needed in master
commitaedb670891b67d06140f4293665c22c911678d92
authorKasper Kopec <kasper@fb.com>
Mon, 26 Mar 2018 05:07:25 +0000 (25 22:07 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 26 Mar 2018 05:27:25 +0000 (25 22:27 -0700)
tree7500d35cf2396735ebf2629177dace0aae8a58f5
parent476e96f4cb57e88e798d68b08a0b8e5a4ca201e6
Check whether shared memory collection is needed in master

Summary: Another unforeseen consequence of {D7282948} - just checking whether a collection is needed adds an overhead of parallel worker. It's only about 25ms, but we run it on some time-critical paths during lazy (focused) checks.

Reviewed By: gregory-nisbet

Differential Revision: D7369392

fbshipit-source-id: 0c56ffebb3cceec875d9d120c83bd5399ccd0785
hphp/hack/src/heap/hh_shared.c
hphp/hack/src/heap/sharedMem.ml
hphp/hack/src/heap/sharedMem.mli
hphp/hack/src/procs/workerCollect.ml
hphp/hack/test/unit/heap/test_hashtbl.ml