[pypy-commit] pypy rgc-mem-pressure: add memory pressure with a more fixed size for testing

justinpeel noreply at buildbot.pypy.org
Mon Oct 17 04:25:07 CEST 2011


Author: Justin Peel <notmuchtotell at gmail.com>
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):


More information about the pypy-commit mailing list