From 84d07ef5f4b237ef095587515eecec23041af869 Mon Sep 17 00:00:00 2001 From: Fedor Isakov Date: Thu, 29 Aug 2019 13:19:22 +0200 Subject: [PATCH] Another strategy to deal with deadlocks: drop requirement to use EDT. Typechecking needs a synch point to update its "types model". Using either EDT or the sequential scheduler is unfeasible beacause of possible deadlocks. --- ...ins.mps.coderules.typechecking.service.mps | 167 +++++++++--------- .../models/plugin.mps | 4 +- 2 files changed, 91 insertions(+), 80 deletions(-) diff --git a/coderules/solutions/jetbrains.mps.coderules.typechecking/models/jetbrains.mps.coderules.typechecking.service.mps b/coderules/solutions/jetbrains.mps.coderules.typechecking/models/jetbrains.mps.coderules.typechecking.service.mps index 0064418b..5b4337ef 100644 --- a/coderules/solutions/jetbrains.mps.coderules.typechecking/models/jetbrains.mps.coderules.typechecking.service.mps +++ b/coderules/solutions/jetbrains.mps.coderules.typechecking/models/jetbrains.mps.coderules.typechecking.service.mps @@ -274,6 +274,10 @@ + + + + @@ -2197,61 +2201,68 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - + - - - + + + + + + + + + + + + + + + + + + + - + + + + + + - - - - + + + + + + + + + + + - - - - - - - - - - - - - @@ -2271,15 +2282,22 @@ - - - - - - - - - + + + + + + + + + + + + + + + + @@ -2385,7 +2403,7 @@ - + @@ -2431,7 +2449,7 @@ - + @@ -2471,7 +2489,7 @@ - + @@ -2510,7 +2528,7 @@ - + @@ -2553,7 +2571,7 @@ - + @@ -2595,14 +2613,14 @@ - + - + @@ -2611,7 +2629,7 @@ - + @@ -2624,7 +2642,7 @@ - + @@ -4608,25 +4626,16 @@ - - - - - - - - - - - - + + + + - - - - - - + + + + + diff --git a/coderules/solutions/jetbrains.mps.coderules.ui/models/plugin.mps b/coderules/solutions/jetbrains.mps.coderules.ui/models/plugin.mps index 68e5cd8c..c1eb6486 100644 --- a/coderules/solutions/jetbrains.mps.coderules.ui/models/plugin.mps +++ b/coderules/solutions/jetbrains.mps.coderules.ui/models/plugin.mps @@ -26214,7 +26214,9 @@ - + + +