ReactOS 0.4.16-dev-87-g3dfbe52
|
Go to the source code of this file.
Typedefs | |
typedef int(CDECL * | MSVCRT_new_handler_func) (MSVCRT_size_t size) |
Variables | |
static HANDLE | heap |
static HANDLE | sb_heap |
static MSVCRT_new_handler_func | MSVCRT_new_handler |
static int | MSVCRT_new_mode |
static unsigned int | MSVCRT_amblksiz = 16 |
static MSVCRT_size_t | MSVCRT_sbh_threshold = 0 |
#define LOCK_HEAP _mlock( _HEAP_LOCK ) |
#define MSVCRT__FREEENTRY _FREEENTRY |
#define MSVCRT__HEAPBADBEGIN _HEAPBADBEGIN |
#define MSVCRT__HEAPBADNODE _HEAPBADNODE |
#define MSVCRT__USEDENTRY _USEDENTRY |
#define msvcrt_set_errno _dosmaperr |
static MSVCRT_size_t size_t |
#define UNLOCK_HEAP _munlock( _HEAP_LOCK ) |
typedef int(CDECL * MSVCRT_new_handler_func) (MSVCRT_size_t size) |
Definition at line 573 of file heap.c.
Referenced by _aligned_offset_realloc().
void *CDECL _aligned_malloc | ( | MSVCRT_size_t | size, |
MSVCRT_size_t | alignment | ||
) |
Definition at line 630 of file heap.c.
void *CDECL _aligned_offset_malloc | ( | MSVCRT_size_t | size, |
MSVCRT_size_t | alignment, | ||
MSVCRT_size_t | offset | ||
) |
Definition at line 587 of file heap.c.
Referenced by _aligned_malloc(), and _aligned_offset_realloc().
void *CDECL _aligned_offset_realloc | ( | void * | memblock, |
MSVCRT_size_t | size, | ||
MSVCRT_size_t | alignment, | ||
MSVCRT_size_t | offset | ||
) |
Definition at line 639 of file heap.c.
Referenced by _aligned_realloc().
void *CDECL _aligned_realloc | ( | void * | memblock, |
MSVCRT_size_t | size, | ||
MSVCRT_size_t | alignment | ||
) |
Definition at line 754 of file heap.c.
int CDECL _callnewh | ( | MSVCRT_size_t | size | ) |
void *CDECL _expand | ( | void * | mem, |
MSVCRT_size_t | size | ||
) |
MSVCRT_intptr_t CDECL _get_heap_handle | ( | void | ) |
MSVCRT_size_t CDECL _get_sbh_threshold | ( | void | ) |
int CDECL _heapadd | ( | void * | mem, |
MSVCRT_size_t | size | ||
) |
Definition at line 279 of file heap.c.
Definition at line 352 of file heap.c.
int CDECL _heapwalk | ( | struct MSVCRT__heapinfo * | next | ) |
Definition at line 308 of file heap.c.
Referenced by _heapset().
MSVCRT_size_t CDECL _msize | ( | void * | mem | ) |
Definition at line 389 of file heap.c.
Referenced by _aligned_offset_realloc().
int CDECL _set_sbh_threshold | ( | MSVCRT_size_t | threshold | ) |
Definition at line 550 of file heap.c.
MSVCRT_new_handler_func CDECL MSVCRT__query_new_handler | ( | void | ) |
MSVCRT_new_handler_func CDECL MSVCRT__set_new_handler | ( | MSVCRT_new_handler_func | func | ) |
Definition at line 223 of file heap.c.
Referenced by MSVCRT_set_new_handler().
Definition at line 246 of file heap.c.
void *CDECL DECLSPEC_HOTPATCH MSVCRT_calloc | ( | MSVCRT_size_t | count, |
MSVCRT_size_t | size | ||
) |
void CDECL DECLSPEC_HOTPATCH MSVCRT_free | ( | void * | ptr | ) |
|
static |
Definition at line 77 of file heap.c.
Referenced by MSVCRT_calloc(), MSVCRT_malloc(), and MSVCRT_operator_new().
Definition at line 127 of file heap.c.
Referenced by MSVCRT_free(), and MSVCRT_operator_delete().
|
static |
Definition at line 95 of file heap.c.
Referenced by _expand(), and MSVCRT_realloc().
|
static |
Definition at line 895 of file heap.c.
Referenced by crt_process_init(), and DllMain().
void *CDECL MSVCRT_malloc | ( | MSVCRT_size_t | size | ) |
int CDECL MSVCRT_memcpy_s | ( | void * | dest, |
MSVCRT_size_t | numberOfElements, | ||
const void * | src, | ||
MSVCRT_size_t | count | ||
) |
int CDECL MSVCRT_memmove_s | ( | void * | dest, |
MSVCRT_size_t | numberOfElements, | ||
const void * | src, | ||
MSVCRT_size_t | count | ||
) |
void CDECL DECLSPEC_HOTPATCH MSVCRT_operator_delete | ( | void * | mem | ) |
Definition at line 196 of file heap.c.
Referenced by MSVCRT___non_rtti_object_scalar_dtor(), MSVCRT___non_rtti_object_vector_dtor(), MSVCRT_bad_cast_scalar_dtor(), MSVCRT_bad_cast_vector_dtor(), MSVCRT_bad_typeid_scalar_dtor(), MSVCRT_bad_typeid_vector_dtor(), MSVCRT_exception_scalar_dtor(), MSVCRT_exception_vector_dtor(), and MSVCRT_type_info_vector_dtor().
void *CDECL DECLSPEC_HOTPATCH MSVCRT_operator_new | ( | MSVCRT_size_t | size | ) |
Definition at line 152 of file heap.c.
Referenced by MSVCRT_operator_new_dbg().
Definition at line 187 of file heap.c.
void *CDECL DECLSPEC_HOTPATCH MSVCRT_realloc | ( | void * | ptr, |
MSVCRT_size_t | size | ||
) |
MSVCRT_new_handler_func CDECL MSVCRT_set_new_handler | ( | void * | func | ) |
Definition at line 236 of file heap.c.
int CDECL MSVCRT_strncpy_s | ( | char * | dest, |
MSVCRT_size_t | numberOfElements, | ||
const char * | src, | ||
MSVCRT_size_t | count | ||
) |
Definition at line 860 of file heap.c.
|
static |
Definition at line 65 of file heap.c.
Referenced by _get_heap_handle(), _heapchk(), _heapmin(), _heapset(), _heapwalk(), add_dynamic_var(), alloc_bstr(), AllocateAndGetIfTableFromStack(), AllocateAndGetIpAddrTableFromStack(), AllocateAndGetIpForwardTableFromStack(), AllocateAndGetIpNetTableFromStack(), AllocateAndGetTcpExTable2FromStack(), AllocateAndGetTcpExTableFromStack(), AllocateAndGetTcpTableFromStack(), AllocateAndGetUdpExTable2FromStack(), AllocateAndGetUdpExTableFromStack(), AllocateAndGetUdpTableFromStack(), CloseDevice(), constant_heap_free(), constant_heap_init(), CreateSession(), DestroySession(), DrvGetDirectDrawInfo(), heap_pool_alloc(), heap_pool_clear(), heap_pool_free(), heap_pool_grow(), heap_pool_init(), heap_pool_mark(), HEAP_strdupAtoW(), main(), msvcrt_destroy_heap(), msvcrt_heap_alloc(), msvcrt_heap_free(), msvcrt_heap_realloc(), msvcrt_heap_size(), msvcrt_init_heap(), NBCmdQueueCreate(), NBNameCacheCreate(), OpenDevice(), PlayNote(), RunTraceRoute(), shader_glsl_load_constants_f(), shader_glsl_update_float_pixel_constants(), shader_glsl_update_float_vertex_constants(), StopNote(), SysFreeString(), test_child_heap(), test_HeapCreate(), update_heap_entry(), walk_constant_heap(), and walk_constant_heap_clamped().
Definition at line 73 of file heap.c.
Referenced by __p__amblksiz().
|
static |
Definition at line 69 of file heap.c.
Referenced by _callnewh(), MSVCRT__query_new_handler(), MSVCRT__set_new_handler(), and MSVCRT_operator_new().
|
static |
Definition at line 70 of file heap.c.
Referenced by MSVCRT__query_new_mode(), and MSVCRT__set_new_mode().
|
static |
Definition at line 75 of file heap.c.
Referenced by _get_sbh_threshold(), _set_sbh_threshold(), and msvcrt_heap_alloc().
|
static |
Definition at line 65 of file heap.c.
Referenced by _heapchk(), _heapmin(), _heapwalk(), _set_sbh_threshold(), msvcrt_destroy_heap(), msvcrt_heap_alloc(), msvcrt_heap_free(), msvcrt_heap_realloc(), and msvcrt_heap_size().