ReactOS 0.4.15-dev-8614-gbc76250
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Variables | |
UCHAR | RtlpBitsClearLow [] |
UCHAR | FillPattern [HEAP_ENTRY_SIZE] |
Definition at line 2068 of file heap.c.
Definition at line 3103 of file heap.c.
Referenced by GlobalCompact(), HeapCompact(), LocalCompact(), and LocalShrink().
HANDLE NTAPI RtlCreateHeap | ( | ULONG | Flags, |
PVOID | Addr, | ||
SIZE_T | TotalSize, | ||
SIZE_T | CommitSize, | ||
PVOID | Lock, | ||
PRTL_HEAP_PARAMETERS | Parameters | ||
) |
Definition at line 1422 of file heap.c.
ULONG NTAPI RtlCreateTagHeap | ( | _In_ HANDLE | HeapHandle, |
_In_ ULONG | Flags, | ||
_In_opt_ PWSTR | TagName, | ||
_In_ PWSTR | TagSubName | ||
) |
Definition at line 4037 of file heap.c.
Referenced by HeapCreateTagsW(), and SmpInit().
Definition at line 1748 of file heap.c.
NTSTATUS NTAPI RtlEnumProcessHeaps | ( | PHEAP_ENUMERATION_ROUTINE | HeapEnumerationRoutine, |
PVOID | lParam | ||
) |
Definition at line 2286 of file heap.c.
BOOLEAN NTAPI RtlGetUserInfoHeap | ( | IN PVOID | HeapHandle, |
IN ULONG | Flags, | ||
IN PVOID | BaseAddress, | ||
OUT PVOID * | UserValue, | ||
OUT PULONG | UserFlags | ||
) |
Definition at line 3934 of file heap.c.
Referenced by GlobalFlags(), GlobalHandle(), GlobalReAlloc(), GlobalSize(), LocalFlags(), RtlDebugGetUserInfoHeap(), and START_TEST().
ULONG NTAPI RtlMultipleAllocateHeap | ( | IN PVOID | HeapHandle, |
IN ULONG | Flags, | ||
IN SIZE_T | Size, | ||
IN ULONG | Count, | ||
OUT PVOID * | Array | ||
) |
Definition at line 4131 of file heap.c.
ULONG NTAPI RtlMultipleFreeHeap | ( | IN PVOID | HeapHandle, |
IN ULONG | Flags, | ||
IN ULONG | Count, | ||
OUT PVOID * | Array | ||
) |
Definition at line 4167 of file heap.c.
|
static |
Definition at line 1976 of file heap.c.
Referenced by RtlAllocateHeap().
BOOLEAN NTAPI RtlpCheckInUsePattern | ( | PHEAP_ENTRY | HeapEntry | ) |
Definition at line 3249 of file heap.c.
Referenced by RtlpValidateHeap(), RtlpValidateHeapEntry(), and RtlpValidateHeapSegment().
PHEAP_FREE_ENTRY NTAPI RtlpCoalesceFreeBlocks | ( | PHEAP | Heap, |
PHEAP_FREE_ENTRY | FreeEntry, | ||
PSIZE_T | FreeSize, | ||
BOOLEAN | Remove | ||
) |
Definition at line 1169 of file heap.c.
Referenced by RtlFreeHeap(), RtlpDeCommitFreeBlock(), RtlpExtendHeap(), and RtlpGrowBlockInPlace().
PHEAP_FREE_ENTRY NTAPI RtlpCoalesceHeap | ( | PHEAP | Heap | ) |
Definition at line 1162 of file heap.c.
Referenced by RtlpExtendHeap().
PHEAP_UCR_DESCRIPTOR NTAPI RtlpCreateUnCommittedRange | ( | PHEAP_SEGMENT | Segment | ) |
Definition at line 526 of file heap.c.
Referenced by RtlpDeCommitFreeBlock(), and RtlpInsertUnCommittedPages().
|
static |
Definition at line 847 of file heap.c.
Referenced by RtlFreeHeap().
VOID NTAPI RtlpDestroyHeapSegment | ( | PHEAP_SEGMENT | Segment | ) |
Definition at line 1137 of file heap.c.
Referenced by RtlDestroyHeap().
VOID NTAPI RtlpDestroyUnCommittedRange | ( | PHEAP_SEGMENT | Segment, |
PHEAP_UCR_DESCRIPTOR | UcrDescriptor | ||
) |
Definition at line 621 of file heap.c.
Referenced by RtlpDeCommitFreeBlock(), RtlpFindAndCommitPages(), and RtlpInsertUnCommittedPages().
|
static |
Definition at line 1266 of file heap.c.
Referenced by RtlpAllocateNonDedicated().
|
static |
Definition at line 703 of file heap.c.
Referenced by RtlpExtendHeap(), and RtlpGrowBlockInPlace().
FORCEINLINE UCHAR RtlpFindLeastSetBit | ( | ULONG | Bits | ) |
PHEAP_ENTRY_EXTRA NTAPI RtlpGetExtraStuffPointer | ( | PHEAP_ENTRY | HeapEntry | ) |
Definition at line 2651 of file heap.c.
Referenced by RtlAllocateHeap(), RtlGetUserInfoHeap(), RtlpAllocateNonDedicated(), RtlReAllocateHeap(), and RtlSetUserValueHeap().
SIZE_T NTAPI RtlpGetSizeOfBigBlock | ( | PHEAP_ENTRY | HeapEntry | ) |
Definition at line 513 of file heap.c.
Referenced by RtlpCheckInUsePattern(), RtlReAllocateHeap(), and RtlSizeHeap().
BOOLEAN NTAPI RtlpGrowBlockInPlace | ( | IN PHEAP | Heap, |
IN ULONG | Flags, | ||
IN PHEAP_ENTRY | InUseEntry, | ||
IN SIZE_T | Size, | ||
IN SIZE_T | Index | ||
) |
Definition at line 2411 of file heap.c.
Referenced by RtlReAllocateHeap().
NTSTATUS NTAPI RtlpInitializeHeap | ( | OUT PHEAP | Heap, |
IN ULONG | Flags, | ||
IN PHEAP_LOCK Lock | OPTIONAL, | ||
IN PRTL_HEAP_PARAMETERS | Parameters | ||
) |
Definition at line 106 of file heap.c.
Referenced by RtlCreateHeap().
NTSTATUS NTAPI RtlpInitializeHeapSegment | ( | IN OUT PHEAP | Heap, |
OUT PHEAP_SEGMENT | Segment, | ||
IN UCHAR | SegmentIndex, | ||
IN ULONG | SegmentFlags, | ||
IN SIZE_T | SegmentReserve, | ||
IN SIZE_T | SegmentCommit | ||
) |
Definition at line 1015 of file heap.c.
Referenced by RtlCreateHeap(), and RtlpExtendHeap().
PHEAP_FREE_ENTRY NTAPI RtlpInsertFreeBlock | ( | PHEAP | Heap, |
PHEAP_FREE_ENTRY | FreeEntry, | ||
SIZE_T | BlockSize | ||
) |
Definition at line 358 of file heap.c.
Referenced by RtlFreeHeap(), RtlpDeCommitFreeBlock(), RtlpExtendHeap(), RtlpGrowBlockInPlace(), RtlpInitializeHeapSegment(), RtlpSplitEntry(), and RtlReAllocateHeap().
VOID NTAPI RtlpInsertFreeBlockHelper | ( | PHEAP | Heap, |
PHEAP_FREE_ENTRY | FreeEntry, | ||
SIZE_T | BlockSize, | ||
BOOLEAN | NoFill | ||
) |
Definition at line 238 of file heap.c.
Referenced by RtlpGrowBlockInPlace(), RtlpInsertFreeBlock(), RtlpSplitEntry(), and RtlReAllocateHeap().
VOID NTAPI RtlpInsertUnCommittedPages | ( | PHEAP_SEGMENT | Segment, |
ULONG_PTR | Address, | ||
SIZE_T | Size | ||
) |
Definition at line 633 of file heap.c.
Referenced by RtlpDeCommitFreeBlock(), and RtlpInitializeHeapSegment().
|
static |
Definition at line 86 of file heap.c.
Referenced by RtlpDeCommitFreeBlock(), and RtlpGrowBlockInPlace().
|
static |
Definition at line 431 of file heap.c.
Referenced by RtlAllocateHeap(), RtlpAllocateNonDedicated(), RtlpCoalesceFreeBlocks(), RtlpGrowBlockInPlace(), RtlpSplitEntry(), and RtlReAllocateHeap().
PHEAP_ENTRY NTAPI RtlpSplitEntry | ( | PHEAP | Heap, |
ULONG | Flags, | ||
PHEAP_FREE_ENTRY | FreeBlock, | ||
SIZE_T | AllocationSize, | ||
SIZE_T | Index, | ||
SIZE_T | Size | ||
) |
Definition at line 1836 of file heap.c.
Referenced by RtlAllocateHeap(), and RtlpAllocateNonDedicated().
Definition at line 3532 of file heap.c.
Referenced by RtlDebugAllocateHeap(), RtlDebugDestroyHeap(), RtlDebugFreeHeap(), RtlDebugGetUserInfoHeap(), RtlDebugReAllocateHeap(), RtlDebugSetUserFlagsHeap(), RtlDebugSetUserValueHeap(), RtlDebugSizeHeap(), and RtlValidateHeap().
BOOLEAN NTAPI RtlpValidateHeapEntry | ( | PHEAP | Heap, |
PHEAP_ENTRY | HeapEntry | ||
) |
Definition at line 3288 of file heap.c.
Referenced by RtlDebugFreeHeap(), RtlDebugGetUserInfoHeap(), RtlDebugReAllocateHeap(), RtlDebugSetUserFlagsHeap(), RtlDebugSetUserValueHeap(), RtlDebugSizeHeap(), and RtlValidateHeap().
Definition at line 3279 of file heap.c.
Referenced by RtlDebugAllocateHeap(), RtlDebugCreateHeap(), RtlDebugFreeHeap(), RtlDebugReAllocateHeap(), and RtlpValidateHeap().
BOOLEAN NTAPI RtlpValidateHeapSegment | ( | PHEAP | Heap, |
PHEAP_SEGMENT | Segment, | ||
UCHAR | SegmentOffset, | ||
PULONG | FreeEntriesCount, | ||
PSIZE_T | TotalFreeSize, | ||
PSIZE_T | TagEntries, | ||
PSIZE_T | PseudoTagEntries | ||
) |
Definition at line 3345 of file heap.c.
Referenced by RtlpValidateHeap().
NTSTATUS NTAPI RtlQueryHeapInformation | ( | HANDLE | HeapHandle, |
HEAP_INFORMATION_CLASS | HeapInformationClass, | ||
PVOID | HeapInformation, | ||
SIZE_T | HeapInformationLength, | ||
PSIZE_T ReturnLength | OPTIONAL | ||
) |
Definition at line 4097 of file heap.c.
NTSTATUS NTAPI RtlQueryProcessHeapInformation | ( | IN struct _DEBUG_BUFFER * | DebugBuffer | ) |
PWSTR NTAPI RtlQueryTagHeap | ( | IN PVOID | HeapHandle, |
IN ULONG | Flags, | ||
IN USHORT | TagIndex, | ||
IN BOOLEAN | ResetCounters, | ||
OUT PRTL_HEAP_TAG_INFO | HeapTagInfo | ||
) |
Definition at line 4012 of file heap.c.
Referenced by HeapQueryTagW().
Definition at line 2686 of file heap.c.
Referenced by add_assembly(), add_compat_context(), add_dependent_assembly_id(), add_dll_redirect(), add_entity(), add_entry(), AddDiskToList(), CmdStartProcess(), com_class_add_progid(), CSR_API(), DesktopHeapReAlloc(), EmulatorCopyMemory(), FindFirstStreamW(), GlobalReAlloc(), InitFunctionPtrs(), LdrpSearchPath(), LocalReAlloc(), lookup_winsxs(), main(), PnpEventThread(), ReAllocateLayoutBuffer(), ReAllocBuffer(), RegpCopyTree(), RtlDebugReAllocateHeap(), SdbpReAlloc(), START_TEST(), and UserHeapReAlloc().
NTSTATUS NTAPI RtlSetHeapInformation | ( | IN HANDLE HeapHandle | OPTIONAL, |
IN HEAP_INFORMATION_CLASS | HeapInformationClass, | ||
IN PVOID | HeapInformation, | ||
IN SIZE_T | HeapInformationLength | ||
) |
Definition at line 4067 of file heap.c.
BOOLEAN NTAPI RtlSetUserFlagsHeap | ( | IN PVOID | HeapHandle, |
IN ULONG | Flags, | ||
IN PVOID | BaseAddress, | ||
IN ULONG | UserFlagsReset, | ||
IN ULONG | UserFlagsSet | ||
) |
Definition at line 3879 of file heap.c.
Referenced by RtlDebugSetUserFlagsHeap(), and START_TEST().
BOOLEAN NTAPI RtlSetUserValueHeap | ( | IN PVOID | HeapHandle, |
IN ULONG | Flags, | ||
IN PVOID | BaseAddress, | ||
IN PVOID | UserValue | ||
) |
Definition at line 3817 of file heap.c.
Referenced by GlobalAlloc(), GlobalReAlloc(), LocalAlloc(), LocalReAlloc(), RtlDebugSetUserValueHeap(), and START_TEST().
Definition at line 3199 of file heap.c.
Definition at line 3162 of file heap.c.
Referenced by GlobalAlloc(), GlobalFlags(), GlobalFree(), GlobalHandle(), GlobalLock(), GlobalReAlloc(), GlobalSize(), GlobalUnlock(), HeapUnlock(), LocalAlloc(), LocalFlags(), LocalReAlloc(), and LocalUnlock().
Definition at line 3731 of file heap.c.
UCHAR FillPattern[HEAP_ENTRY_SIZE] |
UCHAR RtlpBitsClearLow[] |
Definition at line 31 of file heap.c.
Referenced by RtlpFindLeastSetBit().