mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
Expose the address of MJIT Pointers (#7446)
This way we can manually dereference pointers with Fiddle
This commit is contained in:
parent
1b4c1492c1
commit
fc5482d088
Notes:
git
2023-03-05 21:00:59 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
1 changed files with 5 additions and 0 deletions
|
@ -253,6 +253,11 @@ module RubyVM::MJIT # :nodoc: all
|
|||
[value.to_i].pack(Fiddle::PackInfo::PACK_MAP[Fiddle::TYPE_VOIDP])
|
||||
end
|
||||
|
||||
# Get a raw address
|
||||
def to_i
|
||||
@addr
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def dest_addr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue