Author: Armin Rigo <[email protected]>
Branch: py3.6
Changeset: r97275:6bb742c50a9f
Date: 2019-08-26 17:53 +0200
http://bitbucket.org/pypy/pypy/changeset/6bb742c50a9f/

Log:    With either the sandbox or the reverse-debugger, the hash used in
        pypy3 needs to be the old 'fnv' hash instead of 'siphash24'. Make it
        explicit in this way instead of ignoring the call to
        enable_siphash24() and reporting wrong data in module.sys.vm.

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -267,6 +267,9 @@
     if level == 'jit':
         pass # none at the moment
 
+    if config.translation.sandbox or config.translation.reverse_debugger:
+        config.objspace.hash = "fnv"
+
 
 def enable_allworkingmodules(config):
     modules = working_modules.copy()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to