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 handling of MethodTable in precompile files #41277

Merged
merged 1 commit into from
Jun 19, 2021
Merged

fix handling of MethodTable in precompile files #41277

merged 1 commit into from
Jun 19, 2021

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Jun 18, 2021

This was not an external method table, it is just a normal variable
binding. This was causing the precompile files to be corrupted, since we
use normal variables that look like this one at

# Get at the nonfunction_mt, which happens to be the mt of SimpleVector
const nonfunction_mt = typename(SimpleVector).mt

Fixes #41156

This was not an external method table, it is just a normal variable
binding. This was causing the precompile files to be corrupted, since we
use normal variables that look like this one at
https://github.com/JuliaLang/julia/blob/dc2befcffc7412768097c2a2a6819724a4745aeb/base/compiler/utilities.jl#L139-L140

Fixes #41156
@vtjnash vtjnash added compiler:precompilation Precompilation of modules backport 1.7 labels Jun 18, 2021
@vtjnash vtjnash requested a review from Keno June 18, 2021 19:04
@vtjnash vtjnash merged commit e3197af into master Jun 19, 2021
@vtjnash vtjnash deleted the jn/41156 branch June 19, 2021 00:04
KristofferC pushed a commit that referenced this pull request Jun 26, 2021
This was not an external method table, it is just a normal variable
binding. This was causing the precompile files to be corrupted, since we
use normal variables that look like this one at
https://github.com/JuliaLang/julia/blob/dc2befcffc7412768097c2a2a6819724a4745aeb/base/compiler/utilities.jl#L139-L140

Fixes #41156

(cherry picked from commit e3197af)
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
This was not an external method table, it is just a normal variable
binding. This was causing the precompile files to be corrupted, since we
use normal variables that look like this one at
https://github.com/JuliaLang/julia/blob/dc2befcffc7412768097c2a2a6819724a4745aeb/base/compiler/utilities.jl#L139-L140

Fixes JuliaLang#41156
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:precompilation Precompilation of modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loading some functions from precompiled files seems broken
3 participants