Lines Matching refs:arena_size

319     ((char*)(p) >= sh.arena && (char*)(p) < &sh.arena[sh.arena_size])
333 size_t arena_size; member
347 size_t bit = (sh.arena_size + ptr - sh.arena) / sh.minsize; in sh_getlist()
364 OPENSSL_assert(((ptr - sh.arena) & ((sh.arena_size >> list) - 1)) == 0); in sh_testbit()
365 bit = (ONE << list) + ((ptr - sh.arena) / (sh.arena_size >> list)); in sh_testbit()
375 OPENSSL_assert(((ptr - sh.arena) & ((sh.arena_size >> list) - 1)) == 0); in sh_clearbit()
376 bit = (ONE << list) + ((ptr - sh.arena) / (sh.arena_size >> list)); in sh_clearbit()
387 OPENSSL_assert(((ptr - sh.arena) & ((sh.arena_size >> list) - 1)) == 0); in sh_setbit()
388 bit = (ONE << list) + ((ptr - sh.arena) / (sh.arena_size >> list)); in sh_setbit()
471 sh.arena_size = size; in sh_init()
473 sh.bittable_size = (sh.arena_size / sh.minsize) * 2; in sh_init()
517 sh.map_size = pgsize + sh.arena_size + pgsize; in sh_init()
561 aligned = (pgsize + sh.arena_size + (pgsize - 1)) & ~(pgsize - 1); in sh_init()
571 if (syscall(SYS_mlock2, sh.arena, sh.arena_size, MLOCK_ONFAULT) < 0) { in sh_init()
573 if (mlock(sh.arena, sh.arena_size) < 0) in sh_init()
580 if (VirtualLock(sh.arena, sh.arena_size) == FALSE) in sh_init()
583 if (mlock(sh.arena, sh.arena_size) < 0) in sh_init()
587 if (madvise(sh.arena, sh.arena_size, MADV_DONTDUMP) < 0) in sh_init()
623 bit = (ONE << list) + (ptr - sh.arena) / (sh.arena_size >> list); in sh_find_my_buddy()
627 chunk = sh.arena + ((bit & ((ONE << list) - 1)) * (sh.arena_size >> list)); in sh_find_my_buddy()
638 if (size > sh.arena_size) in sh_malloc()
674 temp += sh.arena_size >> slist; in sh_malloc()
680 OPENSSL_assert(temp-(sh.arena_size >> slist) == sh_find_my_buddy(temp, slist)); in sh_malloc()
747 return sh.arena_size / (ONE << list); in sh_actual_size()