Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't hardcode interp_head offset #102

Merged
merged 1 commit into from
Mar 17, 2019
Merged

Don't hardcode interp_head offset #102

merged 1 commit into from
Mar 17, 2019

Conversation

benfred
Copy link
Owner

@benfred benfred commented Mar 17, 2019

For python 3.7, we were hardcoding the offset of the head interpreter
inside the _PyRuntimeState object. This was only valid for 64bit operating
systems, and on 32 bit systems caused warnings to be logged out.

Fix by generating bindings for the PyRuntimeState struct and use the
bindings to figure out the offset of the head interpreter.

For python 3.7, we were hardcoding the offset of the head interpreter
inside the _PyRuntimeState object. This was only valid for 64bit operating
systems, and on 32 bit systems caused warnings to be logged out.

Fix by generating bindings for the PyRuntimeState struct and use the
bindings to figure out the offset of the head interpreter.
@benfred benfred merged commit 435c20b into master Mar 17, 2019
@benfred benfred deleted the pyruntime branch March 17, 2019 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant