ReactOS 0.4.15-dev-5865-g640e228
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Variables | |
UCHAR | RtlpBitsClearLow [] |
UCHAR | FillPattern [HEAP_ENTRY_SIZE] |
Definition at line 2049 of file heap.c.
Definition at line 3084 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 1403 of file heap.c.
ULONG NTAPI RtlCreateTagHeap | ( | _In_ HANDLE | HeapHandle, |
_In_ ULONG | Flags, | ||
_In_opt_ PWSTR | TagName, | ||
_In_ PWSTR | TagSubName | ||
) |
Definition at line 4031 of file heap.c.
Referenced by HeapCreateTagsW(), and SmpInit().
Definition at line 1729 of file heap.c.
NTSTATUS NTAPI RtlEnumProcessHeaps | ( | PHEAP_ENUMERATION_ROUTINE | HeapEnumerationRoutine, |
PVOID | lParam | ||
) |
Definition at line 2267 of file heap.c.
Definition at line 3774 of file heap.c.
Referenced by GetProcessHeaps().
BOOLEAN NTAPI RtlGetUserInfoHeap | ( | IN PVOID | HeapHandle, |
IN ULONG | Flags, | ||
IN PVOID | BaseAddress, | ||
OUT PVOID * | UserValue, | ||
OUT PULONG | UserFlags | ||
) |
Definition at line 3928 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 4125 of file heap.c.
ULONG NTAPI RtlMultipleFreeHeap | ( | IN PVOID | HeapHandle, |
IN ULONG | Flags, | ||
IN ULONG | Count, | ||
OUT PVOID * | Array | ||
) |
Definition at line 4161 of file heap.c.
|
static |
Definition at line 1957 of file heap.c.
Referenced by RtlAllocateHeap().
BOOLEAN NTAPI RtlpCheckInUsePattern | ( | PHEAP_ENTRY | HeapEntry | ) |
Definition at line 3230 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 1150 of file heap.c.
Referenced by RtlFreeHeap(), RtlpDeCommitFreeBlock(), RtlpExtendHeap(), and RtlpGrowBlockInPlace().
PHEAP_FREE_ENTRY NTAPI RtlpCoalesceHeap | ( | PHEAP | Heap | ) |
Definition at line 1143 of file heap.c.
Referenced by RtlpExtendHeap().
PHEAP_UCR_DESCRIPTOR NTAPI RtlpCreateUnCommittedRange | ( | PHEAP_SEGMENT | Segment | ) |
Definition at line 513 of file heap.c.
Referenced by RtlpDeCommitFreeBlock(), and RtlpInsertUnCommittedPages().
|
static |
Definition at line 834 of file heap.c.
Referenced by RtlFreeHeap().
VOID NTAPI RtlpDestroyHeapSegment | ( | PHEAP_SEGMENT | Segment | ) |
Definition at line 1118 of file heap.c.
Referenced by RtlDestroyHeap().
VOID NTAPI RtlpDestroyUnCommittedRange | ( | PHEAP_SEGMENT | Segment, |
PHEAP_UCR_DESCRIPTOR | UcrDescriptor | ||
) |
Definition at line 608 of file heap.c.
Referenced by RtlpDeCommitFreeBlock(), RtlpFindAndCommitPages(), and RtlpInsertUnCommittedPages().
|
static |
Definition at line 1247 of file heap.c.
Referenced by RtlpAllocateNonDedicated().
|
static |
Definition at line 690 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 2632 of file heap.c.
Referenced by RtlAllocateHeap(), RtlGetUserInfoHeap(), RtlpAllocateNonDedicated(), RtlReAllocateHeap(), and RtlSetUserValueHeap().
SIZE_T NTAPI RtlpGetSizeOfBigBlock | ( | PHEAP_ENTRY | HeapEntry | ) |
Definition at line 500 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 2392 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 1002 of file heap.c.
Referenced by RtlCreateHeap(), and RtlpExtendHeap().
VOID NTAPI RtlpInsertFreeBlock | ( | PHEAP | Heap, |
PHEAP_FREE_ENTRY | FreeEntry, | ||
SIZE_T | BlockSize | ||
) |
Definition at line 357 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 620 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 422 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 1817 of file heap.c.
Referenced by RtlAllocateHeap(), and RtlpAllocateNonDedicated().
Definition at line 3513 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 3269 of file heap.c.
Referenced by RtlDebugFreeHeap(), RtlDebugGetUserInfoHeap(), RtlDebugReAllocateHeap(), RtlDebugSetUserFlagsHeap(), RtlDebugSetUserValueHeap(), RtlDebugSizeHeap(), and RtlValidateHeap().
Definition at line 3260 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 3326 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 4091 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 4006 of file heap.c.
Referenced by HeapQueryTagW().
Definition at line 2667 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 4061 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 3873 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 3811 of file heap.c.
Referenced by GlobalAlloc(), GlobalReAlloc(), LocalAlloc(), LocalReAlloc(), RtlDebugSetUserValueHeap(), and START_TEST().
Definition at line 3180 of file heap.c.
Definition at line 3143 of file heap.c.
Referenced by GlobalAlloc(), GlobalFlags(), GlobalFree(), GlobalHandle(), GlobalLock(), GlobalReAlloc(), GlobalSize(), GlobalUnlock(), HeapUnlock(), LocalAlloc(), LocalFlags(), LocalReAlloc(), and LocalUnlock().
Definition at line 3712 of file heap.c.
UCHAR FillPattern[HEAP_ENTRY_SIZE] |
UCHAR RtlpBitsClearLow[] |
Definition at line 31 of file heap.c.
Referenced by RtlpFindLeastSetBit().