Fix assertion for cases where tiny classes do not exist

This commit is contained in:
guangli-dai 2026-04-28 21:33:26 -07:00 committed by lexprfuncall
parent 1a15fe33a4
commit 70b228dece

View file

@ -1199,7 +1199,7 @@ malloc_init_hard(void) {
* than LARGE_MINCLASS. It could only happen if some constants
* are configured miserably wrong.
*/
assert(SC_LG_TINY_MAXCLASS <= (size_t)1ULL << (LG_PAGE + SC_LG_NGROUP));
assert(SC_NTINY == 0 || SC_LG_TINY_MAXCLASS <= SC_LG_LARGE_MINCLASS);
#if defined(_WIN32) && _WIN32_WINNT < 0x0600
_init_init_lock();