]> granicus.if.org Git - php/commit
Support variable element size in spl heap implementation
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 21 Aug 2019 14:19:58 +0000 (16:19 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 23 Aug 2019 13:29:53 +0000 (15:29 +0200)
commit9173c21a35e42cbe98fac1e28bde300d1e27af61
treeb952366c047fde3242e4b4e724e44d86ec661d86
parent13e92223c0c102b33b775ff1e4f27bcca72f0eb9
Support variable element size in spl heap implementation

This allows us to drop the intermediate allocation for
spl_pqueue_elem.

This fixes GC for SplPriorityQueue, because we can now directly
return a well-formed GC child buffer.
ext/spl/spl_heap.c
ext/spl/tests/spl_pqueue_gc.phpt [new file with mode: 0644]