Project

General

Profile

Feature #3905

rb_clear_cache_by_class() called often during GC for non-blocking I/O

Added by normalperson (Eric Wong) almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
[ruby-core:32689]

Description

=begin
This still causes performance problems with frequent EAGAIN compared to 1.9.1

While akr fixed extend to no longer clear cache with empty modules in r28813,
the GC phase still scans and clears the cache when the extended object is
collected.

ref: [ruby-core:32507], [ruby-core:32508]

A proposed patch to add memoizing of extended objects with
IO::Wait{Read,Writ}able is attached. Comments/feedback appreciated.
=end


Files

0001-error.c-rb_mod_sys_fail-use-subclass-and-cache.patch (2 KB) 0001-error.c-rb_mod_sys_fail-use-subclass-and-cache.patch normalperson (Eric Wong), 10/05/2010 06:56 AM
full-ephemeral-class.diff (2.29 KB) full-ephemeral-class.diff full diff normalperson (Eric Wong), 05/18/2011 02:59 AM

Related issues

Related to Ruby master - Bug #4289: Timeouts in threads cause SEGVClosedakr (Akira Tanaka)01/18/2011Actions

Also available in: Atom PDF