mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Relax too restrictive assert.
The problem has been reported to upstream and similar change will be included in next jemalloc release. Submitted by: David Goldblatt <davidtgoldblatt@gmail.com> MFC after: 2 weeks
This commit is contained in:
parent
713e844971
commit
3ee2fe0199
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326740
|
@ -91,9 +91,11 @@ idalloctm(tsdn_t *tsdn, void *ptr, tcache_t *tcache, alloc_ctx_t *alloc_ctx,
|
||||||
if (config_stats && is_internal) {
|
if (config_stats && is_internal) {
|
||||||
arena_internal_sub(iaalloc(tsdn, ptr), isalloc(tsdn, ptr));
|
arena_internal_sub(iaalloc(tsdn, ptr), isalloc(tsdn, ptr));
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
if (!is_internal && tsd_reentrancy_level_get(tsdn_tsd(tsdn)) != 0) {
|
if (!is_internal && tsd_reentrancy_level_get(tsdn_tsd(tsdn)) != 0) {
|
||||||
assert(tcache == NULL);
|
assert(tcache == NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
arena_dalloc(tsdn, ptr, tcache, alloc_ctx, slow_path);
|
arena_dalloc(tsdn, ptr, tcache, alloc_ctx, slow_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue