Project

General

Profile

Actions

Feature #21140

open

Add a method to get the address of certain JIT related functions

Added by tenderlovemaking (Aaron Patterson) 7 days ago. Updated 3 days ago.

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

Description

Feature #21116 extracted RJIT as a gem. But RJIT accesses certain internal functions which it cannot access as a gem. For example it used the rb_str_bytesize function, but this symbol is not exported, so we cannot access it (even from a C extension).

Instead of exporting these symbols, I would like to propose an API for getting access to their addresses in Ruby.

For example

RubyVM::RJIT.address_of(:rb_str_bytesize) # => 123456

I would like to limit the addresses to this list which are the ones required by RJIT.


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #21116: Extract RJIT as a third-party gemClosedActions
Actions

Also available in: Atom PDF

Like1
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0