Project

General

Profile

This project is closed and read-only.

Actions

Backport #8502

closed

Backport r41175

Backport #8502: Backport r41175

Added by Anonymous over 13 years ago. Updated over 13 years ago.


Description

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

This can cause constant lookups to be incorrectly cached.


Related issues 1 (0 open — 1 closed)

Has duplicate Backport200 - Backport #8504: backport r41175 (clear inline cache when included Module has constants)Closednagachika (Tomoyuki Chikanaga)Actions

Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago Actions #1 [ruby-core:55379]

  • Status changed from Open to Assigned

Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago Actions #2

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

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


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

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

* test/ruby/test_module.rb: add test
Actions

Also available in: PDF Atom