diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-24 18:59:13 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-27 10:48:22 +0200 |
commit | 48a34bc1202e9664121c9e9aa004c79ac71af3f5 (patch) | |
tree | 84d112e40324b30d72a7d604b7914d4fb7a94f47 /ext/bcmath/php_bcmath.h | |
parent | 41c7d28c113d1c8e9c98cc834e8479f8567e5e3a (diff) | |
download | php-git-48a34bc1202e9664121c9e9aa004c79ac71af3f5.tar.gz |
Add helper APIs for get_gc implementations
get_gc() implementations that need to explore heterogeneous data
currently work by computing how many GC entries they need,
allocating a buffer for that and storing it on the object. This
is inefficient and wastes memory, because the buffer is retained
after the GC run.
This commit adds an API for a single global GC buffer, which can
be reused by get_gc implementations (as only one get_gc call is
ever active at the same time). The GC buffer will automatically
grow during the GC run and be discarded at the end.
Diffstat (limited to 'ext/bcmath/php_bcmath.h')
0 files changed, 0 insertions, 0 deletions