]> granicus.if.org Git - php/commit
Handle reallocated root buffer during GC destroy phase (v2)
authorTyson Andre <tysonandre775@hotmail.com>
Wed, 20 Nov 2019 00:12:56 +0000 (19:12 -0500)
committerTyson Andre <tysonandre775@hotmail.com>
Sat, 23 Nov 2019 15:45:20 +0000 (10:45 -0500)
commitb037fe5bd1d8289dde5f922908c06437d7027d8e
tree695b91a02865462fe7f756f6dce94c1c82c4b8cb
parentcfb643ca2b1e03d0211b5bf089560c1dd3a41359
Handle reallocated root buffer during GC destroy phase (v2)

We no longer protect GC during the destroy phase, so we need to
deal with buffer reallocation.

Note that the implementation of spl_SplObjectStorage_free_storage
will call the destructor of SplObjectStorage, and free the instance properties,
which I think is what caused the root buffer to be reallocated.
(`current` is a pointer for an index within the root buffer?)

This fixes bug #78811 for me.

Closes GH-4935
Zend/zend_gc.c