mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fix for ZAM statement-level profiling (broken by GH-3199)
This commit is contained in:
parent
e78570ad89
commit
a36c06e5cd
1 changed files with 5 additions and 0 deletions
|
@ -554,6 +554,9 @@ void clear_script_analysis()
|
|||
{
|
||||
IDOptInfo::ClearGlobalInitExprs();
|
||||
|
||||
// Keep the functions around if we're debugging, so we can
|
||||
// generate profiles.
|
||||
#ifndef DEBUG
|
||||
// We need to explicitly clear out the optimization information
|
||||
// associated with identifiers. They have reference loops with
|
||||
// the parent identifier that will prevent reclamation of the
|
||||
|
@ -564,6 +567,8 @@ void clear_script_analysis()
|
|||
id->ClearOptInfo();
|
||||
|
||||
funcs.clear();
|
||||
#endif
|
||||
|
||||
non_recursive_funcs.clear();
|
||||
lambdas.clear();
|
||||
when_lambdas.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue