Project

General

Profile

Actions

Feature #3905

closed

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

Added by normalperson (Eric Wong) about 14 years ago. Updated over 13 years ago.

Status:
Closed
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 1 (0 open1 closed)

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0