Actions
Bug #21343
openNamespace: singleton classes of root namespace leak between namespaces
Bug #21343:
Namespace: singleton classes of root namespace leak between namespaces
Description
Ruby classes all have singleton classes, those singleton classes have singleton classes, and so on with infinite nesting. Since we don't have infinite resources, we create these lazily.
Because of this, only a certain number of singleton classes exist in the root namespace. At a certain depth, mutable singleton classes end up shared between namespaces.
Updated by byroot (Jean Boussier) about 1 year ago
Seems adjacent to https://bugs.ruby-lang.org/issues/21330.
The klass field like the flags one isn't part of the classext_t, so it's not effectively namespaced.
Updated by hsbt (Hiroshi SHIBATA) about 1 year ago
- Tags set to namespace
Updated by tagomoris (Satoshi Tagomori) 7 months ago
- Assignee set to tagomoris (Satoshi Tagomori)
Actions