Always allocate untyped mallocs directly from big heap
commit1aa8f3783fae488e22cb481320abc76692c9efe2
authorEdwin Smith <smith@fb.com>
Mon, 21 Aug 2017 15:27:48 +0000 (21 08:27 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 21 Aug 2017 15:37:17 +0000 (21 08:37 -0700)
tree3932ecf425901ab915eb89d8bfc52164a5aa163b
parent9b9d8849df96cb7bb20ac14599545b65bf6619db
Always allocate untyped mallocs directly from big heap

Summary:
To avoiding needing a whole-heap scan at the start of each
collection cycle, we need a way to quickly identify "unknown"
typed malloc blocks, so they can be added to the root set.
These are expected to be rare, so allocate them directly from
the big heap.

Reviewed By: ricklavoie

Differential Revision: D5668185

fbshipit-source-id: b2fa7e5e07b1965aaf18711b1a89c096ed763821
hphp/runtime/base/heap-collect.cpp
hphp/runtime/base/memory-manager.cpp