Closed
Description
While trying to troubleshoot some segfaults, I stumbled upon the R option cpp11_preserve_xptr
that cpp11 uses internally;
cpp11/inst/include/cpp11/protect.hpp
Lines 380 to 405 in 9a62c3a
To be clear, I have no idea what it does, but looking at it's value, e.g.
> getOption("cpp11_preserve_xptr")
<pointer: 0x55555a020518>
is see it's an external pointer.
My question is, is the cpp11 code robust to anything that messes with this option? For example, can it safely be unset:
options(cpp11_preserve_xptr = NULL)
at any time? Can you imagine a scenario where changing it's value would wreak havoc?
Metadata
Metadata
Assignees
Labels
No labels