summaryrefslogtreecommitdiff
path: root/array.rb
diff options
context:
space:
mode:
authorMax Bernstein <ruby@bernsteinbear.com>2026-02-06 15:50:56 -0500
committerMax Bernstein <tekknolagi@gmail.com>2026-02-09 19:28:04 -0500
commitf43d294d58f96227b33b491fcbd347dd605d3c67 (patch)
tree4bc419a049f43d2e641a171947e150a1196eb177 /array.rb
parent836c1700104c305fa13cbc7b17d114705dd807b2 (diff)
Add without_interrupts primitive attribute to skip interrupt checks
Diffstat (limited to 'array.rb')
-rw-r--r--array.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/array.rb b/array.rb
index f45e6a0d5e..4fee5ecaeb 100644
--- a/array.rb
+++ b/array.rb
@@ -217,7 +217,7 @@ class Array
undef :each
def each # :nodoc:
- Primitive.attr! :inline_block, :c_trace
+ Primitive.attr! :inline_block, :c_trace, :without_interrupts
unless defined?(yield)
return Primitive.cexpr! 'SIZED_ENUMERATOR(self, 0, 0, ary_enum_length)'
@@ -235,7 +235,7 @@ class Array
undef :map
def map # :nodoc:
- Primitive.attr! :inline_block, :c_trace
+ Primitive.attr! :inline_block, :c_trace, :without_interrupts
unless defined?(yield)
return Primitive.cexpr! 'SIZED_ENUMERATOR(self, 0, 0, ary_enum_length)'
@@ -261,7 +261,7 @@ class Array
undef :select
def select # :nodoc:
- Primitive.attr! :inline_block, :c_trace
+ Primitive.attr! :inline_block, :c_trace, :without_interrupts
unless defined?(yield)
return Primitive.cexpr! 'SIZED_ENUMERATOR(self, 0, 0, ary_enum_length)'
@@ -288,7 +288,7 @@ class Array
undef :find
def find(if_none_proc = nil) # :nodoc:
- Primitive.attr! :inline_block, :c_trace
+ Primitive.attr! :inline_block, :c_trace, :without_interrupts
unless defined?(yield)
return Primitive.cexpr! 'SIZED_ENUMERATOR(self, 0, 0, ary_enum_length)'