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

Fiz Zeitwerk reloading #795

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Fiz Zeitwerk reloading #795

merged 1 commit into from
Oct 2, 2024

Conversation

joeldrapper
Copy link
Collaborator

No description provided.

@@ -52,6 +52,8 @@ def const_added(name)
if Class === constant && constant < Phlex::SGML
constant.include(self)

constant = nil
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need the old constant to be GC’d here and not referenced by the closures below.

@joeldrapper joeldrapper force-pushed the fix-zeitwerk-reloading branch from 62e9211 to 9038508 Compare October 1, 2024 23:05
@joeldrapper joeldrapper marked this pull request as ready for review October 2, 2024 09:48
@joeldrapper joeldrapper merged commit 623bbcc into main Oct 2, 2024
10 checks passed
@joeldrapper joeldrapper deleted the fix-zeitwerk-reloading branch October 2, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant