Author: Carl Friedrich Bolz-Tereick <cfb...@gmx.de> Branch: Changeset: r95396:b787df64587c Date: 2018-12-02 14:23 +0100 http://bitbucket.org/pypy/pypy/changeset/b787df64587c/
Log: comment explaining the problem diff --git a/rpython/rlib/rtime.py b/rpython/rlib/rtime.py --- a/rpython/rlib/rtime.py +++ b/rpython/rlib/rtime.py @@ -136,6 +136,8 @@ void = lltype.nullptr(rffi.VOIDP.TO) result = -1.0 if HAVE_GETTIMEOFDAY: + # NB: can't use lltype.scoped_malloc, because that will allocate the + # with handler in the GC, but we want to use time.time from gc.collect! t = lltype.malloc(TIMEVAL, flavor='raw') try: errcode = -1 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit