Lines Matching refs:base_size_

460   if (base_begin_ == nullptr && base_size_ == 0) {  in ~MemMap()
468 reinterpret_cast<char*>(base_begin_) + base_size_ - redzone_size_, in ~MemMap()
473 MEMORY_TOOL_MAKE_UNDEFINED(base_begin_, base_size_); in ~MemMap()
474 int result = munmap(base_begin_, base_size_); in ~MemMap()
497 : name_(name), begin_(begin), size_(size), base_begin_(base_begin), base_size_(base_size), in MemMap()
502 CHECK_EQ(base_size_, 0U); in MemMap()
506 CHECK_NE(base_size_, 0U); in MemMap()
519 DCHECK_LE(begin_ + size_, reinterpret_cast<uint8_t*>(base_begin_) + base_size_); in RemapAtEnd()
522 DCHECK_ALIGNED(reinterpret_cast<uint8_t*>(base_begin_) + base_size_, kPageSize); in RemapAtEnd()
525 uint8_t* old_base_end = reinterpret_cast<uint8_t*>(base_begin_) + base_size_; in RemapAtEnd()
532 base_size_ = new_base_end - reinterpret_cast<uint8_t*>(base_begin_); in RemapAtEnd()
533 DCHECK_LE(begin_ + size_, reinterpret_cast<uint8_t*>(base_begin_) + base_size_); in RemapAtEnd()
583 if (base_begin_ != nullptr || base_size_ != 0) { in MadviseDontNeedAndZero()
585 memset(base_begin_, 0, base_size_); in MadviseDontNeedAndZero()
587 int result = madvise(base_begin_, base_size_, MADV_DONTNEED); in MadviseDontNeedAndZero()
611 if (base_begin_ == nullptr && base_size_ == 0) { in Protect()
616 if (mprotect(base_begin_, base_size_, prot) == 0) { in Protect()
621 PLOG(ERROR) << "mprotect(" << reinterpret_cast<void*>(base_begin_) << ", " << base_size_ << ", " in Protect()
751 if (new_size == base_size_) { in SetSize()
755 CHECK_EQ(base_size_, size_) << "Unsupported"; in SetSize()
756 CHECK_LE(new_size, base_size_); in SetSize()
760 base_size_ - new_size); in SetSize()
762 base_size_ - new_size), 0) << new_size << " " << base_size_; in SetSize()
763 base_size_ = new_size; in SetSize()
901 if (base_begin_ == nullptr && base_size_ == 0) { in TryReadable()
906 volatile uint8_t* end = begin + base_size_; in TryReadable()