Ignore captured frame after AFWH finishes
commit315557dde6a6dea05d9a2f869cf0826317914a13
authorEdwin Smith <smith@fb.com>
Tue, 11 Apr 2017 14:20:10 +0000 (11 07:20 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 11 Apr 2017 14:30:53 +0000 (11 07:30 -0700)
tree31bdb51f77561f88c688097e225e5d623ead3bdb
parent7626c4813aefe444eaf563ef3223721be6c10e35
Ignore captured frame after AFWH finishes

Summary:
When an async function finishes (returns a value or propagates
an exception), it's frame is destroyed. however the WH object
may live longer, and in the mean time any pointers in the frame
should be considered dead even though they aren't nulled out.

Reviewed By: ricklavoie

Differential Revision: D4843710

fbshipit-source-id: b2cbdd0d548bdc5acea784ee940f01298d366f38
hphp/runtime/base/heap-scan.h
hphp/runtime/base/memory-manager.cpp