Skip to content

Commit 6833b47

Browse files
authoredMar 14, 2022
Merge pull request #1205 from RcppCore/bugfix/untag_token
Untag token upon removal from the precious list
2 parents 136ec60 + 54d50a9 commit 6833b47

File tree

6 files changed

+20
-7
lines changed

6 files changed

+20
-7
lines changed
 

‎ChangeLog

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2022-03-14 Dirk Eddelbuettel <edd@debian.org>
2+
3+
* DESCRIPTION (Version, Date): Roll minor version
4+
* inst/include/Rcpp/config.h: Idem
5+
6+
2022-03-13 Iñaki Ucar <iucar@fedoraproject.org>
7+
8+
* src/barrier.cpp: Untag tokens upon removal from the precious list,
9+
so that the internal reference counter can be safely decremented by R
10+
111
2022-03-13 Dirk Eddelbuettel <edd@debian.org>
212

313
* DESCRIPTION (Version, Date): Roll minor version

‎DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Rcpp
22
Title: Seamless R and C++ Integration
3-
Version: 1.0.8.3
4-
Date: 2022-03-13
3+
Version: 1.0.8.4
4+
Date: 2022-03-14
55
Author: Dirk Eddelbuettel, Romain Francois, JJ Allaire, Kevin Ushey, Qiang Kou,
66
Nathan Russell, Inaki Ucar, Douglas Bates and John Chambers
77
Maintainer: Dirk Eddelbuettel <edd@debian.org>

‎inst/NEWS.Rd

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
\newcommand{\ghpr}{\href{https://github.com/RcppCore/Rcpp/pull/#1}{##1}}
44
\newcommand{\ghit}{\href{https://github.com/RcppCore/Rcpp/issues/#1}{##1}}
55

6-
\section{Changes in Rcpp hotfix release version 1.0.8.3 (2022-03-13)}{
6+
\section{Changes in Rcpp hotfix release version 1.0.8.4 (2022-03-14)}{
77
\itemize{
88
\item Changes in Rcpp API:
99
\itemize{
@@ -13,6 +13,8 @@
1313
\code{std::unary_function} and \code{std::binary_function} with
1414
\code{std::function} (Dirk in \ghpr{1202} fixing \ghit{1201} and
1515
CRAN request)
16+
\code Upon removal from precious list, the tag is set to null
17+
(Iñaki in \ghpr{1205} fixing \ghit{1203})
1618
}
1719
\item Changes in Rcpp Documentation:
1820
\itemize{

‎inst/include/Rcpp/config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define RCPP_VERSION_STRING "1.0.8"
3131

3232
// the current source snapshot (using four components, if a fifth is used in DESCRIPTION we ignore it)
33-
#define RCPP_DEV_VERSION RcppDevVersion(1,0,8,3)
34-
#define RCPP_DEV_VERSION_STRING "1.0.8.3"
33+
#define RCPP_DEV_VERSION RcppDevVersion(1,0,8,4)
34+
#define RCPP_DEV_VERSION_STRING "1.0.8.4"
3535

3636
#endif

‎src/barrier.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// barrier.cpp: Rcpp R/C++ interface class library -- write barrier
33
//
44
// Copyright (C) 2010 - 2020 Dirk Eddelbuettel and Romain Francois
5-
// Copyright (C) 2021 Dirk Eddelbuettel, Romain Francois and Iñaki Ucar
5+
// Copyright (C) 2021 - 2022 Dirk Eddelbuettel, Romain Francois and Iñaki Ucar
66
//
77
// This file is part of Rcpp.
88
//
@@ -119,6 +119,7 @@ void Rcpp_precious_remove(SEXP token) {
119119
if (token == R_NilValue || TYPEOF(token) != LISTSXP) {
120120
return;
121121
}
122+
SET_TAG(token, R_NilValue);
122123
SEXP before = CAR(token);
123124
SEXP after = CDR(token);
124125
SETCDR(before, after);

‎tests/tinytest.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (requireNamespace("tinytest", quietly=TRUE)) {
99

1010
## Force tests to be executed if in dev release which we define as
1111
## having a sub-release, eg 0.9.15.5 is one whereas 0.9.16 is not
12-
if (FALSE && length(strsplit(packageDescription("Rcpp")$Version, "\\.")[[1]]) > 3) { # dev rel, and
12+
if (length(strsplit(packageDescription("Rcpp")$Version, "\\.")[[1]]) > 3) { # dev rel, and
1313
if (Sys.getenv("RunAllRcppTests") != "no") { # if env.var not yet set
1414
message("Setting \"RunAllRcppTests\"=\"yes\" for development release\n")
1515
Sys.setenv("RunAllRcppTests"="yes")

0 commit comments

Comments
 (0)
Failed to load comments.