Home
last modified time | relevance | path

Searched refs:mem_map_ (Results 1 – 20 of 20) sorted by relevance

/art/runtime/gc/accounting/
Dread_barrier_table.h46 mem_map_.reset(mem_map); in ReadBarrierTable()
69 mem_map_->MadviseDontNeedAndZero(); in ClearAll()
72 memset(mem_map_->Begin(), kSetEntryValue, mem_map_->Size()); in SetAll()
75 for (uint32_t* p = reinterpret_cast<uint32_t*>(mem_map_->Begin()); in IsAllCleared()
76 p < reinterpret_cast<uint32_t*>(mem_map_->End()); ++p) { in IsAllCleared()
93 uint8_t* entry_addr = mem_map_->Begin() + reinterpret_cast<uintptr_t>(heap_addr) / kRegionSize; in EntryFromAddr()
109 uint8_t* begin = mem_map_->Begin(); in IsValidEntry()
110 uint8_t* end = mem_map_->End(); in IsValidEntry()
114 std::unique_ptr<MemMap> mem_map_; variable
Dcard_table.cc95 : mem_map_(mem_map), biased_begin_(biased_begin), offset_(offset) { in CardTable()
104 mem_map_->MadviseDontNeedAndZero(); in ClearCardTable()
122 uint8_t* begin = mem_map_->Begin() + offset_; in CheckAddrIsInCardTable()
123 uint8_t* end = mem_map_->End(); in CheckAddrIsInCardTable()
Datomic_stack.h74 DCHECK(mem_map_.get() != nullptr); in Reset()
79 mem_map_->MadviseDontNeedAndZero(); in Reset()
251 mem_map_.reset(MemMap::MapAnonymous(name_.c_str(), nullptr, capacity_ * sizeof(begin_[0]), in Init()
253 CHECK(mem_map_.get() != nullptr) << "couldn't allocate mark stack.\n" << error_msg; in Init()
254 uint8_t* addr = mem_map_->Begin(); in Init()
264 std::unique_ptr<MemMap> mem_map_; variable
Dcard_table-inl.h214 << " begin: " << reinterpret_cast<void*>(mem_map_->Begin() + offset_) in AddrFromCard()
215 << " end: " << reinterpret_cast<void*>(mem_map_->End()); in AddrFromCard()
229 uint8_t* begin = mem_map_->Begin() + offset_; in IsValidCard()
230 uint8_t* end = mem_map_->End(); in IsValidCard()
237 << " begin: " << reinterpret_cast<void*>(mem_map_->Begin() + offset_) in CheckCardValid()
238 << " end: " << reinterpret_cast<void*>(mem_map_->End()); in CheckCardValid()
Dbitmap.cc36 : mem_map_(mem_map), bitmap_begin_(reinterpret_cast<uintptr_t*>(mem_map->Begin())), in Bitmap()
70 mem_map_->MadviseDontNeedAndZero(); in Clear()
Dspace_bitmap.cc61 : mem_map_(mem_map), in SpaceBitmap()
111 mem_map_->MadviseDontNeedAndZero(); in Clear()
Dcard_table.h147 std::unique_ptr<MemMap> mem_map_; variable
Dbitmap.h114 std::unique_ptr<MemMap> mem_map_; variable
Dspace_bitmap.h211 std::unique_ptr<MemMap> mem_map_; variable
/art/dexlayout/
Ddex_writer.h31 DexWriter(dex_ir::Header* header, MemMap* mem_map) : header_(header), mem_map_(mem_map) { } in DexWriter()
68 MemMap* const mem_map_; variable
Ddexlayout.h85 MemMap* GetAndReleaseMemMap() { return mem_map_.release(); } in GetAndReleaseMemMap()
135 std::unique_ptr<MemMap> mem_map_; variable
Ddexlayout.cc1912 mem_map_.reset(MemMap::MapFile(header_->FileSize(), PROT_READ | PROT_WRITE, MAP_SHARED, in OutputDexFile()
1915 mem_map_.reset(MemMap::MapAnonymous("layout dex", nullptr, header_->FileSize(), in OutputDexFile()
1918 if (mem_map_ == nullptr) { in OutputDexFile()
1925 DexWriter::Output(header_, mem_map_.get()); in OutputDexFile()
1932 std::unique_ptr<const DexFile> output_dex_file(DexFile::Open(mem_map_->Begin(), in OutputDexFile()
1933 mem_map_->Size(), in OutputDexFile()
Ddex_writer.cc107 DCHECK_LE(offset + length, mem_map_->Size()); in Write()
108 memcpy(mem_map_->Begin() + offset, buffer, length); in Write()
/art/runtime/gc/space/
Dspace.h380 return mem_map_.get(); in GetMemMap()
384 return mem_map_.get(); in GetMemMap()
388 return mem_map_.release(); in ReleaseMemMap()
395 mem_map_(mem_map) { in MemMapSpace()
399 std::unique_ptr<MemMap> mem_map_; variable
Dlarge_object_space.h212 std::unique_ptr<MemMap> mem_map_; variable
Ddlmalloc_space.cc285 mspace_ = CreateMspace(mem_map_->Begin(), starting_size_, initial_size_); in Clear()
Drosalloc_space.cc366 rosalloc_ = CreateRosAlloc(mem_map_->Begin(), starting_size_, initial_size_, in Clear()
Dlarge_object_space.cc358 mem_map_(mem_map), in FreeListSpace()
/art/runtime/
Ddex_file.cc134 if (mem_map_.get() == nullptr) { in GetPermissions()
137 return mem_map_->GetProtect(); in GetPermissions()
147 if (mem_map_.get() == nullptr) { in EnableWrite()
150 return mem_map_->Protect(PROT_READ | PROT_WRITE); in EnableWrite()
156 if (mem_map_.get() == nullptr) { in DisableWrite()
159 return mem_map_->Protect(PROT_READ); in DisableWrite()
208 dex_file->mem_map_ = std::move(map); in Open()
327 dex_file->mem_map_ = std::move(map); in OpenFile()
401 dex_file->mem_map_ = std::move(map); in OpenOneDexFileFromZip()
Ddex_file.h1196 std::unique_ptr<MemMap> mem_map_; variable