[pypy-commit] pypy fast-gil: Fix typos
arigo
noreply at buildbot.pypy.org
Tue Jun 24 15:42:04 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch: fast-gil
Changeset: r72188:a8a8d8d6c823
Date: 2014-06-24 13:55 +0200
http://bitbucket.org/pypy/pypy/changeset/a8a8d8d6c823/
Log: Fix typos
diff --git a/rpython/jit/backend/llsupport/assembler.py b/rpython/jit/backend/llsupport/assembler.py
--- a/rpython/jit/backend/llsupport/assembler.py
+++ b/rpython/jit/backend/llsupport/assembler.py
@@ -310,7 +310,7 @@
# Before doing an external call, 'rpy_fastgil' is initialized to
# be equal to css. This function is called if we find out after
# the call that it is no longer equal to css. See description
- # in transator/c/src/thread_pthread.c.
+ # in translator/c/src/thread_pthread.c.
if old_rpy_fastgil == 0:
# this case occurs if some other thread stole the GIL but
diff --git a/rpython/rtyper/lltypesystem/rffi.py b/rpython/rtyper/lltypesystem/rffi.py
--- a/rpython/rtyper/lltypesystem/rffi.py
+++ b/rpython/rtyper/lltypesystem/rffi.py
@@ -154,11 +154,13 @@
argnames = ', '.join(['a%d' % i for i in range(len(args))])
source = py.code.Source("""
- def call_external_function(%(argnames)s):
- aroundstate.before()
+ def call_external_function(%(argnames)s)e
+ before = aroundstate.before
+ if before: before()
# NB. it is essential that no exception checking occurs here!
res = funcptr(%(argnames)s)
- aroundstate.after()
+ after = aroundstate.after
+ if after: after()
return res
""" % locals())
miniglobals = {'aroundstate': aroundstate,
@@ -293,7 +295,7 @@
aroundstate.leave_callback()
# here we don't hold the GIL any more. As in the wrapper() produced
# by llexternal, it is essential that no exception checking occurs
- # after the call to leave_calback().
+ # after the call to leave_callback().
return result
""" % locals())
miniglobals = locals().copy()
More information about the pypy-commit
mailing list