aboutsummaryrefslogtreecommitdiffhomepage
path: root/stm/vernac_classifier.ml
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2016-06-17 10:48:17 +0200
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2016-06-17 16:27:35 +0200
commit905e82c498d920ff5508d57c5af4a3a8e939f2a8 (patch)
treefb9305c4c60d3c063c5f8a85f2484f8926e03bdf /stm/vernac_classifier.ml
parent8a45a3a5d08f9e9339d0ba9cc9624a895d4cfc57 (diff)
remote counter: avoid thread race on sockets (fix #4823)
With par: the scenario is this one: coqide --- master ---- proof worker 1 (has no par: steps) ---- proof worker 2 (has a par: step) ---- tac worker 2.1 ---- tac worker 2.2 ---- tac worker 2.3 Actor 2 installs a remote counter for universe levels, that are requested to master. Multiple threads dealing with actors 2.x may need to get values from that counter at the same time. Long story short, in this complex scenario a mutex was missing and the control threads for 2.x were accessing the counter (hence reading/writing to the single socket connecting 2 with master at the same time, "corrupting" the data flow). A better solution would be to have a way to generate unique fresh universe levels locally to a worker.
Diffstat (limited to 'stm/vernac_classifier.ml')
0 files changed, 0 insertions, 0 deletions