Skip to content

Commit 7a50aae

Browse files
committed
It seems rb_funcallv() does not need to look at the __C_BLOCK__
1 parent 1e3e006 commit 7a50aae

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/truffle/truffle/cext.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -874,14 +874,7 @@ def rb_funcallv_public(recv, meth, argv)
874874
end
875875

876876
def rb_funcallv(recv, meth, argv)
877-
# see #call_with_thread_locally_stored_block
878-
thread_local_block = Thread.current[:__C_BLOCK__]
879-
Thread.current[:__C_BLOCK__] = nil
880-
begin
881-
Primitive.send_argv_without_cext_lock(recv, meth, argv, thread_local_block)
882-
ensure
883-
Thread.current[:__C_BLOCK__] = thread_local_block
884-
end
877+
Primitive.send_argv_without_cext_lock(recv, meth, argv, nil)
885878
end
886879

887880
def rb_funcall(recv, meth, n, *args)

0 commit comments

Comments
 (0)