Home
last modified time | relevance | path

Searched refs:allocated_size (Results 1 – 25 of 1389) sorted by relevance

12345678910>>...56

/dports/sysutils/dar/dar-2.5.14-bis/src/libdar/
H A Dsecu_string.cpp182 allocated_size = nullptr; in init()
190 if(allocated_size == nullptr) in init()
193 meta_new(allocated_size, 1); in init()
194 if(allocated_size == nullptr) in init()
198 *allocated_size = size + 1; in init()
233 if(*(ref.allocated_size) == 0) in copy_from()
240 init(*(ref.allocated_size) - 1); in copy_from()
282 if(allocated_size != nullptr) in clean_and_destroy()
286 gcry_free(allocated_size); in clean_and_destroy()
288 meta_delete(allocated_size); in clean_and_destroy()
[all …]
/dports/databases/xtrabackup/percona-xtrabackup-2.4.21/unittest/gunit/
H A Dmy_alloc-t.cc171 size_t pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
176 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
182 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
190 EXPECT_LT(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
191 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
197 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
201 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
207 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
210 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
214 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
[all …]
/dports/databases/percona57-client/percona-server-5.7.36-39/unittest/gunit/
H A Dmy_alloc-t.cc171 size_t pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
176 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
182 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
190 EXPECT_LT(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
191 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
197 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
201 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
207 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
210 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
214 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
[all …]
/dports/databases/mysqlwsrep57-server/mysql-wsrep-wsrep_5.7.35-25.27/unittest/gunit/
H A Dmy_alloc-t.cc171 size_t pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
176 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
182 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
190 EXPECT_LT(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
191 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
197 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
201 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
207 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
210 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
214 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
[all …]
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/unittest/gunit/
H A Dmy_alloc-t.cc171 size_t pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
176 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
182 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
190 EXPECT_LT(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
191 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
197 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
201 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
207 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
210 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
214 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
[all …]
/dports/databases/percona57-server/percona-server-5.7.36-39/unittest/gunit/
H A Dmy_alloc-t.cc171 size_t pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
176 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
182 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
190 EXPECT_LT(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
191 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
197 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
201 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
207 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
210 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
214 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
[all …]
/dports/databases/mysql57-client/mysql-5.7.36/unittest/gunit/
H A Dmy_alloc-t.cc171 size_t pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
176 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
182 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
190 EXPECT_LT(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
191 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
197 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
201 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
207 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
210 EXPECT_EQ(pre_allocated, m_prealloc_root.allocated_size); in TEST_F()
214 pre_allocated= m_prealloc_root.allocated_size; in TEST_F()
[all …]
/dports/games/openomf/openomf-c36c421/src/utils/
H A Darray.c15 array->allocated_size = ARRAY_START_SIZE; in array_create()
17 array->data = malloc(PTR_SIZE(array->allocated_size)); in array_create()
18 array_nullify(array->data, array->allocated_size); in array_create()
22 array->allocated_size = 0; in array_free()
28 if(key >= array->allocated_size) { in array_set()
34 array_nullify(array->data + array->allocated_size, newsize - array->allocated_size); in array_set()
35 array->allocated_size = newsize; in array_set()
42 if(key > array->allocated_size) { in array_get()
51 while(iter->inow < arr->allocated_size) { in array_iter_next()
59 if(iter->inow + 1 >= arr->allocated_size) { in array_iter_next()
[all …]
/dports/graphics/libjxl/libjxl-0.6.1/lib/jxl/base/
H A Dcache_aligned.cc31 size_t allocated_size; member
77 const size_t allocated_size = offset + payload_size; in Allocate() local
84 const size_t allocated_size = kAlias + offset + payload_size; in Allocate() local
85 void* allocated = malloc(allocated_size); in Allocate()
99 if (madvise(reinterpret_cast<void*>(page_aligned), allocated_size, in Allocate()
105 if (mlock(allocated, allocated_size) != 0) { in Allocate()
113 bytes_in_use.fetch_add(allocated_size, std::memory_order_acq_rel); in Allocate()
117 std::max(expected_max, prev_bytes + allocated_size); in Allocate()
129 header->allocated_size = allocated_size; in Allocate()
144 bytes_in_use.fetch_add(~header->allocated_size + 1, in Free()
[all …]
/dports/www/firefox/firefox-99.0/third_party/jpeg-xl/lib/jxl/base/
H A Dcache_aligned.cc32 size_t allocated_size; member
79 const size_t allocated_size = offset + payload_size; in Allocate() local
86 const size_t allocated_size = kAlias + offset + payload_size; in Allocate() local
87 void* allocated = malloc(allocated_size); in Allocate()
101 if (madvise(reinterpret_cast<void*>(page_aligned), allocated_size, in Allocate()
107 if (mlock(allocated, allocated_size) != 0) { in Allocate()
115 bytes_in_use.fetch_add(allocated_size, std::memory_order_acq_rel); in Allocate()
119 std::max(expected_max, prev_bytes + allocated_size); in Allocate()
131 header->allocated_size = allocated_size; in Allocate()
146 bytes_in_use.fetch_add(~header->allocated_size + 1, in Free()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/jpeg-xl/lib/jxl/base/
H A Dcache_aligned.cc31 size_t allocated_size; member
77 const size_t allocated_size = offset + payload_size; in Allocate() local
84 const size_t allocated_size = kAlias + offset + payload_size; in Allocate() local
85 void* allocated = malloc(allocated_size); in Allocate()
99 if (madvise(reinterpret_cast<void*>(page_aligned), allocated_size, in Allocate()
105 if (mlock(allocated, allocated_size) != 0) { in Allocate()
113 bytes_in_use.fetch_add(allocated_size, std::memory_order_acq_rel); in Allocate()
117 std::max(expected_max, prev_bytes + allocated_size); in Allocate()
129 header->allocated_size = allocated_size; in Allocate()
144 bytes_in_use.fetch_add(~header->allocated_size + 1, in Free()
[all …]
/dports/www/firefox-esr/firefox-91.8.0/third_party/jpeg-xl/lib/jxl/base/
H A Dcache_aligned.cc31 size_t allocated_size; member
77 const size_t allocated_size = offset + payload_size; in Allocate() local
84 const size_t allocated_size = kAlias + offset + payload_size; in Allocate() local
85 void* allocated = malloc(allocated_size); in Allocate()
99 if (madvise(reinterpret_cast<void*>(page_aligned), allocated_size, in Allocate()
105 if (mlock(allocated, allocated_size) != 0) { in Allocate()
113 bytes_in_use.fetch_add(allocated_size, std::memory_order_acq_rel); in Allocate()
117 std::max(expected_max, prev_bytes + allocated_size); in Allocate()
129 header->allocated_size = allocated_size; in Allocate()
144 bytes_in_use.fetch_add(~header->allocated_size + 1, in Free()
[all …]
/dports/devel/protobuf/protobuf-3.17.3/src/google/protobuf/
H A Drepeated_field.cc76 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
78 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
79 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
81 rep_->allocated_size = 0; in InternalExtend()
102 if (!rep_ || rep_->allocated_size == total_size_) { in AddOutOfLineHelper()
105 ++rep_->allocated_size; in AddOutOfLineHelper()
113 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
116 rep_->allocated_size -= num; in CloseGap()
120 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
123 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
[all …]
/dports/devel/py-grpcio-tools/grpcio-tools-1.43.0/third_party/protobuf/src/google/protobuf/
H A Drepeated_field.cc76 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
78 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
79 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
81 rep_->allocated_size = 0; in InternalExtend()
102 if (!rep_ || rep_->allocated_size == total_size_) { in AddOutOfLineHelper()
105 ++rep_->allocated_size; in AddOutOfLineHelper()
113 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
116 rep_->allocated_size -= num; in CloseGap()
120 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
123 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
[all …]
/dports/devel/avro-c/avro-c-1.11.0/src/
H A Darray.c38 avro_free(array->data, array->allocated_size); in avro_raw_array_done()
54 if (array->allocated_size >= required_size) { in avro_raw_array_ensure_size()
63 if (array->allocated_size == 0) { in avro_raw_array_ensure_size()
70 new_size = array->allocated_size * 2; in avro_raw_array_ensure_size()
77 array->data = avro_realloc(array->data, array->allocated_size, new_size); in avro_raw_array_ensure_size()
83 array->allocated_size = new_size; in avro_raw_array_ensure_size()
93 size_t old_allocated_size = array->allocated_size; in avro_raw_array_ensure_size0()
96 if (array->allocated_size > old_allocated_size) { in avro_raw_array_ensure_size0()
97 size_t extra_space = array->allocated_size - old_allocated_size; in avro_raw_array_ensure_size0()
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/lib/avro/src/
H A Darray.c38 avro_free(array->data, array->allocated_size); in avro_raw_array_done()
54 if (array->allocated_size >= required_size) { in avro_raw_array_ensure_size()
63 if (array->allocated_size == 0) { in avro_raw_array_ensure_size()
70 new_size = array->allocated_size * 2; in avro_raw_array_ensure_size()
77 array->data = avro_realloc(array->data, array->allocated_size, new_size); in avro_raw_array_ensure_size()
83 array->allocated_size = new_size; in avro_raw_array_ensure_size()
93 size_t old_allocated_size = array->allocated_size; in avro_raw_array_ensure_size0()
96 if (array->allocated_size > old_allocated_size) { in avro_raw_array_ensure_size0()
97 size_t extra_space = array->allocated_size - old_allocated_size; in avro_raw_array_ensure_size0()
/dports/graphics/mapserver/mapserver-7.6.4/
H A Dmapgeomutil.cpp38 static int allocated_size=100; in msRasterizeArc() local
55 line->point = (pointObj*)calloc(allocated_size,sizeof(pointObj)); in msRasterizeArc()
58 __FILE__, __LINE__, (unsigned int)(allocated_size*sizeof(pointObj))); in msRasterizeArc()
75 if(line->numpoints == allocated_size) { in msRasterizeArc()
76 allocated_size *= 2; in msRasterizeArc()
77 line->point = (pointObj*)realloc(line->point, allocated_size * sizeof(pointObj)); in msRasterizeArc()
80 __FILE__, __LINE__, (unsigned int)(allocated_size * sizeof(pointObj))); in msRasterizeArc()
94 if(line->numpoints == allocated_size) { in msRasterizeArc()
95 allocated_size *= 2; in msRasterizeArc()
96 line->point = (pointObj*)msSmallRealloc(line->point, allocated_size * sizeof(pointObj)); in msRasterizeArc()
/dports/devel/tla/tla-1.3.5/src/hackerlab/tests/mem-tests/
H A Dunit-must-malloc.c80 size_t * allocated_size; in malloc_stress_test() local
87 allocated_size = 0; in malloc_stress_test()
135 *(size_t *)ar_push ((void **)&allocated_size, lim_use_must_malloc, sizeof (size_t)) = 12; in malloc_stress_test()
148 *(size_t *)ar_push ((void **)&allocated_size, lim_use_must_malloc, sizeof (size_t)) = 12; in malloc_stress_test()
172 old_amt = allocated_size[which]; in malloc_stress_test()
181 allocated_size[which] = amt; in malloc_stress_test()
192 amt_used -= allocated_size[which]; in malloc_stress_test()
197 mem_move ((t_uchar *)&allocated_size[which], in malloc_stress_test()
198 (t_uchar *)&allocated_size[which + 1], in malloc_stress_test()
199 …sizeof (size_t) * (ar_size ((void *)allocated_size, lim_use_must_malloc, sizeof (*allocated_size))… in malloc_stress_test()
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/toolkit/components/protobuf/src/google/protobuf/
H A Drepeated_field.cc74 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
76 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
77 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
79 rep_->allocated_size = 0; in InternalExtend()
102 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
105 rep_->allocated_size -= num; in CloseGap()
109 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
112 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
115 ++rep_->allocated_size; in AddWeak()
/dports/mail/thunderbird/thunderbird-91.8.0/toolkit/components/protobuf/src/google/protobuf/
H A Drepeated_field.cc74 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
76 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
77 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
79 rep_->allocated_size = 0; in InternalExtend()
102 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
105 rep_->allocated_size -= num; in CloseGap()
109 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
112 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
115 ++rep_->allocated_size; in AddWeak()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/protobuf/src/google/protobuf/
H A Drepeated_field.cc72 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
74 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
75 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
77 rep_->allocated_size = 0; in InternalExtend()
100 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
103 rep_->allocated_size -= num; in CloseGap()
107 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
110 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
113 ++rep_->allocated_size; in AddWeak()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/protobuf/src/google/protobuf/
H A Drepeated_field.cc72 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
74 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
75 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
77 rep_->allocated_size = 0; in InternalExtend()
100 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
103 rep_->allocated_size -= num; in CloseGap()
107 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
110 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
113 ++rep_->allocated_size; in AddWeak()
/dports/www/firefox/firefox-99.0/toolkit/components/protobuf/src/google/protobuf/
H A Drepeated_field.cc74 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
76 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
77 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
79 rep_->allocated_size = 0; in InternalExtend()
102 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
105 rep_->allocated_size -= num; in CloseGap()
109 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
112 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
115 ++rep_->allocated_size; in AddWeak()
/dports/www/firefox-esr/firefox-91.8.0/toolkit/components/protobuf/src/google/protobuf/
H A Drepeated_field.cc74 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
76 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
77 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
79 rep_->allocated_size = 0; in InternalExtend()
102 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
105 rep_->allocated_size -= num; in CloseGap()
109 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
112 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
115 ++rep_->allocated_size; in AddWeak()
/dports/devel/ctypes.sh/ctypes-sh-1.2/src/struct/
H A Dgobuffer.c27 gb->nr_entries = gb->allocated_size = 0; in gobuffer__init()
63 if (index >= gb->allocated_size) { in gobuffer__allocate()
64 unsigned int allocated_size = (gb->allocated_size + in gobuffer__allocate() local
66 if (allocated_size < index) in gobuffer__allocate()
67 allocated_size = index + GOBUFFER__BCHUNK; in gobuffer__allocate()
68 char *entries = realloc(gb->entries, allocated_size); in gobuffer__allocate()
73 gb->allocated_size = allocated_size; in gobuffer__allocate()

12345678910>>...56