We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 105b3a9 commit 6936fadCopy full SHA for 6936fad
compiler-rt/lib/sanitizer_common/sanitizer_allocator_local_cache.h
@@ -166,7 +166,7 @@ struct SizeClassAllocator32LocalCache {
166
DCHECK_GT(c->count, 0);
167
}
168
void *res = c->batch[--c->count];
169
- PREFETCH(c->batch[c->count - 1]);
+ PREFETCH(c->batch[c->count > 0 ? c->count - 1 : 0]);
170
stats_.Add(AllocatorStatAllocated, c->class_size);
171
return res;
172
0 commit comments