[Rd] GC control and GET_NEW_NODE.

From: Guillaume Yziquel <guillaume.yziquel_at_citycable.ch>
Date: Tue, 24 Nov 2009 13:47:12 +0100


I've been roaming through the R source code and its documentation. When it comes to memory management, I'm a bit surprised to see that there are no C entry points to something such a GET_NEW_NODE in memory.c.

I mean, I'll need to make R GC and OCaml GC live together, so there will be issues which will require access to some sort of control over the GC. What is available in this respect? Only R_alloc?

I'm going through all this pain because looking at promiseArgs, it does not have C entry points. OK. So I copy-paste it with minor tweaks into my own code. It require mkPROMISE. No C entry points. Which requires GET_FREE_NODE from memory.c. Which does not have C entry points in libR.so.

This is a pain. I'd rather not have to reimplement the interpreter in OCaml. I simply want to bind to hidden symbols.


      Guillaume Yziquel

R-devel_at_r-project.org mailing list
Received on Tue 24 Nov 2009 - 12:51:20 GMT

This archive was generated by hypermail 2.2.0 : Tue 24 Nov 2009 - 13:30:36 GMT