Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 25 of 699) sorted by relevance

12345678910>>...28

/external/mesa3d/src/mesa/main/
Dmm.c34 mmDumpMemInfo(const struct mem_block *heap) in mmDumpMemInfo() argument
36 fprintf(stderr, "Memory heap %p:\n", (void *)heap); in mmDumpMemInfo()
37 if (heap == 0) { in mmDumpMemInfo()
42 for(p = heap->next; p != heap; p = p->next) { in mmDumpMemInfo()
50 for(p = heap->next_free; p != heap; p = p->next_free) { in mmDumpMemInfo()
63 struct mem_block *heap, *block; in mmInit() local
68 heap = (struct mem_block *) calloc(1, sizeof(struct mem_block)); in mmInit()
69 if (!heap) in mmInit()
74 free(heap); in mmInit()
78 heap->next = block; in mmInit()
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/main/
Dmm.c34 mmDumpMemInfo(const struct mem_block *heap) in mmDumpMemInfo() argument
36 fprintf(stderr, "Memory heap %p:\n", (void *)heap); in mmDumpMemInfo()
37 if (heap == 0) { in mmDumpMemInfo()
42 for(p = heap->next; p != heap; p = p->next) { in mmDumpMemInfo()
50 for(p = heap->next_free; p != heap; p = p->next_free) { in mmDumpMemInfo()
63 struct mem_block *heap, *block; in mmInit() local
68 heap = (struct mem_block *) calloc(1, sizeof(struct mem_block)); in mmInit()
69 if (!heap) in mmInit()
74 free(heap); in mmInit()
78 heap->next = block; in mmInit()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_mm.c34 u_mmDumpMemInfo(const struct mem_block *heap) in u_mmDumpMemInfo() argument
36 debug_printf("Memory heap %p:\n", (void *) heap); in u_mmDumpMemInfo()
37 if (heap == 0) { in u_mmDumpMemInfo()
44 for (p = heap->next; p != heap; p = p->next) { in u_mmDumpMemInfo()
58 for (p = heap->next_free; p != heap; p = p->next_free) { in u_mmDumpMemInfo()
72 struct mem_block *heap, *block; in u_mmInit() local
77 heap = CALLOC_STRUCT(mem_block); in u_mmInit()
78 if (!heap) in u_mmInit()
83 FREE(heap); in u_mmInit()
87 heap->next = block; in u_mmInit()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
Du_mm.c34 u_mmDumpMemInfo(const struct mem_block *heap) in u_mmDumpMemInfo() argument
36 debug_printf("Memory heap %p:\n", (void *) heap); in u_mmDumpMemInfo()
37 if (heap == 0) { in u_mmDumpMemInfo()
44 for (p = heap->next; p != heap; p = p->next) { in u_mmDumpMemInfo()
58 for (p = heap->next_free; p != heap; p = p->next_free) { in u_mmDumpMemInfo()
72 struct mem_block *heap, *block; in u_mmInit() local
77 heap = CALLOC_STRUCT(mem_block); in u_mmInit()
78 if (!heap) in u_mmInit()
83 FREE(heap); in u_mmInit()
87 heap->next = block; in u_mmInit()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nouveau/
Dnouveau_heap.c29 nouveau_heap_init(struct nouveau_heap **heap, in nouveau_heap_init() argument
40 *heap = r; in nouveau_heap_init()
45 nouveau_heap_destroy(struct nouveau_heap **heap) in nouveau_heap_destroy() argument
47 if (!*heap) in nouveau_heap_destroy()
49 free(*heap); in nouveau_heap_destroy()
50 *heap = NULL; in nouveau_heap_destroy()
54 nouveau_heap_alloc(struct nouveau_heap *heap, unsigned size, void *priv, in nouveau_heap_alloc() argument
59 if (!heap || !size || !res || *res) in nouveau_heap_alloc()
62 while (heap) { in nouveau_heap_alloc()
63 if (!heap->in_use && heap->size >= size) { in nouveau_heap_alloc()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_heap.c29 nouveau_heap_init(struct nouveau_heap **heap, in nouveau_heap_init() argument
40 *heap = r; in nouveau_heap_init()
45 nouveau_heap_destroy(struct nouveau_heap **heap) in nouveau_heap_destroy() argument
47 if (!*heap) in nouveau_heap_destroy()
49 free(*heap); in nouveau_heap_destroy()
50 *heap = NULL; in nouveau_heap_destroy()
54 nouveau_heap_alloc(struct nouveau_heap *heap, unsigned size, void *priv, in nouveau_heap_alloc() argument
59 if (!heap || !size || !res || *res) in nouveau_heap_alloc()
62 while (heap) { in nouveau_heap_alloc()
63 if (!heap->in_use && heap->size >= size) { in nouveau_heap_alloc()
[all …]
/external/chromium_org/v8/src/
Dobjects-visiting-inl.h112 Heap* heap = map->GetHeap(); in VisitJSArrayBuffer() local
118 heap, in VisitJSArrayBuffer()
122 heap, in VisitJSArrayBuffer()
250 Heap* heap, Address entry_address) { in VisitCodeEntry() argument
252 heap->mark_compact_collector()->RecordCodeEntrySlot(entry_address, code); in VisitCodeEntry()
253 StaticVisitor::MarkObject(heap, code); in VisitCodeEntry()
259 Heap* heap, RelocInfo* rinfo) { in VisitEmbeddedPointer() argument
263 heap->mark_compact_collector()->RecordRelocSlot(rinfo, object); in VisitEmbeddedPointer()
265 StaticVisitor::MarkObject(heap, object); in VisitEmbeddedPointer()
272 Heap* heap, RelocInfo* rinfo) { in VisitCell() argument
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DheapProfiler.css32 .heap-snapshot-sidebar-tree-item .icon {
36 .heap-snapshot-sidebar-tree-item.wait .icon {
40 .heap-snapshot-sidebar-tree-item.wait.selected .icon {
44 body.inactive .heap-snapshot-sidebar-tree-item.wait .icon {
48 body.inactive .heap-snapshot-sidebar-tree-item.wait.selected .icon {
52 .heap-snapshot-sidebar-tree-item.small .icon {
56 .heap-snapshot-view {
66 .heap-snapshot-view.visible {
70 .heap-snapshot-view .view {
74 .heap-snapshot-view .view.visible {
[all …]
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dthread_cache.cc350 ThreadCache* heap = NULL; in CreateCacheIfNecessary() local
376 heap = h; in CreateCacheIfNecessary()
381 if (heap == NULL) heap = NewHeap(me); in CreateCacheIfNecessary()
388 if (!heap->in_setspecific_ && tsd_inited_) { in CreateCacheIfNecessary()
389 heap->in_setspecific_ = true; in CreateCacheIfNecessary()
390 perftools_pthread_setspecific(heap_key_, heap); in CreateCacheIfNecessary()
393 threadlocal_heap_ = heap; in CreateCacheIfNecessary()
395 heap->in_setspecific_ = false; in CreateCacheIfNecessary()
397 return heap; in CreateCacheIfNecessary()
402 ThreadCache *heap = threadcache_allocator.New(); in NewHeap() local
[all …]
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dthread_cache.cc339 ThreadCache* heap = NULL; in CreateCacheIfNecessary() local
365 heap = h; in CreateCacheIfNecessary()
370 if (heap == NULL) heap = NewHeap(me); in CreateCacheIfNecessary()
377 if (!heap->in_setspecific_ && tsd_inited_) { in CreateCacheIfNecessary()
378 heap->in_setspecific_ = true; in CreateCacheIfNecessary()
379 perftools_pthread_setspecific(heap_key_, heap); in CreateCacheIfNecessary()
382 threadlocal_heap_ = heap; in CreateCacheIfNecessary()
384 heap->in_setspecific_ = false; in CreateCacheIfNecessary()
386 return heap; in CreateCacheIfNecessary()
391 ThreadCache *heap = threadcache_allocator.New(); in NewHeap() local
[all …]
/external/chromium_org/v8/test/cctest/
Dtest-mark-compact.cc77 Heap* heap = CcTest::heap(); in TEST() local
78 heap->ConfigureHeap(2*256*KB, 1*MB, 1*MB); in TEST()
86 Object* obj = heap->AllocateFixedArray(array_length)->ToObjectChecked(); in TEST()
90 CHECK(heap->InSpace(*array, NEW_SPACE)); in TEST()
93 heap->CollectGarbage(OLD_POINTER_SPACE); in TEST()
96 CHECK(heap->InSpace(*array, OLD_POINTER_SPACE)); in TEST()
102 Heap* heap = CcTest::heap(); in TEST() local
103 heap->ConfigureHeap(2*256*KB, 1*MB, 1*MB); in TEST()
111 Object* obj = heap->AllocateFixedArray(array_length)->ToObjectChecked(); in TEST()
115 CHECK(heap->InSpace(*array, NEW_SPACE)); in TEST()
[all …]
Dtest-heap.cc45 MarkCompactCollector* collector = CcTest::heap()->mark_compact_collector(); in SimulateIncrementalMarking()
46 IncrementalMarking* marking = CcTest::heap()->incremental_marking(); in SimulateIncrementalMarking()
65 CHECK(CcTest::heap()->Contains(map)); in CheckMap()
67 CHECK_EQ(CcTest::heap()->meta_map(), map->map()); in CheckMap()
75 Heap* heap = CcTest::heap(); in TEST() local
76 CheckMap(heap->meta_map(), MAP_TYPE, Map::kSize); in TEST()
77 CheckMap(heap->heap_number_map(), HEAP_NUMBER_TYPE, HeapNumber::kSize); in TEST()
78 CheckMap(heap->fixed_array_map(), FIXED_ARRAY_TYPE, kVariableSizeSentinel); in TEST()
79 CheckMap(heap->string_map(), STRING_TYPE, kVariableSizeSentinel); in TEST()
103 Object* obj = CcTest::heap()->NumberFromDouble(value)->ToObjectChecked(); in CheckNumber()
[all …]
Dtest-alloc.cc40 Heap* heap = CcTest::heap(); in AllocateAfterFailures() local
43 SimulateFullSpace(heap->new_space()); in AllocateAfterFailures()
44 CHECK(!heap->AllocateByteArray(100)->IsFailure()); in AllocateAfterFailures()
45 CHECK(!heap->AllocateFixedArray(100, NOT_TENURED)->IsFailure()); in AllocateAfterFailures()
49 CHECK(!heap->AllocateFixedArray(100)->IsFailure()); in AllocateAfterFailures()
50 CHECK(!heap->AllocateHeapNumber(0.42)->IsFailure()); in AllocateAfterFailures()
51 CHECK(!heap->AllocateArgumentsObject(Smi::FromInt(87), 10)->IsFailure()); in AllocateAfterFailures()
52 Object* object = heap->AllocateJSObject( in AllocateAfterFailures()
54 CHECK(!heap->CopyJSObject(JSObject::cast(object))->IsFailure()); in AllocateAfterFailures()
57 SimulateFullSpace(heap->old_data_space()); in AllocateAfterFailures()
[all …]
Dtest-spaces.cc75 p->heap_ = CcTest::heap();
149 Heap* heap, in VerifyMemoryChunk() argument
156 CHECK(memory_allocator->SetUp(heap->MaxReserved(), in VerifyMemoryChunk()
157 heap->MaxExecutableSize())); in VerifyMemoryChunk()
212 Heap* heap = isolate->heap(); in TEST() local
213 CHECK(heap->ConfigureHeapDefault()); in TEST()
228 heap, in TEST()
236 heap, in TEST()
247 heap, in TEST()
255 heap, in TEST()
[all …]
Dtest-weaktypedarrays.cc44 static int CountArrayBuffersInWeakList(Heap* heap) { in CountArrayBuffersInWeakList() argument
46 for (Object* o = heap->array_buffers_list(); in CountArrayBuffersInWeakList()
55 static bool HasArrayBufferInWeakList(Heap* heap, JSArrayBuffer* ab) { in HasArrayBufferInWeakList() argument
56 for (Object* o = heap->array_buffers_list(); in HasArrayBufferInWeakList()
92 int start = CountArrayBuffersInWeakList(isolate->heap()); in TEST()
104 CHECK_EQ(2, CountArrayBuffersInWeakList(isolate->heap()) - start); in TEST()
105 CHECK(HasArrayBufferInWeakList(isolate->heap(), *iab1)); in TEST()
106 CHECK(HasArrayBufferInWeakList(isolate->heap(), *iab2)); in TEST()
108 isolate->heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask); in TEST()
109 CHECK_EQ(1, CountArrayBuffersInWeakList(isolate->heap()) - start); in TEST()
[all …]
Dtest-weakmaps.cc44 Heap* heap = isolate->heap(); in AllocateJSWeakMap() local
49 Object* table_obj = ObjectHashTable::Allocate(heap, 1)->ToObjectChecked(); in AllocateJSWeakMap()
81 Heap* heap = isolate->heap(); in TEST() local
106 heap->CollectAllGarbage(false); in TEST()
124 heap->CollectAllGarbage(false); in TEST()
129 heap->CollectAllGarbage(false); in TEST()
141 Heap* heap = isolate->heap(); in TEST() local
165 heap->CollectAllGarbage(false); in TEST()
182 Heap* heap = isolate->heap(); in TEST() local
190 Page* first_page = heap->old_pointer_space()->anchor()->next_page(); in TEST()
[all …]
Dtest-weaksets.cc44 Heap* heap = isolate->heap(); in AllocateJSWeakSet() local
49 Object* table_obj = ObjectHashTable::Allocate(heap, 1)->ToObjectChecked(); in AllocateJSWeakSet()
81 Heap* heap = isolate->heap(); in TEST() local
106 heap->CollectAllGarbage(false); in TEST()
124 heap->CollectAllGarbage(false); in TEST()
129 heap->CollectAllGarbage(false); in TEST()
141 Heap* heap = isolate->heap(); in TEST() local
165 heap->CollectAllGarbage(false); in TEST()
182 Heap* heap = isolate->heap(); in TEST() local
190 Page* first_page = heap->old_pointer_space()->anchor()->next_page(); in TEST()
[all …]
/external/chromium_org/v8/src/extensions/
Dstatistics-extension.cc76 Heap* heap = isolate->heap(); in GetCounters() local
80 heap->CollectAllGarbage(Heap::kNoGCFlags, "counters extension"); in GetCounters()
122 AddNumber(args.GetIsolate(), result, heap->new_space()->Size(), in GetCounters()
124 AddNumber(args.GetIsolate(), result, heap->new_space()->Available(), in GetCounters()
126 AddNumber(args.GetIsolate(), result, heap->new_space()->CommittedMemory(), in GetCounters()
128 AddNumber(args.GetIsolate(), result, heap->old_pointer_space()->Size(), in GetCounters()
130 AddNumber(args.GetIsolate(), result, heap->old_pointer_space()->Available(), in GetCounters()
133 heap->old_pointer_space()->CommittedMemory(), in GetCounters()
135 AddNumber(args.GetIsolate(), result, heap->old_data_space()->Size(), in GetCounters()
137 AddNumber(args.GetIsolate(), result, heap->old_data_space()->Available(), in GetCounters()
[all …]
/external/v8/test/cctest/
Dtest-alloc.cc40 Heap* heap = Isolate::Current()->heap(); in AllocateAfterFailures() local
43 NewSpace* new_space = heap->new_space(); in AllocateAfterFailures()
47 CHECK(!heap->AllocateByteArray(0)->IsFailure()); in AllocateAfterFailures()
55 CHECK(!heap->AllocateByteArray(100)->IsFailure()); in AllocateAfterFailures()
56 CHECK(!heap->AllocateFixedArray(100, NOT_TENURED)->IsFailure()); in AllocateAfterFailures()
60 CHECK(!heap->AllocateFixedArray(100)->IsFailure()); in AllocateAfterFailures()
61 CHECK(!heap->AllocateHeapNumber(0.42)->IsFailure()); in AllocateAfterFailures()
62 CHECK(!heap->AllocateArgumentsObject(Smi::FromInt(87), 10)->IsFailure()); in AllocateAfterFailures()
63 Object* object = heap->AllocateJSObject( in AllocateAfterFailures()
65 CHECK(!heap->CopyJSObject(JSObject::cast(object))->IsFailure()); in AllocateAfterFailures()
[all …]
/external/bzip2/
Dhuffman.c36 zz = z; tmp = heap[zz]; \
37 while (weight[tmp] < weight[heap[zz >> 1]]) { \
38 heap[zz] = heap[zz >> 1]; \
41 heap[zz] = tmp; \
47 zz = z; tmp = heap[zz]; \
52 weight[heap[yy+1]] < weight[heap[yy]]) \
54 if (weight[tmp] < weight[heap[yy]]) break; \
55 heap[zz] = heap[yy]; \
58 heap[zz] = tmp; \
75 Int32 heap [ BZ_MAX_ALPHA_SIZE + 2 ]; in BZ2_hbMakeCodeLengths() local
[all …]
/external/skia/tests/
DBitmapHeapTest.cpp54 SkBitmapHeap heap(1, 1); in DEF_TEST() local
56 controller.setBitmapStorage(&heap); in DEF_TEST()
60 REPORTER_ASSERT(reporter, heap.count() == 0); in DEF_TEST()
63 heap.deferAddingOwners(); in DEF_TEST()
65 heap.endAddingOwnersDeferral(true); in DEF_TEST()
69 REPORTER_ASSERT(reporter, heap.count() == 1); in DEF_TEST()
73 SkBitmapHeapEntry* entry = heap.getEntry(0); in DEF_TEST()
80 heap.freeMemoryIfPossible(~0U); in DEF_TEST()
81 REPORTER_ASSERT(reporter, heap.count() == 0); in DEF_TEST()
84 heap.deferAddingOwners(); in DEF_TEST()
[all …]
/external/v8/tools/
Dgrokdump.py617 def FormatDisasmLine(start, heap, line): argument
619 stack_slot = heap.stack_map.get(line_address)
623 code = AnnotateAddresses(heap, line[1])
627 def AnnotateAddresses(heap, line): argument
631 object = heap.FindObject(maybe_address)
639 def __init__(self, heap, map, address): argument
640 self.heap = heap
651 return "HeapObject(%s, %s)" % (self.heap.reader.FormatIntPtr(self.address),
655 field_value = self.heap.reader.ReadUIntPtr(self.address + offset)
656 return self.heap.FindObjectOrSmi(field_value)
[all …]
/external/grub/stage2/
Dcmdline.c121 enter_cmdline (char *heap, int forever) in enter_cmdline() argument
138 *heap = 0; in enter_cmdline()
143 if (get_cmdline (PACKAGE "> ", heap, 2048, 0, 1)) in enter_cmdline()
147 if (! heap[0]) in enter_cmdline()
151 builtin = find_command (heap); in enter_cmdline()
171 arg = skip_to (1, heap); in enter_cmdline()
183 run_script (char *script, char *heap) in run_script() argument
218 grub_memmove (heap, old_entry, (int) cur_entry - (int) old_entry); in run_script()
219 if (! *heap) in run_script()
228 grub_memmove (heap, "boot", 5); in run_script()
[all …]
/external/chromium_org/tools/telemetry/telemetry/core/heap/
Dchrome_js_heap_snapshot_parser.py7 from telemetry.core.heap import live_heap_object
8 from telemetry.core.heap import retaining_edge
44 heap = json.loads(raw_data)
48 self._node_list = heap['nodes']
49 self._edge_list = heap['edges']
50 self._strings = heap['strings']
52 self._node_types = heap['snapshot']['meta']['node_types'][0]
53 self._edge_types = heap['snapshot']['meta']['edge_types'][0]
54 node_fields = heap['snapshot']['meta']['node_fields']
55 edge_fields = heap['snapshot']['meta']['edge_fields']
[all …]
/external/chromium_org/v8/tools/
Dgrokdump.py111 def FullDump(reader, heap): argument
125 print FormatDisasmLine(start, heap, line)
158 heap_object = heap.FindObject(maybe_address)
877 def FormatDisasmLine(start, heap, line): argument
879 stack_slot = heap.stack_map.get(line_address)
883 code = AnnotateAddresses(heap, line[1])
887 def AnnotateAddresses(heap, line): argument
891 object = heap.FindObject(maybe_address)
899 def __init__(self, heap, map, address): argument
900 self.heap = heap
[all …]

12345678910>>...28