Skip to content

Fix TSRM ignoring done #7625

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

Closed
wants to merge 1 commit into from
Closed

Conversation

krakjoe
Copy link
Member

@krakjoe krakjoe commented Nov 5, 2021

I guess a bug will appear for this, reported in r11.

@krakjoe krakjoe added the Bug label Nov 5, 2021
@krakjoe krakjoe marked this pull request as draft November 5, 2021 13:08
@krakjoe
Copy link
Member Author

krakjoe commented Nov 5, 2021

This does correct a couple of inconsistencies in code, and one potential error, but doesn't fix the bug reported because the bug seemed to be caused by misuse.

Namely, mixing INIT_MODULE_GLOBALS in a module that uses globals at the module structure level seem incompatible, that results in the allocation of two distinct sets of globals which is probably not the intention. It doesn't look easy to detect this mistake.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

I'm fine with this. Even if it doesn't fix mentioned bug, it makes sense on its own.

Comment on lines +191 to +192
if (resource_types_table) {
if (!resource_types_table[j].done) {
Copy link
Member

Choose a reason for hiding this comment

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

Might combine these into a single if clause.

@krakjoe krakjoe marked this pull request as ready for review January 11, 2022 02:50
@krakjoe
Copy link
Member Author

krakjoe commented Jan 11, 2022

Merged as d7db5f6

Thanks.

@krakjoe krakjoe closed this Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants