/third_party/mindspore/mindspore/lite/src/train/ |
D | opt_allocator.cc | 24 for (auto const &itr : arena_) { in FindFree() 37 size_t length = arena_[addr]; in Reorder() 40 auto it = arena_.find(post); in Reorder() 41 if (it != arena_.end()) { in Reorder() 43 arena_[addr] = length + post_size; in Reorder() 44 arena_.erase(post); in Reorder() 47 auto itr = arena_.lower_bound(addr); in Reorder() 48 if (itr != arena_.begin()) { in Reorder() 51 if ((last + arena_[last]) == addr) { in Reorder() 52 arena_[last] = arena_[last] + arena_[addr]; in Reorder() [all …]
|
D | opt_allocator.h | 35 std::map<size_t, size_t> arena_; variable
|
/third_party/protobuf/src/google/protobuf/ |
D | lite_arena_unittest.cc | 45 arena_.reset(new Arena(options)); in LiteArenaTest() 48 Arena::CreateArray<char>(arena_.get(), 1); in LiteArenaTest() 51 std::unique_ptr<Arena> arena_; member in google::protobuf::__anonb06431ec0111::LiteArenaTest 64 Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(arena_.get()); in TEST_F() 69 Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(arena_.get()); in TEST_F() 78 arena_.get()); in TEST_F()
|
D | map_field.cc | 43 if (repeated_field_ != NULL && arena_ == NULL) delete repeated_field_; in ~MapFieldBase() 115 if (arena_ == nullptr) { in SyncRepeatedFieldWithMap() 119 Arena::CreateMessage<RepeatedPtrField<Message> >(arena_); in SyncRepeatedFieldWithMap() 133 repeated_field_ = Arena::CreateMessage<RepeatedPtrField<Message> >(arena_); in SyncRepeatedFieldWithMapNoLock() 175 if (MapFieldBase::arena_ == nullptr) { in Clear() 206 TYPE* value = Arena::Create<TYPE>(MapFieldBase::arena_); \ in AllocateMapValue() 223 Message* value = message.New(MapFieldBase::arena_); in AllocateMapValue() 256 if (MapFieldBase::arena_ == nullptr) { in DeleteMapValue() 365 if (MapFieldBase::arena_ == NULL) { in SyncRepeatedFieldWithMapNoLock() 370 MapFieldBase::arena_); in SyncRepeatedFieldWithMapNoLock() [all …]
|
D | extension_set.cc | 188 : arena_(arena), in ExtensionSet() 193 : Arena::CreateArray<KeyValue>(arena_, flat_capacity_)} {} in ExtensionSet() 196 : arena_(NULL), in ExtensionSet() 201 : Arena::CreateArray<KeyValue>(arena_, flat_capacity_)} {} in ExtensionSet() 205 if (arena_ == NULL) { in ~ExtensionSet() 348 Arena::CreateMessage<RepeatedField<LOWERCASE>>(arena_); \ 393 Arena::CreateMessage<RepeatedField<int32>>(arena_); in MutableRawRepeatedField() 397 Arena::CreateMessage<RepeatedField<int64>>(arena_); in MutableRawRepeatedField() 401 Arena::CreateMessage<RepeatedField<uint32>>(arena_); in MutableRawRepeatedField() 405 Arena::CreateMessage<RepeatedField<uint64>>(arena_); in MutableRawRepeatedField() [all …]
|
D | map.h | 108 MapAllocator() : arena_(nullptr) {} in MapAllocator() 109 explicit MapAllocator(Arena* arena) : arena_(arena) {} in MapAllocator() 112 : arena_(allocator.arena()) {} in MapAllocator() 117 if (arena_ == nullptr) { 121 Arena::CreateArray<uint8>(arena_, n * sizeof(value_type))); 126 if (arena_ == nullptr) { in deallocate() 166 return arena_ == other.arena_; 171 return arena_ != other.arena_; 182 Arena* arena() const { return arena_; } in arena() 186 Arena* const arena_; variable [all …]
|
D | map_field_lite.h | 93 return Arena::CreateMessage<EntryType>(map_.arena_); in NewEntry() 98 return EntryType::EnumWrap(key, t, map_.arena_); in NewEnumEntryWrapper() 103 return EntryType::Wrap(key, t, map_.arena_); in NewEntryWrapper()
|
D | extension_set_heavy.cc | 178 extension->message_value = prototype->New(arena_); in MutableMessage() 205 if (arena_ == NULL) { in ReleaseMessage() 209 if (arena_ != NULL) { in ReleaseMessage() 233 if (arena_ == NULL) { in UnsafeArenaReleaseMessage() 252 Arena::CreateMessage<RepeatedPtrField<MessageLite> >(arena_); in MaybeNewRepeatedExtension() 277 result = prototype->New(arena_); in AddMessage()
|
D | repeated_field.cc | 117 ? prototype->New(arena_) in AddWeak() 118 : Arena::CreateMessage<ImplicitWeakMessage>(arena_); in AddWeak()
|
D | map_field_inl.h | 281 if (this->MapFieldBase::arena_ == NULL) { in SyncRepeatedFieldWithMapNoLock() 286 this->MapFieldBase::arena_); in SyncRepeatedFieldWithMapNoLock() 305 down_cast<EntryType*>(default_entry->New(this->MapFieldBase::arena_)); in SyncRepeatedFieldWithMapNoLock()
|
D | arena.cc | 197 head_ = arena_->NewBlock(head_, n); in AllocateAlignedFallback() 323 serial->arena_ = arena; in New()
|
D | repeated_field.h | 591 if (arena_) (void)arena_->SpaceAllocated(); 724 inline Arena* GetArena() const { return arena_; } 739 Arena* arena_; 1653 : arena_(NULL), current_size_(0), total_size_(0), rep_(NULL) {} 1656 : arena_(arena), current_size_(0), total_size_(0), rep_(NULL) {} 1660 if (rep_ != NULL && arena_ == NULL) { 1738 TypeHandler::Delete(cast<TypeHandler>(rep_->elements[index]), arena_); 1752 TypeHandler::NewFromPrototype(prototype, arena_); 1769 TypeHandler::New(arena_, std::move(value)); 1993 arena_);
|
D | map_field.h | 279 : arena_(NULL), repeated_field_(NULL), state_(STATE_MODIFIED_MAP) {} in MapFieldBase() 281 : arena_(arena), repeated_field_(NULL), state_(STATE_MODIFIED_MAP) { in MapFieldBase() 356 Arena* arena_; variable
|
D | arena_impl.h | 236 ArenaImpl* arena_; // Containing arena. variable
|
/third_party/grpc/third_party/upb/benchmarks/ |
D | benchmark.cc | 172 P* GetProto() { return protobuf::Arena::CreateMessage<P>(&arena_); } in GetProto() 175 protobuf::Arena arena_; member 181 Proto2Factory() : arena_(GetOptions()) {} in Proto2Factory() 182 P* GetProto() { return protobuf::Arena::CreateMessage<P>(&arena_); } in GetProto() 192 protobuf::Arena arena_; member
|
/third_party/grpc/third_party/upb/tests/ |
D | test_util.h | 175 upb::Arena* arena() { return &arena_; } in arena() 179 upb::Arena arena_;
|
/third_party/grpc/test/cpp/microbenchmarks/ |
D | bm_chttp2_transport.cc | 196 arena_ = grpc_core::Arena::Create(4096); in Stream() 202 arena_->Destroy(); in ~Stream() 211 arena_->Destroy(); in Init() 212 arena_ = grpc_core::Arena::Create(4096); in Init() 216 nullptr, arena_); in Init() 248 grpc_core::Arena* arena_; member in Stream
|
/third_party/grpc/test/cpp/end2end/ |
D | message_allocator_end2end_test.cc | 337 google::protobuf::Arena::CreateMessage<EchoRequest>(&arena_)); in MessageHolderImpl() 339 google::protobuf::Arena::CreateMessage<EchoResponse>(&arena_)); in MessageHolderImpl() 345 google::protobuf::Arena arena_; member in grpc::testing::__anon87a693e40111::ArenaAllocatorTest::ArenaAllocator::MessageHolderImpl
|
/third_party/grpc/src/core/lib/security/authorization/ |
D | authorization_engine.h | 76 upb::Arena arena_; variable
|
D | authorization_engine.cc | 83 arena_.ptr()); in AuthorizationEngine()
|
/third_party/abseil-cpp/absl/base/internal/ |
D | low_level_alloc.cc | 284 : arena_(arena) { 292 arena_->mu.Lock(); 296 arena_->mu.Unlock(); in Leave() 314 LowLevelAlloc::Arena *arena_; member in absl::base_internal::__anon1b7c5b5f0311::ArenaLock
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
D | low_level_alloc.cc | 284 : arena_(arena) { 292 arena_->mu.Lock(); 296 arena_->mu.Unlock(); in Leave() 314 LowLevelAlloc::Arena *arena_; member in absl::base_internal::__anon7d7961f40311::ArenaLock
|
/third_party/grpc/src/core/ext/filters/client_channel/ |
D | client_channel.cc | 502 Arena* arena_; member in grpc_core::__anon6b4c07050111::CallData 836 Arena* arena_; member in grpc_core::__anon6b4c07050111::RetryingCall 1007 Arena* arena_; member in grpc_core::__anon6b4c07050111::LoadBalancedCall 1170 calld->arena_, calld->call_combiner_}; in SetPollent() 1180 calld->retrying_call_ = calld->arena_->New<RetryingCall>( in SetPollent() 1205 arena_(args.arena), in DynamicTerminationFilterCallData() 1215 Arena* arena_; member in grpc_core::__anon6b4c07050111::DynamicTerminationFilterCallData 2647 arena_(args.arena), in CallData() 2987 config_selector->GetCallConfig({&path_, initial_metadata, arena_}); in ApplyServiceConfigToCallLocked() 2995 auto* service_config_call_data = arena_->New<ServiceConfigCallData>( in ApplyServiceConfigToCallLocked() [all …]
|
/third_party/grpc/src/core/ext/filters/client_channel/health/ |
D | health_check_client.cc | 255 arena_(Arena::Create(health_check_client_->connected_subchannel_ in CallState() 277 arena_->Destroy(); in ~CallState() 292 arena_, in StartCall()
|
D | health_check_client.h | 95 Arena* arena_; variable
|