Author: Armin Rigo <[email protected]>
Branch: card-marking
Changeset: r1259:882222ce9035
Date: 2014-06-30 12:00 +0200
http://bitbucket.org/pypy/stmgc/changeset/882222ce9035/

Log:    Remove unused argument.

diff --git a/c7/stm/gcpage.c b/c7/stm/gcpage.c
--- a/c7/stm/gcpage.c
+++ b/c7/stm/gcpage.c
@@ -111,7 +111,7 @@
     return addr;
 }
 
-object_t *_stm_allocate_old(ssize_t size_rounded_up, long use_cards)
+object_t *_stm_allocate_old(ssize_t size_rounded_up)
 {
     /* only for tests xxx but stm_setup_prebuilt() uses this now too */
     char *p = allocate_outside_nursery_large(size_rounded_up);
diff --git a/c7/stm/prebuilt.c b/c7/stm/prebuilt.c
--- a/c7/stm/prebuilt.c
+++ b/c7/stm/prebuilt.c
@@ -29,7 +29,7 @@
     /* We need to make a copy of this object.  The extra "long" is for
        the prebuilt hash. */
     size_t size = stmcb_size_rounded_up(obj);
-    object_t *nobj = _stm_allocate_old(size + sizeof(long), 0);
+    object_t *nobj = _stm_allocate_old(size + sizeof(long));
 
     /* Copy the object */
     char *realnobj = REAL_ADDRESS(stm_object_pages, nobj);
diff --git a/c7/stmgc.h b/c7/stmgc.h
--- a/c7/stmgc.h
+++ b/c7/stmgc.h
@@ -115,7 +115,7 @@
 void _stm_collectable_safe_point(void);
 
 /* for tests, but also used in duhton: */
-object_t *_stm_allocate_old(ssize_t size_rounded_up, long use_cards);
+object_t *_stm_allocate_old(ssize_t size_rounded_up);
 char *_stm_real_address(object_t *o);
 #ifdef STM_TESTS
 #include <stdbool.h>
diff --git a/c7/test/support.py b/c7/test/support.py
--- a/c7/test/support.py
+++ b/c7/test/support.py
@@ -40,7 +40,7 @@
 /*void stm_write(object_t *obj); use _checked_stm_write() instead */
 object_t *stm_allocate(ssize_t size_rounded_up);
 object_t *stm_allocate_weakref(ssize_t size_rounded_up);
-object_t *_stm_allocate_old(ssize_t size_rounded_up, long use_cards);
+object_t *_stm_allocate_old(ssize_t size_rounded_up);
 
 /*void stm_write_card(); use _checked_stm_write_card() instead */
 
@@ -386,13 +386,13 @@
     return lib.stm_can_move(o)
 
 def stm_allocate_old(size):
-    o = lib._stm_allocate_old(size, False)
+    o = lib._stm_allocate_old(size)
     tid = 42 + size
     lib._set_type_id(o, tid)
     return o
 
 def stm_allocate_old_refs(n):
-    o = lib._stm_allocate_old(HDR + n * WORD, True)
+    o = lib._stm_allocate_old(HDR + n * WORD)
     tid = 421420 + n
     lib._set_type_id(o, tid)
     return o
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to