Home
last modified time | relevance | path

Searched refs:heap_size (Results 1 – 25 of 62) sorted by relevance

123

/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_interface_java.cpp30 const uptr heap_size; member
32 JavaContext(jptr heap_begin, jptr heap_size) in JavaContext()
34 , heap_size(heap_size) { in JavaContext()
68 void __tsan_java_init(jptr heap_begin, jptr heap_size) { in __tsan_java_init() argument
70 DPrintf("#%d: java_init(%p, %p)\n", thr->tid, heap_begin, heap_size); in __tsan_java_init()
73 CHECK_GT(heap_size, 0); in __tsan_java_init()
75 CHECK_EQ(heap_size % kHeapAlignment, 0); in __tsan_java_init()
76 CHECK_LT(heap_begin, heap_begin + heap_size); in __tsan_java_init()
77 jctx = new(jctx_buf) JavaContext(heap_begin, heap_size); in __tsan_java_init()
98 CHECK_LE(ptr + size, jctx->heap_begin + jctx->heap_size); in __tsan_java_alloc()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_interface_java.cc31 const uptr heap_size; member
33 JavaContext(jptr heap_begin, jptr heap_size) in JavaContext()
35 , heap_size(heap_size) { in JavaContext()
69 void __tsan_java_init(jptr heap_begin, jptr heap_size) { in __tsan_java_init() argument
71 DPrintf("#%d: java_init(%p, %p)\n", thr->tid, heap_begin, heap_size); in __tsan_java_init()
74 CHECK_GT(heap_size, 0); in __tsan_java_init()
76 CHECK_EQ(heap_size % kHeapAlignment, 0); in __tsan_java_init()
77 CHECK_LT(heap_begin, heap_begin + heap_size); in __tsan_java_init()
78 jctx = new(jctx_buf) JavaContext(heap_begin, heap_size); in __tsan_java_init()
99 CHECK_LE(ptr + size, jctx->heap_begin + jctx->heap_size); in __tsan_java_alloc()
[all …]
/external/arm-trusted-firmware/drivers/auth/mbedtls/
Dmbedtls_common.c32 size_t heap_size = 0; in mbedtls_init() local
39 err = plat_get_mbedtls_heap(&heap_addr, &heap_size); in mbedtls_init()
46 assert(heap_size >= TF_MBEDTLS_HEAP_SIZE); in mbedtls_init()
49 mbedtls_memory_buffer_alloc_init(heap_addr, heap_size); in mbedtls_init()
62 int get_mbedtls_heap_helper(void **heap_addr, size_t *heap_size) in get_mbedtls_heap_helper() argument
67 assert(heap_size != NULL); in get_mbedtls_heap_helper()
70 *heap_size = sizeof(heap); in get_mbedtls_heap_helper()
/external/linux-kselftest/tools/testing/selftests/android/ion/
Dionapp_export.c34 unsigned long map_len, heap_type, heap_size, flags; in main() local
43 heap_size = 0; in main()
68 heap_size = atoi(optarg); in main()
77 if (heap_size <= 0) { in main()
83 printf("heap_type: %ld, heap_size: %ld\n", heap_type, heap_size); in main()
85 info.heap_size = heap_size; in main()
/external/icing/icing/scoring/
Dranker.cc39 const int heap_size = scored_document_hits->size(); in Heapify() local
40 if (target_subtree_root_index >= heap_size) { in Heapify()
52 if (left < heap_size && in Heapify()
59 if (right < heap_size && in Heapify()
108 const int heap_size = scored_document_hits->size(); in BuildHeapInPlace() local
111 for (int subtree_root_index = heap_size / 2 - 1; subtree_root_index >= 0; in BuildHeapInPlace()
/external/tensorflow/tensorflow/compiler/xla/service/
Dheap_simulator.cc63 return result.heap_size; in MinimumMemoryForModule()
79 return result.heap_size; in MinimumMemoryForComputation()
93 return result.heap_size; in MinimumMemoryForComputation()
427 result.fragmentation_size = result.heap_size - no_frag_result.heap_size; in Finish()
502 result.heap_size = max_heap_size_; in Finish()
832 VLOG(1) << "result heap_size: " << result_.heap_size; in Finish()
834 result.heap_size = result_.heap_size; in Finish()
898 ChunkCandidate chunk_candidate{Chunk{-1, INT64_MAX}, result_.heap_size}; in FindChunkCandidate()
910 } else if (free_offset + free_size == result_.heap_size && in FindChunkCandidate()
915 chunk_candidate.heap_size = preferred_chunk_end; in FindChunkCandidate()
[all …]
/external/libcxxabi/src/
Dfallback_malloc.cpp63 typedef unsigned short heap_size; typedef
67 heap_size len; // size in units of "sizeof(heap_node)"
114 p->len = static_cast<heap_size>(p->len - nelems); in fallback_malloc()
117 q->len = static_cast<heap_size>(nelems); in fallback_malloc()
159 p->len = static_cast<heap_size>( in fallback_free()
167 cp->len = static_cast<heap_size>(cp->len + p->len); in fallback_free()
188 heap_size total_free = 0; in print_free_list()
Dcxa_vector.cpp146 const size_t heap_size = element_count * element_size + padding_size; in __cxa_vec_new2() local
147 char * const heap_block = static_cast<char *> ( alloc ( heap_size )); in __cxa_vec_new2()
174 const size_t heap_size = element_count * element_size + padding_size; in __cxa_vec_new3() local
175 char * const heap_block = static_cast<char *> ( alloc ( heap_size )); in __cxa_vec_new3()
179 st_heap_block3 heap ( dealloc, heap_block, heap_size ); in __cxa_vec_new3()
/external/llvm-project/libcxxabi/src/
Dfallback_malloc.cpp65 typedef unsigned short heap_size; typedef
69 heap_size len; // size in units of "sizeof(heap_node)"
116 p->len = static_cast<heap_size>(p->len - nelems); in fallback_malloc()
119 q->len = static_cast<heap_size>(nelems); in fallback_malloc()
159 p->len = static_cast<heap_size>( in fallback_free()
166 cp->len = static_cast<heap_size>(cp->len + p->len); in fallback_free()
186 heap_size total_free = 0; in print_free_list()
/external/llvm-project/compiler-rt/test/asan/TestCases/Linux/
Dthread_local_quarantine_size_kb.cpp27 size_t heap_size = __sanitizer_get_heap_size(); in main() local
28 fprintf(stderr, "Heap size: %zd\n", heap_size); in main()
38 if (new_heap_size - heap_size < kHeapSizeIncrementLimit) in main()
Dthread_local_quarantine_pthread_join.cpp39 size_t heap_size = __sanitizer_get_heap_size(); in main() local
40 fprintf(stderr, "Heap size: %zd\n", heap_size); in main()
52 if (new_heap_size - heap_size < kHeapSizeIncrementLimit) in main()
/external/arm-trusted-firmware/plat/arm/css/sgi/
Dsgi_plat_v2.c68 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
71 assert(heap_size != NULL); in plat_get_mbedtls_heap()
73 return arm_get_mbedtls_heap(heap_addr, heap_size); in plat_get_mbedtls_heap()
Dsgi_plat.c145 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
148 assert(heap_size != NULL); in plat_get_mbedtls_heap()
150 return arm_get_mbedtls_heap(heap_addr, heap_size); in plat_get_mbedtls_heap()
/external/arm-trusted-firmware/plat/arm/board/juno/
Djuno_security.c151 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
154 assert(heap_size != NULL); in plat_get_mbedtls_heap()
156 return arm_get_mbedtls_heap(heap_addr, heap_size); in plat_get_mbedtls_heap()
/external/arm-trusted-firmware/plat/arm/common/
Darm_dyn_cfg.c47 int arm_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in arm_get_mbedtls_heap() argument
50 assert(heap_size != NULL); in arm_get_mbedtls_heap()
58 *heap_size = sizeof(heap); in arm_get_mbedtls_heap()
66 *heap_size = FCONF_GET_PROPERTY(tbbr, dyn_config, mbedtls_heap_size); in arm_get_mbedtls_heap()
/external/arm-trusted-firmware/plat/arm/board/tc0/
Dtc0_plat.c138 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
141 assert(heap_size != NULL); in plat_get_mbedtls_heap()
143 return arm_get_mbedtls_heap(heap_addr, heap_size); in plat_get_mbedtls_heap()
/external/arm-trusted-firmware/plat/imx/imx7/common/
Dimx7_trusted_boot.c33 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
35 return get_mbedtls_heap_helper(heap_addr, heap_size); in plat_get_mbedtls_heap()
/external/arm-trusted-firmware/plat/socionext/uniphier/
Duniphier_tbbr.c37 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
39 return get_mbedtls_heap_helper(heap_addr, heap_size); in plat_get_mbedtls_heap()
/external/arm-trusted-firmware/plat/qemu/common/
Dqemu_trusted_boot.c33 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
35 return get_mbedtls_heap_helper(heap_addr, heap_size); in plat_get_mbedtls_heap()
/external/arm-trusted-firmware/plat/hisilicon/hikey960/
Dhikey960_tbbr.c33 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
35 return get_mbedtls_heap_helper(heap_addr, heap_size); in plat_get_mbedtls_heap()
/external/arm-trusted-firmware/plat/hisilicon/hikey/
Dhikey_tbbr.c33 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
35 return get_mbedtls_heap_helper(heap_addr, heap_size); in plat_get_mbedtls_heap()
/external/arm-trusted-firmware/plat/rpi/common/
Drpi3_trusted_boot.c33 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
35 return get_mbedtls_heap_helper(heap_addr, heap_size); in plat_get_mbedtls_heap()
/external/perfetto/test/trace_processor/profiling/
Dheap_stats_closest_proc.out10 heap_size: 64
32 heap_size: 64
/external/arm-trusted-firmware/plat/arm/css/sgm/
Dsgm_plat_config.c76 int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) in plat_get_mbedtls_heap() argument
78 return get_mbedtls_heap_helper(heap_addr, heap_size); in plat_get_mbedtls_heap()
/external/tensorflow/tensorflow/core/kernels/
Dtopk_op_gpu.h279 const int heap_size = k < num_shards ? k : num_shards;
287 for (int slot = 0; slot < heap_size; slot++) {
290 min_heap.build(heap_size);
293 for (int shard = heap_size; shard < num_shards; shard++) {
304 min_heap.replace_root({shard, entry.value}, heap_size);
315 max_heap.build(heap_size);
329 heap_size);
394 const auto heap_size = k * sizeof(Entry<T>);
396 num_shards = shared_memory_size / heap_size - 1;

123