diff options
author | Justus Winter <justus@g10code.com> | 2016-11-15 11:03:30 +0100 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2016-11-15 11:10:56 +0100 |
commit | 64a58e23c38db8658423bbe26fcd650330e24a88 (patch) | |
tree | 7caf7ab5219a706198df3907d9e2e68da474ae9c /acinclude.m4 | |
parent | gpgscm: Recover more cells. (diff) | |
download | gnupg2-64a58e23c38db8658423bbe26fcd650330e24a88.tar.xz gnupg2-64a58e23c38db8658423bbe26fcd650330e24a88.zip |
gpgscm: Mark cells requiring finalization.
* tests/gpgscm/scheme.c (T_FINALIZE): New macro.
(mk_port): Use the new macro.
(mk_foreign_object): Likewise.
(mk_counted_string): Likewise.
(mk_empty_string): Likewise.
(gc): Only call 'finalize_cell' for cells with the new flag.
--
This speeds up the sweep phase of the garbage collector considerably
because most cells do not require finalization.
Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'acinclude.m4')
0 files changed, 0 insertions, 0 deletions