bpo-33955: Support USE_STACKCHECK on macOS#8046
bpo-33955: Support USE_STACKCHECK on macOS#8046corona10 wants to merge 7 commits into
Conversation
ronaldoussoren
left a comment
There was a problem hiding this comment.
The basic patch looks ok. Please add a test that demonstrates that the new code works. For example by setting the recursion limit to a too high value and check that this doesn't crash the interpreter (there may be a test for this that's only enabled for windows at the moment).
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
Thank you for a quick review. |
148001b to
4be8d33
Compare
|
https://github.com/python/cpython/blob/master/Lib/test/crashers/recursive_call.py As far as I know, a unit test for USE_STACKCHECK is only /Lib/test/crashers/recursive_call.py. |
|
@ronaldoussoren I added a logic for estimating a new stack space by using the stack space that was just needed. |
b5e933f to
138eba1
Compare
ada28bf to
181fa6e
Compare
d1919f5 to
131dfee
Compare
|
Thank you for the kind review and thank you for the guide about how to use ThreadState.
|
|
|
|
@vstinner Thanks for understanding. |
vstinner
left a comment
There was a problem hiding this comment.
Honestly, I'm not super excited by the implementation. I'm not sure that it's correct. But I added a few comments.
There was a problem hiding this comment.
Do you know if it's implemented in pure userspace, or if it's a system call?
|
@vstinner I applied your review and some of the issues are under investigation. List
|
|
@corona10, is this still waiting changes or should it be moved back to code review? Thanks! |
|
@vstinner @ronaldoussoren Let's reopen this PR when we need this feature ;) |
https://bugs.python.org/issue33955