Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Question about register_global_root
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Mary F. Fernandez <mff@r...>
Subject: [Caml-list] Question about register_global_root
Hi Caml experts,
We are using register_global_root to register addresses in the malloc'd
C heap that contain Caml values.  We noticed that register_global_root
(comment below) expects a global C variable, but we assumed that it should
work with malloc'd addresses as well.  Is there any reason that it would not?

/* [register_global_root] registers a global C variable as a memory root
    for the duration of the program, or until [remove_global_root] is
    called. */

We are getting (somewhat random) core dumps after calling the same Caml
function repeatedly on the same Caml value (which is referenced
from the C heap).

Mary Fernandez, Principal Technical Staff Member
AT&T Labs - Research, 180 Park Ave., Room E243, Florham Park, NJ 07932-0971
phone: 973-360-8679,  fax: 973-360-8187,

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: