Staging
v0.5.1
https://github.com/python/cpython
Revision 5a3a71dddbe80edc75a3a74ce3b7978cf8635901 authored by Victor Stinner on 19 March 2020, 16:40:12 UTC, committed by GitHub on 19 March 2020, 16:40:12 UTC
If a thread different than the main thread gets a signal, the
bytecode evaluation loop is no longer interrupted at each bytecode
instruction to check for pending signals which cannot be handled.
Only the main thread of the main interpreter can handle signals.

Previously, the bytecode evaluation loop was interrupted at each
instruction until the main thread handles signals.

Changes:

* COMPUTE_EVAL_BREAKER() and SIGNAL_PENDING_SIGNALS() no longer set
  eval_breaker to 1 if the current thread cannot handle signals.
* take_gil() now always recomputes eval_breaker.
1 parent 77248a2
History
Tip revision: 5a3a71dddbe80edc75a3a74ce3b7978cf8635901 authored by Victor Stinner on 19 March 2020, 16:40:12 UTC
bpo-40010: Optimize signal handling in multithreaded applications (GH-19067)
Tip revision: 5a3a71d
File Mode Size
clinic
stringlib
README -rw-r--r-- 41 bytes
abstract.c -rw-r--r-- 70.3 KB
accu.c -rw-r--r-- 2.4 KB
boolobject.c -rw-r--r-- 6.6 KB
bytearrayobject.c -rw-r--r-- 70.1 KB
bytes_methods.c -rw-r--r-- 21.2 KB
bytesobject.c -rw-r--r-- 97.3 KB
call.c -rw-r--r-- 28.8 KB
capsule.c -rw-r--r-- 7.3 KB
cellobject.c -rw-r--r-- 5.7 KB
classobject.c -rw-r--r-- 18.0 KB
codeobject.c -rw-r--r-- 34.8 KB
complexobject.c -rw-r--r-- 31.6 KB
descrobject.c -rw-r--r-- 59.1 KB
dict-common.h -rw-r--r-- 2.2 KB
dictnotes.txt -rw-r--r-- 6.0 KB
dictobject.c -rw-r--r-- 140.7 KB
enumobject.c -rw-r--r-- 13.4 KB
exceptions.c -rw-r--r-- 87.2 KB
fileobject.c -rw-r--r-- 16.8 KB
floatobject.c -rw-r--r-- 70.6 KB
frameobject.c -rw-r--r-- 36.8 KB
funcobject.c -rw-r--r-- 31.0 KB
genobject.c -rw-r--r-- 66.2 KB
interpreteridobject.c -rw-r--r-- 8.5 KB
iterobject.c -rw-r--r-- 9.2 KB
listobject.c -rw-r--r-- 97.5 KB
listsort.txt -rw-r--r-- 35.3 KB
lnotab_notes.txt -rw-r--r-- 5.9 KB
longobject.c -rw-r--r-- 173.5 KB
memoryobject.c -rw-r--r-- 91.7 KB
methodobject.c -rw-r--r-- 14.5 KB
moduleobject.c -rw-r--r-- 24.8 KB
namespaceobject.c -rw-r--r-- 7.4 KB
object.c -rw-r--r-- 60.6 KB
obmalloc.c -rw-r--r-- 88.0 KB
odictobject.c -rw-r--r-- 73.6 KB
picklebufobject.c -rw-r--r-- 6.0 KB
rangeobject.c -rw-r--r-- 35.5 KB
setobject.c -rw-r--r-- 75.0 KB
sliceobject.c -rw-r--r-- 19.1 KB
structseq.c -rw-r--r-- 14.7 KB
tupleobject.c -rw-r--r-- 31.4 KB
typeobject.c -rw-r--r-- 248.7 KB
typeslots.inc -rw-r--r-- 3.9 KB
typeslots.py -rwxr-xr-x 1.2 KB
unicodectype.c -rw-r--r-- 7.5 KB
unicodeobject.c -rw-r--r-- 463.6 KB
unicodetype_db.h -rw-r--r-- 249.6 KB
weakrefobject.c -rw-r--r-- 30.9 KB

README

back to top