vstinner
changed the title
Fix some inefficient call API usage
bpo-29548: Fix some inefficient call API usage
Closed
akruis pushed a commit to akruis/cpython that referenced this pull request
This change removes the "static" declaration from the function slp_switch(). This forces the compiler to adhere to the ABI specification. On i386 and amd64 it is now save to configure stackless with --enable-stacklessfewerregisters, except if you compile for darwin. The flag disables explicit saving of %ebp/%rbp. On Unix-like systems the source file slp_transfer.c now gets compiled with the additional flag -fno-inline-functions instead of -O2. https://bitbucket.org/stackless-dev/stackless/issues/98 (grafted from 4f7698499ad53e5fad61fb415fbfe2c036672a9c)
akruis pushed a commit to akruis/cpython that referenced this pull request
colesbury referenced this pull request in colesbury/nogil
This replaces the array of qbsr threads with a stack, which allows us to get rid of the stop-the-world call. There was an initialization order bug: registering a new qsbr thread might stop-the-world, but stopping the world requires the thread to already be attached! This will probably make the qsbr scan even slower, but we can improve that in the future. Fixes #97
Closed
Closed
Closed
This was referenced
Open
Closed
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters