From 54bfdd60792ab3f926f5446c7f7485e8452ec86f Mon Sep 17 00:00:00 2001 From: bdemsky Date: Fri, 5 Nov 2010 16:42:04 +0000 Subject: [PATCH] bug fix --- Robust/src/Runtime/mlp_runtime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Robust/src/Runtime/mlp_runtime.c b/Robust/src/Runtime/mlp_runtime.c index 1696e698..db756382 100644 --- a/Robust/src/Runtime/mlp_runtime.c +++ b/Robust/src/Runtime/mlp_runtime.c @@ -820,6 +820,7 @@ void resolveDependencies(REntry* rentry){ int index=-1; while(mask!=0) { int shift=__builtin_ctzll(mask)+1; + mask=mask>>shift; index+=shift; if(atomic_sub_and_test(1, &array[index].flag)) { if(atomic_sub_and_test(1, &(seseCommon->unresolvedDependencies))) -- 2.34.1