From f4ead6336756d920f3dd9f2dfc59e4d77a4c75fb Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Wed, 31 Jul 2024 21:05:51 +0100 Subject: [PATCH] explicitly mark functions skipped for script optimization --- src/script_opt/ScriptOpt.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/script_opt/ScriptOpt.cc b/src/script_opt/ScriptOpt.cc index 69f5bed778..4238feb9a5 100644 --- a/src/script_opt/ScriptOpt.cc +++ b/src/script_opt/ScriptOpt.cc @@ -508,12 +508,12 @@ static void analyze_scripts_for_ZAM(std::shared_ptr pfs) { if ( ! analysis_options.compile_all && ! is_lambda && inl && inl->WasFullyInlined(func.get()) && func_used_indirectly.count(func.get()) == 0 ) { - // No need to compile as it won't be called directly. - // We'd like to zero out the body to recover the - // memory, but a *few* such functions do get called, - // such as by the event engine reaching up, or - // BiFs looking for them, so we can't safely zero - // them. + // No need to compile as it won't be called directly. We'd + // like to zero out the body to recover the memory, but a *few* + // such functions do get called, such as by the event engine + // reaching up, or BiFs looking for them, so we can't safely + // zero them. + f.SetSkip(true); continue; }