Skip to content

Commit e7c8015

Browse files
committed
Use Primitive.interop_execute instead of .call in posix.rb
* Avoids an extra 2 calls. * Avoids a IndirectCallNode because CachedCallSignatureNode does not ReportPolymorphism yet (will be fixed).
1 parent dc120e7 commit e7c8015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ruby/truffleruby/core/posix.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def self.attach_function_eagerly(native_name, argument_types, return_type,
140140
result = Primitive.thread_run_blocking_nfi_system_call(bound_func, args)
141141
end while Primitive.is_a?(result, Integer) and result == -1 and Errno.errno == EINTR
142142
else
143-
result = bound_func.call(*args)
143+
result = Primitive.interop_execute(bound_func, args)
144144
end
145145

146146
if return_type == :string

0 commit comments

Comments
 (0)