From 97e39d6b88795bf3c8c8eea6ef20abf872bbaa49 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Wed, 30 Oct 2024 20:32:43 -0500 Subject: [PATCH] Flip-flops work now, don't reject AOT --- core/src/main/java/org/jruby/ir/Compiler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/jruby/ir/Compiler.java b/core/src/main/java/org/jruby/ir/Compiler.java index c4c858cc31d..3d93522f246 100644 --- a/core/src/main/java/org/jruby/ir/Compiler.java +++ b/core/src/main/java/org/jruby/ir/Compiler.java @@ -50,8 +50,8 @@ protected ScriptAndCode execute(final Ruby runtime, final IRScriptBody scope, Cl byte[] bytecode; // Check for eval in any scope, which isn't supported for AOT right now - if (scope.anyUsesEval() || scope.hasFlipFlops()) { - throw new NotCompilableException("AOT not supported for scripts containing eval or flip-flops."); + if (scope.anyUsesEval()) { + throw new NotCompilableException("AOT not supported for scripts containing eval."); } boolean cacheClasses = Options.COMPILE_CACHE_CLASSES.load();