MCPcopy Create free account
hub / github.com/beefytech/Beef / KeyEqual

Method KeyEqual

BeefRT/gperftools/src/stack_trace_table.cc:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42namespace TCMALLOC_NAMESPACE {
43
44bool 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
55StackTraceTable::StackTraceTable()
56 : error_(false),

Callers 1

StackTraceTableMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected