Commits

Remi Meier  committed 5e159e8

import stmgc with valgrind modifications

  • Participants
  • Parent commits 285d3fa
  • Branches stmgc-c4

Comments (0)

Files changed (3)

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

     char *baseaddr = base;
     assert(already_cleared <= size);
 
+#if !defined(_USE_VALGRIND)
     if (size > 2 * PAGE_SIZE) {
         int lowbits = ((intptr_t)baseaddr) & (PAGE_SIZE-1);
         if (lowbits) {   /*  clear the initial misaligned part, if any */
             size -= length;
         }
     }
+#endif
     if (size > already_cleared) { /* clear the final misaligned part, if any */
         memset(baseaddr, 0, size - already_cleared);
     }

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

     *d->nursery_nextlimit_ref += GC_NURSERY_SECTION;
 
     /* Return the object from there */
-    gcptr P = (gcptr)*d->nursery_current_ref;
+    gcptr P = (gcptr)(*d->nursery_current_ref);
     *d->nursery_current_ref += allocate_size;
     assert(*d->nursery_current_ref <= *d->nursery_nextlimit_ref);
 

File rpython/translator/stm/src_stm/revision

-73c77375a8a6
+89a1de501060