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

Remove thread-unsafe and unused late_added_files. #49683

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

lyuma
Copy link
Contributor

@lyuma lyuma commented Jun 17, 2021

_reimport_file is called from multiple threads as part of the threaded importer.
Inserting to this set from a thread could hit a race condition leading to memory corruption or hangs.
It seems to be unused, intentionally or unintentionally

Addresses one of the causes of #49324 (comment)

See also here: #47343 (comment)

The unused set that caused the crash was added in bd282ff
CC @reduz

_reimport_file is called from multiple threads as part of the threaded importer.
Inserting to this set from a thread could hit a race condition leading to memory corruption or hangs.
It seems to be unused, intentionally or unintentionally
@qarmin
Copy link
Contributor

qarmin commented Jun 17, 2021

This was added in 33c1d25 not in bd282ff

@lyuma
Copy link
Contributor Author

lyuma commented Jun 18, 2021

Can I suggest that waiting for a review shouldn't be necessary?
In the present state of the code, late_added_files is clearly unused -- this can be verified with grep...

@akien-mga akien-mga merged commit 98b5280 into godotengine:master Jun 18, 2021
@akien-mga
Copy link
Member

Thanks!

@lyuma lyuma deleted the remove_late_added branch May 19, 2023 10:45
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.

None yet

3 participants