mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
mark functions skipped by ZAM compilation as such
This commit is contained in:
parent
11e9135f80
commit
1253af42f9
1 changed files with 6 additions and 6 deletions
|
@ -507,12 +507,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