mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Fix a cpp logic regression.
Fix a cpp logic error that was introduced by the recent commit:
Fix "thread.{de,}allocatedp" mallctl.
This commit is contained in:
@@ -369,7 +369,7 @@ size_t s2u(size_t size);
|
|||||||
size_t sa2u(size_t size, size_t alignment, size_t *run_size_p);
|
size_t sa2u(size_t size, size_t alignment, size_t *run_size_p);
|
||||||
void malloc_write(const char *s);
|
void malloc_write(const char *s);
|
||||||
arena_t *choose_arena(void);
|
arena_t *choose_arena(void);
|
||||||
# ifdef NO_TLS
|
# if (defined(JEMALLOC_STATS) && defined(NO_TLS))
|
||||||
thread_allocated_t *thread_allocated_get(void);
|
thread_allocated_t *thread_allocated_get(void);
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
@@ -533,7 +533,7 @@ choose_arena(void)
|
|||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NO_TLS
|
#if (defined(JEMALLOC_STATS) && defined(NO_TLS))
|
||||||
JEMALLOC_INLINE thread_allocated_t *
|
JEMALLOC_INLINE thread_allocated_t *
|
||||||
thread_allocated_get(void)
|
thread_allocated_get(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user