Backport #8503

Backport r41175

Added by Charlie Somerville 11 months ago. Updated 10 months ago.

[ruby-core:55374]
Status:Closed
Priority:Normal
Assignee:Usaku NAKAMURA

Description

r41175 fixes Module#include failing to increment rubyvmglobalstateversion when a module without any methods was included into a class.

This can cause constant lookups to be incorrectly cached.

Associated revisions

Revision 41645
Added by Usaku NAKAMURA 10 months ago

merge revision(s) 41175: [Backport #8503]

* class.c (include_modules_at): invalidate method cache if included
  module contains constants

* test/ruby/test_module.rb: add test

History

#1 Updated by Usaku NAKAMURA 10 months ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r41645.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 41175: [Backport #8503]

* class.c (include_modules_at): invalidate method cache if included
  module contains constants

* test/ruby/test_module.rb: add test

Also available in: Atom PDF