diff --git a/test/mjsunit/maglev/osr-from-ml-to-tf.js b/test/mjsunit/maglev/osr-from-ml-to-tf.js index b3a1fcbefe..18c5927c08 100644 --- a/test/mjsunit/maglev/osr-from-ml-to-tf.js +++ b/test/mjsunit/maglev/osr-from-ml-to-tf.js @@ -4,6 +4,10 @@ // // Flags: --allow-natives-syntax --maglev --no-stress-opt // Flags: --no-baseline-batch-compilation --use-osr --turbofan +// +// Disable small-function TF optimization to avoid flakes that unexpectedly +// tier up `f` before we get a chance to enter the OSR loop. +// Flags: --max-bytecode-size-for-early-opt=0 let keep_going = 10000000; // A counter to avoid test hangs on failure. let i; // The loop counter for the test function.