Add checkPointers() pass to checkHeap(), and add gc_check_heap()
Summary: gc_check_heap() makes it possible for PHP to invoke heap integrity checks
for debugging. no arguments and no return values, for now.
checkPointers() allows us to find bugs where the number of traced pointers
disagrees with an object's reference count. This can happen either from
incomplete tracing (gc bug) or missing inc/decref (refcounting bug). If the
count is too low, we have dangling pointers and potential crashes. If the
count is too high, we have missing pointers and potential leaks.
Reviewed By: markw65
Differential Revision:
D2416471
fb-gh-sync-id:
24c28c47988773ca4c8fea0b2293c00ececf8870