[pypy-commit] pypy default: Mark this function as threadsafe=True so it doesn't release the GIL, it's very fast.

alex_gaynor noreply at buildbot.pypy.org
Thu May 23 00:39:15 CEST 2013


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r64491:3e52ecf916b2
Date: 2013-05-22 15:38 -0700
http://bitbucket.org/pypy/pypy/changeset/3e52ecf916b2/

Log:	Mark this function as threadsafe=True so it doesn't release the GIL,
	it's very fast.

diff --git a/rpython/rtyper/module/ll_os.py b/rpython/rtyper/module/ll_os.py
--- a/rpython/rtyper/module/ll_os.py
+++ b/rpython/rtyper/module/ll_os.py
@@ -682,7 +682,7 @@
 
     @registering_if(os, 'getpid')
     def register_os_getpid(self):
-        return self.extdef_for_os_function_returning_int('getpid')
+        return self.extdef_for_os_function_returning_int('getpid', threadsafe=False)
 
     @registering_if(os, 'getgid')
     def register_os_getgid(self):


More information about the pypy-commit mailing list