Skip to content

Commit

Permalink
Lock base environment and its namespace.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@80163 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
hornik committed Apr 13, 2021
1 parent 7d92421 commit 26165fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/envir.c
Original file line number Diff line number Diff line change
Expand Up @@ -3289,7 +3289,7 @@ void R_LockEnvironment(SEXP env, Rboolean bindings)
if(SYMVALUE(CAR(s)) != R_UnboundValue)
LOCK_BINDING(CAR(s));
}
#ifdef NOT_YET
#ifndef NOT_YET
/* causes problems with Matrix */
LOCK_FRAME(env);
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ void setup_Rmainloop(void)
R_LoadProfile(R_OpenSysInitFile(), baseEnv);
/* These are the same bindings, so only lock them once */
R_LockEnvironment(R_BaseNamespace, TRUE);
#ifdef NOTYET
#ifndef NOTYET
/* methods package needs to trample here */
R_LockEnvironment(R_BaseEnv, TRUE);
#endif
Expand Down

0 comments on commit 26165fd

Please sign in to comment.