Lines Matching defs:pool

174 // all objects in the pool rather than construct one or more small
346 // the pool is using a fallback database, and that database contains a file
347 // defining that symbol, and that file has not yet been built by the pool,
348 // the pool builds the file during cross-linking, leading to another
391 const DescriptorPool* pool, const string& name) const;
414 // Allocate an object which will be reclaimed when the pool is
421 // pool in destroyed. Again, destructors are never called.
424 // Allocate a string which will be destroyed when the pool is destroyed.
438 vector<string*> strings_; // All strings in the pool.
439 vector<Message*> messages_; // All messages in the pool.
440 vector<FileDescriptorTables*> file_tables_; // All file tables in the pool.
441 vector<void*> allocations_; // All other memory allocated in the pool.
473 // Allocate some bytes which will be reclaimed when the pool is
666 const DescriptorPool* pool, const string& name) const {
667 MutexLockMaybe lock(pool->mutex_);
670 if (result.IsNull() && pool->underlay_ != NULL) {
673 pool->underlay_->tables_->FindByNameHelper(pool->underlay_, name);
678 if (pool->TryFindSymbolInFallbackDatabase(name)) {
829 // internal use we could easily plug in one of our existing memory pool
1359 // any descriptor that already exists in the descriptor pool (except for
1371 // that already exists in the descriptor pool can result in an attempt to
2132 DescriptorBuilder(const DescriptorPool* pool,
2190 // - Search the pool's underlay if not found in tables_.
2200 Symbol FindSymbolNotEnforcingDepsHelper(const DescriptorPool* pool,
2351 // Creates an interpreter that operates in the context of the pool of the
2428 // We interpret against this builder's pool. Is never NULL. We don't own
2459 static inline bool get_allow_unknown(const DescriptorPool* pool) {
2460 return pool->allow_unknown_;
2465 static inline void assert_mutex_held(const DescriptorPool* pool) {
2466 if (pool->mutex_ != NULL) {
2467 pool->mutex_->AssertHeld();
2527 const DescriptorPool* pool,
2530 : pool_(pool),
2589 const DescriptorPool* pool, const string& name) {
2592 MutexLockMaybe lock((pool == pool_) ? NULL : pool->mutex_);
2594 Symbol result = pool->tables_->FindSymbol(name);
2595 if (result.IsNull() && pool->underlay_ != NULL) {
2597 result = FindSymbolNotEnforcingDepsHelper(pool->underlay_, name);
2606 if (pool->TryFindSymbolInFallbackDatabase(name)) {
2607 result = pool->tables_->FindSymbol(name);
3029 // File already in pool. Compare the existing one to the input.
3117 "A file with this name is already in the pool.");
3879 // because that locks the pool's mutex, which we have already locked
4322 // Get the options message's descriptor from the builder's pool, so that we
4329 // pool's mutex, and the latter method locks it again. We don't use
4337 // The options message's descriptor was not in the builder's pool, so use
4338 // the standard version from the generated pool. We're not holding the
4339 // generated pool's mutex, so we can search it the straightforward way.
4363 // pool. Note that we use DescriptorBuilder::LookupSymbol(), not
4365 // relative lookups, and 2) because we're already holding the pool's
4373 // builder's pool, but there's no point in looking in the generated
4374 // pool. We require that you import the file that defines any extensions
4375 // you use, so they must be present in the builder's pool.
4402 // pools, we find the options message in one pool but the field in
4700 if (enum_type->file()->pool() != DescriptorPool::generated_pool()) {
4708 // Search for the enum value's descriptor in the builder's pool. Note
4711 // the pool's mutex, and the latter method locks it again.
4725 // The enum type is in the generated pool, so we can search for the