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

Fix source of non-deterministic cython output for try/finally statements #2779

Merged
merged 1 commit into from
Jan 2, 2019

Conversation

MedeaMelana
Copy link

Hi,

I'm trying to get reproducible builds for my project and found a source of indeterminism in cython.
The __PYX_XDEC_MEMVIEW statements generated for try/finally statements varied per build if there were multiple types of variables to be cleaned up.

This patch sorts the list of free variables before returning it, making this bit of the codegen deterministic.

…nts.

The __PYX_XDEC_MEMVIEW statements generated for try/finally statements
varied per build if there were multiple types of variables to be cleaned
up.
@scoder
Copy link
Contributor

scoder commented Jan 2, 2019

Looks good. Thanks!

@scoder scoder added this to the 0.29.3 milestone Jan 2, 2019
@scoder scoder merged commit 1b2ab01 into cython:master Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants