X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=formal-model%2Fooomem-two-writes%2Fmem.spin;h=304c3f80f534aeba276c7ef7dc1efa3706a04fc9;hb=8c1c47cfbf3410e87c6ef94d3336c33812d76398;hp=9c76c9695c7a81740daa7d5675f3bdbacf69b76e;hpb=27afafe29f0395b9f70e7a7e71605598ae3015d3;p=urcu.git diff --git a/formal-model/ooomem-two-writes/mem.spin b/formal-model/ooomem-two-writes/mem.spin index 9c76c96..304c3f8 100644 --- a/formal-model/ooomem-two-writes/mem.spin +++ b/formal-model/ooomem-two-writes/mem.spin @@ -6,13 +6,16 @@ * * alpha = 0; * beta = 0; + * x = 1; + * y = 1; * * Process A Process B * alpha = 1; beta = 1; - * wmb(); rmb(); + * mb(); mb(); * x = beta; y = alpha; * - * if x = 1, then y = 1 when read. + * if x = 0, then y != 0 + * if y = 0, then x != 0 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -155,9 +158,8 @@ inline smp_mb() DECLARE_CACHED_VAR(byte, alpha, 0); DECLARE_CACHED_VAR(byte, beta, 0); -/* value 2 is uninitialized */ -byte read_one = 2; -byte read_two = 2; +byte read_one = 1; +byte read_two = 1; /* * Bit encoding, proc_one_produced :