D99763 fixed SizeClassAllocatorLocalCache::drain but with the
assumption that BatchClassId is 0 - which is currently true. I would
rather not make the assumption so that if we ever change the ID of
the batch class, the loop would still work. Since BatchClassId is
used more often in local_cache.h, introduce a constant so that we
don't have to specify SizeClassMap:: every time.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo