1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed fa5432e

import stmgc/c83f63e68ab7

  • Participants
  • Parent commits a40a970
  • Branches stmgc-static-barrier

Comments (0)

Files changed (3)

File rpython/translator/stm/src_stm/et.c

View file
 
 static void init_transaction(struct tx_descriptor *d)
 {
+  assert(d->atomic == 0);
   assert(d->active == 0);
   stm_start_sharedlock();
   assert(d->active == 0);

File rpython/translator/stm/src_stm/revision

View file
-e14cbe1e040b
+c83f63e68ab7

File rpython/translator/stm/src_stm/stmsync.c

View file
     stm_shadowstack = v_saved_value + 2;   /*skip the two values pushed above*/
 
     do {
+        v_atomic = d->atomic;
         v_counter = counter + 1;
         /* If counter==0, initialize 'reads_size_limit_nonatomic' from the
            configured length limit.  If counter>0, we did an abort, which
         result = callback(arg, counter);
         assert(stm_shadowstack == v_saved_value + 2);
 
-        v_atomic = d->atomic;
         if (!d->atomic)
             CommitTransaction();