caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] GC interface question
@ 2011-07-01  9:09 Dmitry Bely
  2011-07-01 11:49 ` Damien Doligez
  2011-07-01 11:56 ` Fabrice Le Fessant
  0 siblings, 2 replies; 9+ messages in thread
From: Dmitry Bely @ 2011-07-01  9:09 UTC (permalink / raw)
  To: Caml List

Does this fragment violate GC interface rules:

  Begin_roots_block(_varg, 2)
    _varg[0] = ((struct camlidl_intf *) this)->caml_object;
    _varg[1] = camlidl_alloc_small(1, Abstract_tag);
    Field(_varg[1], 0) = (value) log;
  End_roots();
  _vres = caml_callbackN_exn(caml_get_public_method(_varg[0],
Val_int(1007700946)), 2, _varg);

It's unsafe to pass _varg to caml_callbackN_exn when it is not
referenced from local_roots, right?

- Dmitry Bely

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-07-01 15:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-01  9:09 [Caml-list] GC interface question Dmitry Bely
2011-07-01 11:49 ` Damien Doligez
2011-07-01 12:06   ` Dmitry Bely
2011-07-01 11:56 ` Fabrice Le Fessant
2011-07-01 12:54   ` Dmitry Bely
2011-07-01 13:37     ` Fabrice Le Fessant
2011-07-01 14:44       ` Dmitry Bely
     [not found]       ` <801099288.1616121.1309531501115.JavaMail.root@zmbs4.inria.fr>
2011-07-01 15:09         ` Fabrice Le Fessant
2011-07-01 15:41           ` Dmitry Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).