We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff0fe7b commit 764a777Copy full SHA for 764a777
lib/truffle/truffle/cext.rb
@@ -1451,7 +1451,7 @@ def data_finalizer(free, data_holder)
1451
# In a separate method to avoid capturing the object
1452
raise unless free.respond_to?(:call)
1453
proc {
1454
- execute_with_mutex(free, data_holder.data)
+ execute_with_mutex(free, data_holder.data) unless data_holder.data.nil?
1455
}
1456
end
1457
@@ -1460,7 +1460,7 @@ def data_marker(mark, data_holder)
1460
raise unless mark.respond_to?(:call)
1461
proc { |obj|
1462
create_mark_list
1463
- execute_with_mutex(mark, data_holder.data)
+ execute_with_mutex(mark, data_holder.data) unless data_holder.data.nil?
1464
set_mark_list_on_object(obj)
1465
1466
0 commit comments