Skip to content

Commit 8e31e44

Browse files
author
luke
committed
Add comment on serialize/unserialize for resizable vectors.
git-svn-id: https://svn.r-project.org/R/trunk@89076 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 0c535de commit 8e31e44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/memory.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5010,6 +5010,10 @@ NORET R_len_t R_BadLongVector(SEXP x, const char *file, int line)
50105010

50115011
/* Highly experimental resizable vector support */
50125012

5013+
/* Serializing and unserializing preserves the GROWABLE bit, but
5014+
XTRUELENGTH is set to zero by unserialize. A vector with the
5015+
GROWABLE bit set but XTRUELENGTH zero is therefore considered not
5016+
resizeble. */
50135017
bool R_isResizable(SEXP x)
50145018
{
50155019
return isVector(x) && ! ALTREP(x) && GROWABLE_BIT_SET(x) &&

0 commit comments

Comments
 (0)