nxt_malloc.h (0:a63ceefd6ab0) nxt_malloc.h (521:93dc4a28dd37)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_UNIX_MALLOC_H_INCLUDED_
8#define _NXT_UNIX_MALLOC_H_INCLUDED_

--- 91 unchanged lines hidden (view full) ---

100 * 497/993 - 127K aligned to 512, otherwise
101 * 15K/127K- ... aligned to 4K
102 *
103 * malloc_good_size() is faster than malloc_size()
104 */
105
106#define \
107nxt_malloc_usable_size(p, size) \
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_UNIX_MALLOC_H_INCLUDED_
8#define _NXT_UNIX_MALLOC_H_INCLUDED_

--- 91 unchanged lines hidden (view full) ---

100 * 497/993 - 127K aligned to 512, otherwise
101 * 15K/127K- ... aligned to 4K
102 *
103 * malloc_good_size() is faster than malloc_size()
104 */
105
106#define \
107nxt_malloc_usable_size(p, size) \
108 size = malloc_good_size(size)
108 size = malloc_good_size(size)
109
110#define \
111nxt_malloc_cutback(cutback, size)
112
113#else
114
115#define \
116nxt_malloc_usable_size(p, size)

--- 19 unchanged lines hidden ---
109
110#define \
111nxt_malloc_cutback(cutback, size)
112
113#else
114
115#define \
116nxt_malloc_usable_size(p, size)

--- 19 unchanged lines hidden ---