[PATCH] D99110: [Coverage] Load records immediately
    Choongwoo Han via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Mar 23 10:14:23 PDT 2021
    
    
  
tunz added a comment.
In summary, there are three places allocating the memories: PGOFuncNames (string set), RequiresNullTerminator (writable file buffer), FuncRecords (string).
Since I don't fully understand the internals of profile data yet, I'm not sure if the high memory usage of PGFuncNames is the expected behavior, but anyway this change will fix not to keep those memories owned by Readers and Buffers.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99110/new/
https://reviews.llvm.org/D99110
    
    
More information about the llvm-commits
mailing list