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 lazy initialization of modules #2046

Merged
merged 3 commits into from
May 29, 2024
Merged

Conversation

jatcwang
Copy link
Collaborator

@jatcwang jatcwang commented May 27, 2024

This would ocassionally cause deadlocks which is hard to debug. Fixes #1369.

Inside doobie itself we cannot use aliases like doobie.free.FC because it'll lead to cyclic dependencies during class loading. Therefore this PR switches all existing alias use to an import alias to e.g. doobie.free.{connection => IFC} (I stands for internal)

This would ocassionally cause deadlocks which is hard to debug. Fixes #1369
@jatcwang jatcwang force-pushed the remove_lazy_init_modules branch from b0299d1 to f796616 Compare May 27, 2024 19:37
@jatcwang jatcwang merged commit 9b6a5dd into main May 29, 2024
12 checks passed
@jatcwang jatcwang deleted the remove_lazy_init_modules branch May 29, 2024 09:18
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.

Race conditions in lazy initialization of aliases
1 participant