Home GnuPG

gpgscm: Mark cells requiring finalization.

Description

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>

Details

Provenance
justusAuthored on Nov 15 2016, 11:03 AM
Parents
rEdd6bd1bf2a76: gpgscm: Recover more cells.
Branches
Unknown
Tags
Unknown