aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel
diff options
context:
space:
mode:
authorGravatar gareuselesinge <gareuselesinge@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-10-03 09:10:59 +0000
committerGravatar gareuselesinge <gareuselesinge@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-10-03 09:10:59 +0000
commitd05ac62db9ce0715944983e42d3001fa710327e5 (patch)
treef0dddd8567861d3c6129f8d4b0e86f8d56a3536c /kernel
parentb442ed57db9f80269941a28fe6d4e0a177ef6729 (diff)
A shallow copy of a pre_env does not contain the vm cache
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16845 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel')
-rw-r--r--kernel/safe_typing.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/safe_typing.ml b/kernel/safe_typing.ml
index 3cde1538d..57e44a322 100644
--- a/kernel/safe_typing.ml
+++ b/kernel/safe_typing.ml
@@ -207,7 +207,10 @@ let prune_env env =
{ glob with env_constants = Cmap_env.map prune_ckey glob.env_constants }
in
let env = Environ.pre_env env in
- Environ.env_of_pre_env {env with env_globals = prune_globals env.env_globals}
+ Environ.env_of_pre_env {env with
+ env_globals = prune_globals env.env_globals;
+ env_named_vals = [];
+ env_rel_val = []}
let prune_safe_environment e =
{ e with
modvariant = (match e.modvariant with LIBRARY -> LIBRARY | _ -> NONE);