forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stackless issue python#92: GC fixes, cstate fixes and parameter tests
tasklet.bind() an tasklet.bind_thread() now correctly use the nesting level to test for C-state. Additionally I renamed the static method tasklet_has_c_stack() to tasklet_has_c_stack_and_thread(). The test in tasklet_has_c_stack() was not correct, if the tasklet was the current tasklet of its thread. (GC indirectly calls this method for all tasklets from arbitrary threads.) Additional related changes: - This commit changes an assertion to allow deallocation of tasklets with a non zero C-stack but no tstate. - The commit adds a warning message about deallocation tasklets with non zero C-stack, if Py_VerboseFlag is non zero. - On deallocation of a tasklet, zero the "task" pointer of its cstate. The commit adds a test case for tasklet.bind() and tasklet.bind_thread() on a tasklet, that has C-state but no thread-state. https://bitbucket.org/stackless-dev/stackless/issues/92 (grafted from 7c71dffe45072a070aa59d9c97b593d89d0be18e, b79ce9e731a5, 2a10937f0ab9, a5c487b3bd51, b171a8b3ee7d and b45e6e4786f9)
- Loading branch information
Anselm Kruis
committed
Nov 6, 2016
1 parent
bd230a6
commit 62a1d10
Showing
6 changed files
with
94 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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