From f205948d6a18a4c9ba7f597c02c8dae02f1e3335 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 21 Jul 2023 01:55:04 +0200 Subject: [PATCH] test: use --max-opt=0 instead of --no-opt test-linux-perf.js --no-opt only disables turbofan but other compilers may still be enabled, in that case we may not be able to find the interpreted frames if the function is compiled soon enough. Instead use --max-opt=0 which turns off all compilers. --- test/v8-updates/test-linux-perf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/v8-updates/test-linux-perf.js b/test/v8-updates/test-linux-perf.js index c52bffeef2618f..4b8746faf7d618 100644 --- a/test/v8-updates/test-linux-perf.js +++ b/test/v8-updates/test-linux-perf.js @@ -50,7 +50,7 @@ const perfInterpretedFramesArgs = [ '--', process.execPath, ...nodeCommonFlags, - '--no-opt', + '--max-opt=0', // Interpreter only. fixtures.path('linux-perf.js'), `${sleepTime}`, `${repeat}`,