mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
explicitly mark functions skipped for script optimization
This commit is contained in:
parent
79bff14b57
commit
f4ead63367
1 changed files with 6 additions and 6 deletions
|
@ -508,12 +508,12 @@ static void analyze_scripts_for_ZAM(std::shared_ptr<ProfileFuncs> pfs) {
|
||||||
|
|
||||||
if ( ! analysis_options.compile_all && ! is_lambda && inl && inl->WasFullyInlined(func.get()) &&
|
if ( ! analysis_options.compile_all && ! is_lambda && inl && inl->WasFullyInlined(func.get()) &&
|
||||||
func_used_indirectly.count(func.get()) == 0 ) {
|
func_used_indirectly.count(func.get()) == 0 ) {
|
||||||
// No need to compile as it won't be called directly.
|
// No need to compile as it won't be called directly. We'd
|
||||||
// We'd like to zero out the body to recover the
|
// like to zero out the body to recover the memory, but a *few*
|
||||||
// memory, but a *few* such functions do get called,
|
// such functions do get called, such as by the event engine
|
||||||
// such as by the event engine reaching up, or
|
// reaching up, or BiFs looking for them, so we can't safely
|
||||||
// BiFs looking for them, so we can't safely zero
|
// zero them.
|
||||||
// them.
|
f.SetSkip(true);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue