[pypy-commit] pypy stm-gc-2: Old checkin

arigo noreply at buildbot.pypy.org
Fri Jun 28 20:55:18 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc-2
Changeset: r65075:516680f7722a
Date: 2013-06-28 15:22 +0200
http://bitbucket.org/pypy/pypy/changeset/516680f7722a/

Log:	Old checkin

diff --git a/rpython/memory/gc/stmshared.py b/rpython/memory/gc/stmshared.py
--- a/rpython/memory/gc/stmshared.py
+++ b/rpython/memory/gc/stmshared.py
@@ -295,7 +295,7 @@
         some other data structure.  Note that it is not zero-filled."""
         nsize = llmemory.raw_malloc_usage(totalsize)
         if nsize <= self.sharedarea.small_request_threshold:
-            size_class = (nsize + WORD_POWER_2 - 1) >> WORD_POWER_2
+            size_class = (nsize + WORD - 1) >> WORD_POWER_2
             return self._malloc_size_class(size_class)
         else:
             count = llmemory.raw_malloc_usage(totalsize)


More information about the pypy-commit mailing list