Add VMRegAnchor before collect()
commit69ac4bd4218746255b079f33b8c8312b073cb582
authorEdwin Smith <smith@fb.com>
Fri, 23 Oct 2015 15:07:21 +0000 (23 08:07 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Fri, 23 Oct 2015 15:30:39 +0000 (23 08:30 -0700)
treeb0ba99119c4b428e2dc44b4855aa61dad1f98c44
parent6be9ee60a38dba013b48ab775b61e968be009351
Add VMRegAnchor before collect()

Summary: Otherwise vmregs are stale, and we'll miss roots when GC is entered
from JIT code. Also force callee-saved registers to spill so the
C++ stack scan will see them.

Reviewed By: ricklavoie

Differential Revision: D2572012

fb-gh-sync-id: a978f4c7795dd6ebf76466f965df02b84f1a5ec7
hphp/runtime/base/heap-scan.h
hphp/runtime/base/memory-manager-defs.h
hphp/runtime/base/thread-info.cpp