Skip to content
  1. Mar 24, 2012
  2. Mar 23, 2012
  3. Mar 22, 2012
  4. Mar 21, 2012
  5. Mar 18, 2012
    • Jordy Rose's avatar
      [analyzer] Mark a failed-realloc's result as an interesting symbol between the... · bf38f20e
      Jordy Rose authored
      [analyzer] Mark a failed-realloc's result as an interesting symbol between the realloc call and the null check, so we get nicer path notes. Fixes a regression introduced by the diagnostic pruning added in r152361.
      
      This is accomplished by calling markInteresting /during/ path diagnostic generation, and as such relies on deterministic ordering of BugReporterVisitors -- namely, that BugReporterVisitors are run in /reverse/ order from how they are added. (Right now that's a consequence of storing visitors in an ImmutableList, where new items are added to the front.) It's a little hacky, but it works for now.
      
      I think this is the best we can do without storing the relation between the old and new symbols, and that would be a hit whether or not there ends up being an error.
      
      llvm-svn: 153010
      bf38f20e
    • Jordy Rose's avatar
      [analyzer] Use a FoldingSet to cache simple RetainSummary instances, rather... · 61c974b4
      Jordy Rose authored
      [analyzer] Use a FoldingSet to cache simple RetainSummary instances, rather than explicitly keeping DoNothing and StopTracking summaries and nothing else.
      
      I tried to test the effects of this change on memory usage and run time, but what I saw on retain-release.m was indistinguishable from noise (debug and release builds). Even so, some caveman profiling showed 101 cache hits that we would have generated new summaries for before (i.e. not default or stop summaries), and the more code we analyze, the more memory we should save.
      
      Maybe we should have a standard project for benchmarking the retain count checker's memory and time?
      
      llvm-svn: 153007
      61c974b4
  6. Mar 17, 2012
  7. Mar 16, 2012
  8. Mar 15, 2012
  9. Mar 14, 2012
  10. Mar 13, 2012
  11. Mar 12, 2012
Loading