Project

General

Profile

Actions

Feature #19355

open

Add finer coarsed locking for searching callable method entries

Added by luke-gru (Luke Gruber) over 1 year ago. Updated over 1 year ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:111912]

Description

During multi-ractor mode, unfortunately when calling methods often there's a call to the internal cruby function callable_method_entry, which
returns a cached CME or a new one. In the case that it's cached, there's a VM lock around its access that could be reduced to a lock
pertaining to the class of the caller of the method. This reduces locking in multi-ractor mode and allows, for example, object allocation to happen
at the same time as method calls.

Actions

Also available in: Atom PDF

Like0
Like0