Author: Gregor Wegberg <[email protected]>
Branch: gc-incminimark-pinning-improve
Changeset: r76532:85a6845a0bde
Date: 2015-03-23 16:24 +0100
http://bitbucket.org/pypy/pypy/changeset/85a6845a0bde/
Log: make variable names a bit more distinct
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
@@ -464,15 +464,15 @@
self.nursery_size = newsize
self.allocate_nursery()
#
- max_number_of_pinned_objects = os.environ.get('PYPY_GC_MAX_PINNED')
- if max_number_of_pinned_objects:
+ env_max_number_of_pinned_objects = os.environ.get('PYPY_GC_MAX_PINNED')
+ if env_max_number_of_pinned_objects:
try:
- max_number_of_pinned_objects =
int(max_number_of_pinned_objects)
+ env_max_number_of_pinned_objects =
int(env_max_number_of_pinned_objects)
except ValueError:
- max_number_of_pinned_objects = 0
+ env_max_number_of_pinned_objects = 0
#
- if max_number_of_pinned_objects >= 0: # 0 allows to disable
pinning completely
- self.max_number_of_pinned_objects =
max_number_of_pinned_objects
+ if env_max_number_of_pinned_objects >= 0: # 0 allows to disable
pinning completely
+ self.max_number_of_pinned_objects =
env_max_number_of_pinned_objects
else:
# Estimate this number conservatively
bigobj = self.nonlarge_max + 1
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit