Lines Matching defs:id
28 // Maps stack trace to an unique id.
30 // Retrieves a stored stack trace by the id.
31 args_type Get(u32 id);
52 atomic_uint32_t seq[kPartCount]; // Unique id generators.
63 // Searches linked list s for the stack, returns its id.
118 u32 id = atomic_fetch_add(&seq[part], 1, memory_order_relaxed) + 1;
120 CHECK_LT(id, kMaxId);
121 id |= part << kPartShift;
122 CHECK_NE(id, 0);
123 CHECK_EQ(id & (((u32)-1) >> kReservedBits), id);
127 s->id = id;
137 StackDepotBase<Node, kReservedBits, kTabSizeLog>::Get(u32 id) {
138 if (id == 0) {
141 CHECK_EQ(id & (((u32)-1) >> kReservedBits), id);
142 // High kPartBits contain part id, so we need to scan at most kPartSize lists.
143 uptr part = id >> kPartShift;
151 if (s->id == id) {