| 42 | namespace TCMALLOC_NAMESPACE { |
| 43 | |
| 44 | bool StackTraceTable::Bucket::KeyEqual(uintptr_t h, |
| 45 | const StackTrace& t) const { |
| 46 | const bool eq = (this->hash == h && this->trace.depth == t.depth); |
| 47 | for (int i = 0; eq && i < t.depth; ++i) { |
| 48 | if (this->trace.stack[i] != t.stack[i]) { |
| 49 | return false; |
| 50 | } |
| 51 | } |
| 52 | return eq; |
| 53 | } |
| 54 | |
| 55 | StackTraceTable::StackTraceTable() |
| 56 | : error_(false), |