Hi Jason,
Following up on our private email thread, opening this as a
public pointer to help orient the fix location.
The relevant files are:
src/greenlet/TThreadStateDestroy.cpp - MarkGreenletDeadIfNeeded()
src/greenlet/TUserGreenlet.cpp - g_switch(), check_switch_allowed()
src/greenlet/TGreenlet.hpp - MainGreenlet class fields
Fix direction and full details in the private email thread.
Happy to clarify anything here or privately.
Nitay.