Commits

Armin Rigo  committed 8929b1e

fix

  • Participants
  • Parent commits 367f5b3
  • Branches stmgc-c7

Comments (0)

Files changed (1)

File rpython/translator/c/src/mem.c

 {
   long count = 0;
   struct pypy_debug_alloc_s *p;
+  spinlock_acquire(pypy_debug_alloc_lock, 'R');
   for (p = pypy_debug_alloc_list; p; p = p->next)
     count++;
   if (count > 0)
       else
         fprintf(stderr, " (use PYPY_ALLOC=1 to see the list)\n");
     }
+  spinlock_release(pypy_debug_alloc_lock);
 }
 
 #endif /* RPY_ASSERT */