Skip to content

Question about CHARSXP and garbage collection

2 messages · Holger Hoefling, Luke Tierney

#
Hi,

I had a technical question about CHARSXP and garbage collection and
couldn't find the answer in the R manual.

The question is this. Are CHARSXP garbage collected like any other object,
despite being part of the CHARSXP cache? i.e. is the cache being cleaned by
garbage collection regularly and therefore, when I am in C code, do I need
to protect a CHARSXP?

Thanks!

Holger
#
They are garbage collected so you do need to protect them in C code.

Best,

luke
On Sat, 13 Feb 2016, Holger Hoefling wrote: