aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/pre_env.mli
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2014-01-06 15:13:32 +0100
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2014-01-06 16:54:15 +0100
commitc44a12ab9136b8d13cec0d9c1f3837b6f92eb283 (patch)
tree75c4334f93dacae8e7eaf93691f448718d5997b3 /kernel/pre_env.mli
parent2f6e3a8a453c3fa29bbc660a929c5140916c76b3 (diff)
STM: fix worker crash when doing vm_compute
Kudos to Maximes for finding the culprit in no time! Values of type 'Pre_env.key' store in the OCaml state the 'address' of an already evaluated constant in the VM's C state. Such values are not sent to work processes. The worker is going to re-evaluate the constant, but just once, since the cache is cleared only when the env is marshalled (via ephemerons).
Diffstat (limited to 'kernel/pre_env.mli')
-rw-r--r--kernel/pre_env.mli2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/pre_env.mli b/kernel/pre_env.mli
index 93c8b15f7..3968ebcd5 100644
--- a/kernel/pre_env.mli
+++ b/kernel/pre_env.mli
@@ -19,7 +19,7 @@ type link_info =
| LinkedInteractive of string
| NotLinked
-type key = int option ref
+type key = int Ephemeron.key option ref
type constant_key = constant_body * (link_info ref * key)