reuse code.prof when low arena runs out of address space
commit5735672896d20b11b52e35c02176c3285c261b2a
authorBin Liu <binliu@fb.com>
Tue, 9 Mar 2021 16:28:19 +0000 (9 08:28 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 9 Mar 2021 16:32:37 +0000 (9 08:32 -0800)
tree1a1b2e291cc6fe5c767ca919ca4765e0ad912348
parent179965a6082a251533bff0859e28538fc2232b65
reuse code.prof when low arena runs out of address space

Summary: After retranslateall, use the buffer for profiling code as an emergency buffer when we run out of low arena address space to avoid crash. At the same time, initiate a server shutdown when emergency buffer is needed.

Reviewed By: ottoni

Differential Revision: D26772587

fbshipit-source-id: f39c4136b2b25899531ca86e4bdf6cac0b0f511b
hphp/runtime/base/runtime-option.h
hphp/runtime/vm/jit/code-cache.cpp
hphp/util/bump-mapper.cpp
hphp/util/bump-mapper.h
hphp/util/extent-hooks.cpp
hphp/util/extent-hooks.h