Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature/add more shields#1011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
eddelbuettel merged 3 commits intomasterfromfeature/add_more_shields
Nov 4, 2019
Merged

Conversation

@eddelbuettel
Copy link
Member

As discussed in#1010, a few more unprotected temporaries were floating around. This attempts to cover a few more.

@kevinushey give it a look when you have a moment

@codecov-io
Copy link

Codecov Report

Merging#1011 intomaster willnot change coverage.
The diff coverage isn/a.

Impacted file tree graph

@@           Coverage Diff           @@##           master    #1011   +/-   ##=======================================  Coverage   82.46%   82.46%           =======================================  Files          63       63             Lines        3166     3166           =======================================  Hits         2611     2611             Misses        555      555
Impacted FilesCoverage Δ
inst/include/Rcpp/Environment.h100% <ø> (ø)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update76c0ab1...da4b705. Read thecomment docs.

Rf_lang4(removeSym,Rf_mkString(name.c_str()),Storage::get__(),Rf_ScalarLogical(FALSE ))
) );
Shield<SEXP>str(Rf_mkString(name.c_str()));
Shield<SEXP>call(Rf_lang2(internalSym,Rf_lang4(removeSym, str,Storage::get__(),Rf_ScalarLogical(FALSE))));
Copy link
Contributor

@kevinusheykevinusheyNov 4, 2019
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It may also be worth pulling outRf_lang4() from this call and protecting that as well, since IIUC that will be an unprotected R object being passed intoRf_lang2(), and soin theory could be cleaned up by the GC when the pairlist created inRf_lang2() is allocated..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hmm, I might be wrong. IIUC, each of thelang* helper functions protects the arguments passed in, before the final call is created:

https://github.com/wch/r-source/blob/eafae2b2ed39b3383943cd6c36f92d78f966811e/src/include/Rinlinedfuns.h#L629-L677

So this pattern should in fact be safe.

Copy link
Contributor

@kevinusheykevinushey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM!

eddelbuettel reacted with thumbs up emoji
@eddelbuetteleddelbuettel merged commitee0a5b8 intomasterNov 4, 2019
@eddelbuetteleddelbuettel deleted the feature/add_more_shields branchNovember 4, 2019 12:20
@eddelbuettel
Copy link
MemberAuthor

For completeness, the reverse dependsn check results are atRcppCore/rcpp-logs@74e007b

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@kevinusheykevinusheykevinushey approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@eddelbuettel@codecov-io@kevinushey

[8]ページ先頭

©2009-2025 Movatter.jp