From luke-tierney at uiowa.edu  Sat Feb 13 17:25:13 2016
From: luke-tierney at uiowa.edu (luke-tierney at uiowa.edu)
Date: Sat, 13 Feb 2016 10:25:13 -0600
Subject: [Rd] Question about CHARSXP and garbage collection
In-Reply-To: <CAFDswJvbmKTo9Ua3cwPTGVRcn04Wb6FhLKhuui2fxVvCMHh+vw@mail.gmail.com>
References: <CAFDswJvbmKTo9Ua3cwPTGVRcn04Wb6FhLKhuui2fxVvCMHh+vw@mail.gmail.com>
Message-ID: <alpine.DEB.2.10.1602131024420.2681@luke-Latitude>

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

Best,

luke

On Sat, 13 Feb 2016, Holger Hoefling wrote:

> 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
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Luke Tierney
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:   luke-tierney at uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu



[Rd] Question about CHARSXP and garbage collection
luke-tierney at uiowa.edu