mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Tweak FuncInfo memory management
Idea being for everything to be automatically released when process exits just so there's less potential noise from leak profilers.
This commit is contained in:
parent
c7bec09e14
commit
7b2ee2514e
4 changed files with 30 additions and 37 deletions
|
@ -19,7 +19,7 @@ public:
|
|||
// First argument is a collection of information about *all* of
|
||||
// the script functions. Second argument states whether to report
|
||||
// recursive functions (of interest as they're not in-lineable).
|
||||
Inliner(std::vector<FuncInfo*>& _funcs, bool _report_recursive)
|
||||
Inliner(std::vector<FuncInfo>& _funcs, bool _report_recursive)
|
||||
: funcs(_funcs), report_recursive(_report_recursive)
|
||||
{ Analyze(); }
|
||||
|
||||
|
@ -40,7 +40,7 @@ protected:
|
|||
|
||||
// Information about all of the functions (and events/hooks) in
|
||||
// the full set of scripts.
|
||||
std::vector<FuncInfo*>& funcs;
|
||||
std::vector<FuncInfo>& funcs;
|
||||
|
||||
// Functions that we've determined to be suitable for inlining.
|
||||
std::unordered_set<Func*> inline_ables;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue