[pypy-commit] pypy default: comment explaining the problem
cfbolz
pypy.commits at gmail.com
Sun Dec 2 08:24:06 EST 2018
Author: Carl Friedrich Bolz-Tereick <cfbolz at 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
More information about the pypy-commit
mailing list