Armin Rigo <[email protected]> added the comment:

It seems that 40390dcf161a ("in-progress") is actually enough to fix the
segfault.  At least I no longer get it, apparently.

The remaining issue is because the JIT compiles a tiny loop, so it thinks it
will run very fast and sets a very high limit on the loop counter before
releasing the GIL -- by default, up to one million.  Apparently, one million
calls to os.getlogin() takes forever.  To fix this we could use a different
approach like checking the timestamp instead (we already have a ResOp for that,
for profiling).

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1453>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to