Actually run the gc sometimes, when Eval.EnableGC=true
commitfcda8fc78da8c6b47ad723478535f696b4f255b6
authorEdwin Smith <smith@fb.com>
Wed, 9 Mar 2016 20:57:53 +0000 (9 12:57 -0800)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Wed, 9 Mar 2016 21:00:31 +0000 (9 13:00 -0800)
tree2efe9c02d695dd416b908b8a271fde5baa11064b
parent4de4e11dac88723725639797c2c2f66f6d0bd7be
Actually run the gc sometimes, when Eval.EnableGC=true

Summary:Request gc on new slab allocation, when gc is enabled. Without this,
the only thing EnableGC does is allow gc_collect_cycles() to work.

Reviewed By: markw65

Differential Revision: D3018509

fb-gh-sync-id: 9f7990b82977608c8acec3a45856868579e8e253
shipit-source-id: 9f7990b82977608c8acec3a45856868579e8e253
hphp/runtime/base/heap-collect.cpp
hphp/runtime/base/heap-scan.h
hphp/runtime/base/memory-manager.cpp
hphp/runtime/base/memory-manager.h