-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[sre] Use MonoClass getters in sre-save.c #7352
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
Conversation
|
Probably because type tokes are recomputed since some tables need to be sorted or something. |
|
@vargaz so I'm going to argue that that assignment is redundant, let's see if you believe me:
Which is, I think, the same exact value that I left a |
kumpera
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. That assignment is odd but I don't think a g_warning will provide us enough visibility into possible issues.
mono/metadata/sre-save.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe PR/locally tests this with a g_error instead and see if anything pops up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make it a g_error () instead.
…al value It's not clear to me how we could ever have a class without a type_token set even with a TypeBuilder.
We think this case should not happen.
1e8a073 to
1bd77d9
Compare
|
Changed the |
|
@slide This may affect IronPython (and the DLR in general). Specifically mono may now crash with a message |
|
@monojenkins build pkg |
|
@monojenkins build deb |
|
@monojenkins build Linux ARMv7 Interpreter |
|
Where do the binary packages get saved? |
|
@slide the packages from this PR are at Also the Mono nightly packages since March 5 will include these changes. Update: fixed the linux links |
* [sre-save] Emit a warning if overwriting a MonoClass token with unequal value It's not clear to me how we could ever have a class without a type_token set even with a TypeBuilder. * [sre-save] Use MonoClass getters in sre-save.c * [sre-save] Change g_warning to g_error in mono_image_fill_export_table We think this case should not happen. Commit migrated from mono/mono@9725d50
Mostly mechanical.
There was ONE ISSUE:
In
mono_image_fill_export_tablethere's an assignment totype_token:mono/mono/metadata/sre-save.c
Lines 1260 to 1274 in ddf4e7b
I don't understand why that's there - Wouldn't the type token already be computed for every type builder by now? Why is it okay to change it?
/attn @vargaz
#6925