← Graph

DescendantsTracker

concept 2 connections

ActiveSupport::DescendantsTracker is mixed into every class in a Rails app and stores, in a class-level class-variable hash, every class and what it inherits from. Side effect: classes referenced there are never garbage collected by Ruby, so anonymous or dynamically created classes live on indefinitely — presented in the talk's epilogue as an example of framework-level retention developers should be aware of.

category
architecture
about
DescendantsTracker concept
Epilogue highlights ActiveSupport::DescendantsTracker as a framework cause of classes never being GC'd.
concept DescendantsTracker
related_to
ActiveSupport module shipped with Rails.

Provenance

Read by
3 extractions