mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Fix assertion for cases where tiny classes do not exist
This commit is contained in:
committed by
lexprfuncall
parent
1a15fe33a4
commit
70b228dece
@@ -1199,7 +1199,7 @@ malloc_init_hard(void) {
|
|||||||
* than LARGE_MINCLASS. It could only happen if some constants
|
* than LARGE_MINCLASS. It could only happen if some constants
|
||||||
* are configured miserably wrong.
|
* 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
|
#if defined(_WIN32) && _WIN32_WINNT < 0x0600
|
||||||
_init_init_lock();
|
_init_init_lock();
|
||||||
|
|||||||
Reference in New Issue
Block a user