The TestOnlyInit function of {Flat,TwoLevel}ByteMap seems to be a misnomer
since the function is used outside of tests as well, namely in
SizeClassAllocator32::Init. Rename it to Init and update the callers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCRT Compiler Runtime
Event Timeline
lib/sanitizer_common/sanitizer_allocator_bytemap.h | ||
---|---|---|
21 | I'd call it Reset(). |
lib/sanitizer_common/sanitizer_allocator_bytemap.h | ||
---|---|---|
21 | I feel like Reset could be confusing as it could lead someone to think it can be called for more purposes than initialization. |
lib/sanitizer_common/sanitizer_allocator_bytemap.h | ||
---|---|---|
21 | Up to you, but I see no issues if it called for more purposes. |
I'd call it Reset().