mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-23 11:22:13 +03:00
Move a variable declaration closer to its use.
This commit is contained in:
parent
a1aaf949a5
commit
bce61d61bb
1 changed files with 2 additions and 1 deletions
|
|
@ -2049,7 +2049,6 @@ arena_malloc_large(arena_t *arena, size_t size, bool zero)
|
|||
{
|
||||
void *ret;
|
||||
size_t usize;
|
||||
uint64_t r;
|
||||
uintptr_t random_offset;
|
||||
arena_run_t *run;
|
||||
arena_chunk_map_misc_t *miscelm;
|
||||
|
|
@ -2059,6 +2058,8 @@ arena_malloc_large(arena_t *arena, size_t size, bool zero)
|
|||
usize = s2u(size);
|
||||
malloc_mutex_lock(&arena->lock);
|
||||
if (config_cache_oblivious) {
|
||||
uint64_t r;
|
||||
|
||||
/*
|
||||
* Compute a uniformly distributed offset within the first page
|
||||
* that is a multiple of the cacheline size, e.g. [0 .. 63) * 64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue