Home
last modified time | relevance | path

Searched refs:heap_node (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/external/cronet/third_party/libc++abi/src/src/
H A Dfallback_malloc.cpp71 struct heap_node { struct
83 static_assert(alignof(FallbackMaxAlignType) % sizeof(heap_node) == 0,
88 const size_t NodesPerAlignment = alignof(FallbackMaxAlignType) / sizeof(heap_node);
90 static const heap_node* list_end =
91 (heap_node*)(&heap[HEAP_SIZE]); // one past the end of the heap
92 static heap_node* freelist = NULL;
94 heap_node* node_from_offset(const heap_offset offset) { in node_from_offset()
95 return (heap_node*)(heap + (offset * sizeof(heap_node))); in node_from_offset()
98 heap_offset offset_from_node(const heap_node* ptr) { in offset_from_node()
101 sizeof(heap_node)); in offset_from_node()
[all …]
/aosp_15_r20/external/libcxxabi/src/
H A Dfallback_malloc.cpp65 struct heap_node { struct
70 static const heap_node* list_end =
71 (heap_node*)(&heap[HEAP_SIZE]); // one past the end of the heap
72 static heap_node* freelist = NULL;
74 heap_node* node_from_offset(const heap_offset offset) { in node_from_offset()
75 return (heap_node*)(heap + (offset * sizeof(heap_node))); in node_from_offset()
78 heap_offset offset_from_node(const heap_node* ptr) { in offset_from_node()
81 sizeof(heap_node)); in offset_from_node()
85 freelist = (heap_node*)heap; in init_heap()
87 freelist->len = HEAP_SIZE / sizeof(heap_node); in init_heap()
[all …]