From 1253af42f9d57c6ff379d33fd042ba99d496af2f Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Mon, 5 Aug 2024 09:27:33 +0100 Subject: [PATCH] mark functions skipped by ZAM compilation as such --- 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 4a3e712399..47f9fddf24 100644 --- a/src/script_opt/ScriptOpt.cc +++ b/src/script_opt/ScriptOpt.cc @@ -507,12 +507,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; }