Displaying 1 result from an estimated 1 matches for "primcache".
2013 Mar 03
1
Missing PROTECT in mkPRIMSXP ?
...rbage collected.
Asking for R_Primitive("length") in mapply.c gets us to dstruct.c:60, where we 
end up at
     if (result == R_NilValue) {
	result = allocSExp(type);
	SET_PRIMOFFSET(result, offset);
     }
...
     return result;
which looks like the allocated SEXP is not added to the PrimCache vector, and 
hence available for garbage collection. Perhaps a patch is along the lines of
Index: dstruct.c
===================================================================
--- dstruct.c	(revision 62113)
+++ dstruct.c	(working copy)
@@ -59,6 +59,7 @@
      if (result == R_NilValue) {
  	result...