Author: Ronan Lamy <[email protected]>
Branch: fix-broken-types
Changeset: r88564:fede6b49acc1
Date: 2016-11-23 02:55 +0000
http://bitbucket.org/pypy/pypy/changeset/fede6b49acc1/
Log: fix gc.min_heap_size
diff --git a/rpython/memory/gc/incminimark.py b/rpython/memory/gc/incminimark.py
--- a/rpython/memory/gc/incminimark.py
+++ b/rpython/memory/gc/incminimark.py
@@ -465,7 +465,7 @@
self.min_heap_size = float(min_heap_size)
else:
# defaults to 8 times the nursery
- self.min_heap_size = newsize * 8
+ self.min_heap_size = float(newsize) * 8
#
max_heap_size = env.read_uint_from_env('PYPY_GC_MAX')
if max_heap_size > 0:
@@ -798,7 +798,7 @@
# nursery. "Next area" in this case is the space between the
# pinned object in front of nusery_top and the pinned object
# after that. Graphically explained:
- #
+ #
# |- allocating totalsize failed in this area
# | |- nursery_top
# | | |- pinned object in front of nursery_top,
diff --git a/rpython/memory/gc/minimark.py b/rpython/memory/gc/minimark.py
--- a/rpython/memory/gc/minimark.py
+++ b/rpython/memory/gc/minimark.py
@@ -385,7 +385,7 @@
self.min_heap_size = float(min_heap_size)
else:
# defaults to 8 times the nursery
- self.min_heap_size = newsize * 8
+ self.min_heap_size = float(newsize) * 8
#
max_heap_size = env.read_uint_from_env('PYPY_GC_MAX')
if max_heap_size > 0:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit