Skip to content

Commit 3b87018

Browse files
committed
Exclude inline caching specs with --experimental-engine-caching as splitting does not work there yet
1 parent 6d62795 commit 3b87018

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/truffle/regexp/inline_caching_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010

1111
require_relative '../../ruby/spec_helper'
1212

13-
guard -> { TruffleRuby.jit? } do # this test needs splitting
13+
# This test requires splitting (--engine.Splitting) which is only available with the OptimizedTruffleRuntime.
14+
# It fails under --experimental-engine-caching because CallInternalMethodNode does not have cached specializations for
15+
# !isSingleContext() and so ends up using an IndirectCallNode which prevents splitting.
16+
guard -> { TruffleRuby.jit? && !Truffle::Boot.get_option('experimental-engine-caching') } do
1417
describe "Inline caching for dynamically-created Regexp works for" do
1518
before :each do
1619
@performance_warnings, Warning[:performance] = Warning[:performance], true

0 commit comments

Comments
 (0)