[PPL-devel] [GIT] ppl/ppl(master): Fixed several garbage collecting issues in the OCaml interface.
Enea Zaffanella
zaffanella at cs.unipr.it
Thu Mar 26 14:37:00 CET 2009
Module: ppl/ppl
Branch: master
Commit: 778dfb88238cb7f66cb638d9af2411cd88aa0038
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=778dfb88238cb7f66cb638d9af2411cd88aa0038
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Thu Mar 26 14:08:01 2009 +0100
Fixed several garbage collecting issues in the OCaml interface.
- Helper functions returning OCaml value types that have not been registered
yet with the garbage collector are now named unregistered_value_p_*;
- Added appropriate calls to CAMLlocal* macros where appropriate;
- Use the safe Store_field(a, b, c) instead of the unsafe Field(a, b) = c.
---
.../OCaml/ppl_interface_generator_ocaml_cc_code.m4 | 79 ++++--
.../OCaml/ppl_interface_generator_ocaml_hh_code.m4 | 4 +-
interfaces/OCaml/ppl_ocaml_common.cc | 294 +++++++++++---------
3 files changed, 210 insertions(+), 167 deletions(-)
Diff: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commitdiff;h=778dfb88238cb7f66cb638d9af2411cd88aa0038
More information about the PPL-devel
mailing list