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>
@ -253,6 +253,11 @@ module RubyVM::MJIT # :nodoc: all
|
|||||||
[value.to_i].pack(Fiddle::PackInfo::PACK_MAP[Fiddle::TYPE_VOIDP])
|
[value.to_i].pack(Fiddle::PackInfo::PACK_MAP[Fiddle::TYPE_VOIDP])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Get a raw address
|
||||||
|
def to_i
|
||||||
|
@addr
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def dest_addr
|
def dest_addr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user