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 #22 by reinitializing our pre-allocated BigInts in the __init__ f… #23

Merged
merged 1 commit into from
Mar 18, 2019

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Mar 18, 2019

…unction. This caused issues when Parsers.jl was included in the sysimg compilation (via PackageCompiler).

@omus, could you test that this fixes #22 for your case? I don't see an easy way to test this out via normal runtests.jl.

…unction. This caused issues when Parsers.jl was included in the sysimg compilation (via PackageCompiler).
@@ -18,10 +18,15 @@ function __init__()
end
Threads.resize_nthreads!(STRINGBUFFERS)
Threads.resize_nthreads!(ONES)
foreach(x->MPZ.init!(x), ONES)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just make this foreach(MPZ.init!, ONES), likewise for all of the others.

@omus
Copy link
Member

omus commented Mar 18, 2019

... could you test that this fixes #22 for your case?

Will do

@omus
Copy link
Member

omus commented Mar 18, 2019

@quinnj these changes do fix #22

@quinnj quinnj merged commit 9371c48 into master Mar 18, 2019
@quinnj quinnj deleted the jq/fixpreallocated branch March 18, 2019 20:49
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.

realloc(): invalid pointer
3 participants