Those are not created in the allocator.
Since they are created fairly rarely, a counter overhead should not affect the memory consumption.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D51827
[analyzer] Generate and use stable identifiers for LocationContext ClosedPublic Authored by george.karpenkov on Sep 7 2018, 5:19 PM.
Details Summary Those are not created in the allocator.
Diff Detail Event TimelineHerald added subscribers: Szelethus, mikhail.ramalho, a.sidorin and 3 others. · View Herald TranscriptSep 7 2018, 5:19 PM
This revision is now accepted and ready to land.Sep 14 2018, 5:38 PM Closed by commit rL342314: [analyzer] Generate and use stable identifiers for LocationContext (authored by george.karpenkov). · Explain WhySep 14 2018, 7:04 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 165544 clang/include/clang/Analysis/AnalysisDeclContext.h
clang/lib/Analysis/AnalysisDeclContext.cpp
clang/lib/StaticAnalyzer/Core/Environment.cpp
|
This means that for every new analysis the counter will continue rather than reset to 0.
Maybe store the counter in the manager as a non-static field?