[pypy-commit] pypy stm-gc: Reverse the order to avoid unexpected effects if someone calls

arigo noreply at buildbot.pypy.org
Mon Apr 30 11:57:23 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r54818:948dfd155f01
Date: 2012-04-30 10:52 +0200
http://bitbucket.org/pypy/pypy/changeset/948dfd155f01/

Log:	Reverse the order to avoid unexpected effects if someone calls the
	constructor without keyword args.

diff --git a/pypy/rpython/memory/gc/base.py b/pypy/rpython/memory/gc/base.py
--- a/pypy/rpython/memory/gc/base.py
+++ b/pypy/rpython/memory/gc/base.py
@@ -22,7 +22,7 @@
     gcflag_extra = 0   # or a real GC flag that is always 0 when not collecting
 
     def __init__(self, config, chunk_size=DEFAULT_CHUNK_SIZE,
-                 multithread=False, translated_to_c=True):
+                 translated_to_c=True, multithread=False):
         self.gcheaderbuilder = GCHeaderBuilder(self.HDR)
         self.AddressStack = get_address_stack(chunk_size, multithread)
         self.AddressDeque = get_address_deque(chunk_size, multithread)


More information about the pypy-commit mailing list