Author: Armin Rigo <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit