Skip to content

Commit

Permalink
Lock .ArgsEnv and .GenericArgsEnv and their bindings after initializa…
Browse files Browse the repository at this point in the history
…tion.

git-svn-id: https://svn.r-project.org/R/trunk@84752 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
luke committed Jul 26, 2023
1 parent 6b34a60 commit ef18cfd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/library/base/baseloader.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,10 @@ local({
for(m in methods)
assignWrapped(m, m, env, table)
})

## Lock .ArgsEnv, .GenericArgsEnv, and their bindings.
## This has to do this here, not in zzz.R, since lazy laoding doesn't
## preserve binding locks (or environment locks for environments in
## base).
lockEnvironment(.ArgsEnv, bindings = TRUE)
lockEnvironment(.GenericArgsEnv, bindings = TRUE)

0 comments on commit ef18cfd

Please sign in to comment.