Author: Justin Peel <[email protected]>
Branch: rgc-mem-pressure
Changeset: r48105:dca685fec278
Date: 2011-10-16 20:24 -0600
http://bitbucket.org/pypy/pypy/changeset/dca685fec278/
Log: add memory pressure with a more fixed size for testing
diff --git a/pypy/module/_hashlib/interp_hashlib.py
b/pypy/module/_hashlib/interp_hashlib.py
--- a/pypy/module/_hashlib/interp_hashlib.py
+++ b/pypy/module/_hashlib/interp_hashlib.py
@@ -29,9 +29,7 @@
space.wrap("unknown hash function"))
ctx = lltype.malloc(ropenssl.EVP_MD_CTX.TO, flavor='raw')
ropenssl.EVP_DigestInit(ctx, digest)
- rgc.add_memory_pressure(ropenssl.EVP_MD_CTX.TO.hints['getsize']() +
- ropenssl.EVP_MD.TO.hints['getsize']() +
- self._digest_size())
+ rgc.add_memory_pressure(184 + self._digest_size())
self.ctx = ctx
def __del__(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit