mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 22:03:07 +00:00
Running clang-format on two files
This commit is contained in:
committed by
Guangli Dai
parent
2688047b56
commit
ace437d26a
@@ -172,8 +172,7 @@ unsigned ncpus;
|
|||||||
unsigned opt_debug_double_free_max_scan =
|
unsigned opt_debug_double_free_max_scan =
|
||||||
SAFETY_CHECK_DOUBLE_FREE_MAX_SCAN_DEFAULT;
|
SAFETY_CHECK_DOUBLE_FREE_MAX_SCAN_DEFAULT;
|
||||||
|
|
||||||
size_t opt_calloc_madvise_threshold =
|
size_t opt_calloc_madvise_threshold = CALLOC_MADVISE_THRESHOLD_DEFAULT;
|
||||||
CALLOC_MADVISE_THRESHOLD_DEFAULT;
|
|
||||||
|
|
||||||
/* Protects arenas initialization. */
|
/* Protects arenas initialization. */
|
||||||
static malloc_mutex_t arenas_lock;
|
static malloc_mutex_t arenas_lock;
|
||||||
@@ -261,8 +260,8 @@ _init_init_lock(void) {
|
|||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# pragma section(".CRT$XCU", read)
|
# pragma section(".CRT$XCU", read)
|
||||||
JEMALLOC_SECTION(".CRT$XCU")
|
JEMALLOC_SECTION(".CRT$XCU")
|
||||||
JEMALLOC_ATTR(used) static const
|
JEMALLOC_ATTR(used)
|
||||||
void(WINAPI *init_init_lock)(void) = _init_init_lock;
|
static const void(WINAPI *init_init_lock)(void) = _init_init_lock;
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -666,8 +666,8 @@ pages_purge_process_madvise_impl(
|
|||||||
if (errno == EPERM || errno == EINVAL || errno == ENOSYS
|
if (errno == EPERM || errno == EINVAL || errno == ENOSYS
|
||||||
|| errno == EBADF) {
|
|| errno == EBADF) {
|
||||||
/* Process madvise not supported the way we need it. */
|
/* Process madvise not supported the way we need it. */
|
||||||
atomic_store_b(&process_madvise_gate, false,
|
atomic_store_b(
|
||||||
ATOMIC_RELAXED);
|
&process_madvise_gate, false, ATOMIC_RELAXED);
|
||||||
}
|
}
|
||||||
set_errno(saved_errno);
|
set_errno(saved_errno);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user