Home
last modified time | relevance | path

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

/art/runtime/gc/accounting/
Dread_barrier_table.h42 mem_map_ = MemMap::MapAnonymous("read barrier table", in ReadBarrierTable()
47 CHECK(mem_map_.IsValid() && mem_map_.Begin() != nullptr) in ReadBarrierTable()
71 mem_map_.MadviseDontNeedAndZero(); in ClearAll()
74 memset(mem_map_.Begin(), kSetEntryValue, mem_map_.Size()); in SetAll()
77 for (uint32_t* p = reinterpret_cast<uint32_t*>(mem_map_.Begin()); in IsAllCleared()
78 p < reinterpret_cast<uint32_t*>(mem_map_.End()); ++p) { in IsAllCleared()
95 uint8_t* entry_addr = mem_map_.Begin() + reinterpret_cast<uintptr_t>(heap_addr) / kRegionSize; in EntryFromAddr()
111 uint8_t* begin = mem_map_.Begin(); in IsValidEntry()
112 uint8_t* end = mem_map_.End(); in IsValidEntry()
116 MemMap mem_map_; variable
Dcard_table.cc91 : mem_map_(std::move(mem_map)), biased_begin_(biased_begin), offset_(offset) { in CardTable()
100 mem_map_.MadviseDontNeedAndZero(); in ClearCardTable()
118 uint8_t* begin = mem_map_.Begin() + offset_; in CheckAddrIsInCardTable()
119 uint8_t* end = mem_map_.End(); in CheckAddrIsInCardTable()
Dcard_table-inl.h215 << " begin: " << reinterpret_cast<void*>(mem_map_.Begin() + offset_) in AddrFromCard()
216 << " end: " << reinterpret_cast<void*>(mem_map_.End()); in AddrFromCard()
230 uint8_t* begin = mem_map_.Begin() + offset_; in IsValidCard()
231 uint8_t* end = mem_map_.End(); in IsValidCard()
238 << " begin: " << reinterpret_cast<void*>(mem_map_.Begin() + offset_) in CheckCardValid()
239 << " end: " << reinterpret_cast<void*>(mem_map_.End()); in CheckCardValid()
Dbitmap.cc37 : mem_map_(std::move(mem_map)), in Bitmap()
38 bitmap_begin_(reinterpret_cast<uintptr_t*>(mem_map_.Begin())), in Bitmap()
73 mem_map_.MadviseDontNeedAndZero(); in Clear()
Dcard_table.h98 return mem_map_.BaseBegin(); in MemMapBegin()
102 return mem_map_.BaseSize(); in MemMapSize()
157 MemMap mem_map_; variable
Datomic_stack.h75 DCHECK(mem_map_.IsValid()); in Reset()
80 mem_map_.MadviseDontNeedAndZero(); in Reset()
292 mem_map_ = MemMap::MapAnonymous(name_.c_str(), in Init()
297 CHECK(mem_map_.IsValid()) << "couldn't allocate mark stack.\n" << error_msg; in Init()
298 uint8_t* addr = mem_map_.Begin(); in Init()
308 MemMap mem_map_; variable
Dspace_bitmap.h189 if (mem_map_.IsValid()) { in SetHeapSize()
190 mem_map_.SetSize(bitmap_size_); in SetHeapSize()
259 MemMap mem_map_; variable
Dbitmap.h115 MemMap mem_map_; variable
141 mem_map_.SetSize(rounded_size); in SetBitmapSize()
Dspace_bitmap.cc69 : mem_map_(std::move(mem_map)), in SpaceBitmap()
155 mem_map_.FillWithZero(kAlwaysEagerlyReleaseBitmapMemory || release_eagerly); in Clear()
/art/libdexfile/dex/
Ddex_file_loader.cc79 : mem_map_(std::move(mem_map)), is_file_map_(is_file_map) {} in MemMapContainer()
82 if (!mem_map_.IsValid()) { in GetPermissions()
85 return mem_map_.GetProtect(); in GetPermissions()
97 if (!mem_map_.IsValid()) { in EnableWrite()
100 return mem_map_.Protect(PROT_READ | PROT_WRITE); in EnableWrite()
106 if (!mem_map_.IsValid()) { in DisableWrite()
109 return mem_map_.Protect(PROT_READ); in DisableWrite()
113 const uint8_t* Begin() const override { return mem_map_.Begin(); } in Begin()
115 const uint8_t* End() const override { return mem_map_.End(); } in End()
120 MemMap mem_map_; member in art::__anon0f8ec38a0111::MemMapContainer
/art/runtime/gc/space/
Dspace.h385 return &mem_map_; in GetMemMap()
389 return &mem_map_; in GetMemMap()
393 return std::move(mem_map_); in ReleaseMemMap()
404 mem_map_(std::move(mem_map)) { in MemMapSpace()
408 MemMap mem_map_; variable
Dmalloc_space.cc64 CHECK_ALIGNED(reinterpret_cast<uintptr_t>(mem_map_.Begin()), kGcCardSize); in MallocSpace()
65 CHECK_ALIGNED(reinterpret_cast<uintptr_t>(mem_map_.End()), kGcCardSize); in MallocSpace()
Dregion_space.cc112 num_regions_(mem_map_.Size() / kRegionSize), in RegionSpace()
121 CHECK_ALIGNED(mem_map_.Size(), kRegionSize); in RegionSpace()
122 CHECK_ALIGNED(mem_map_.Begin(), kRegionSize); in RegionSpace()
125 uint8_t* region_addr = mem_map_.Begin(); in RegionSpace()
Dlarge_object_space.cc387 mem_map_(std::move(mem_map)) { in FreeListSpace()
417 mem_map_.SetSize(new_capacity); in ClampGrowthLimit()
447 func(mem_map_); in ForEachMemMap()
Dlarge_object_space.h247 MemMap mem_map_; variable
Dbump_pointer_space.cc66 growth_end_(mem_map_.End()), in BumpPointerSpace()
Ddlmalloc_space.cc393 mspace_ = CreateMspace(mem_map_.Begin(), starting_size_, initial_size_); in Clear()
Drosalloc_space.cc434 rosalloc_ = CreateRosAlloc(mem_map_.Begin(), in Clear()
/art/libprofile/profile/
Dprofile_compilation_info.cc408 : fd_(fd), mem_map_(std::move(mem_map)), mem_map_cur_(0) {} in ProfileSource()
415 MemMap mem_map_; member in art::ProfileCompilationInfo::ProfileSource
1523 if (offset > static_cast<int64_t>(mem_map_.Size())) { in Seek()
1542 DCHECK_LE(mem_map_cur_, mem_map_.Size()); in Read()
1543 if (byte_count > mem_map_.Size() - mem_map_cur_) { in Read()
1546 memcpy(buffer, mem_map_.Begin() + mem_map_cur_, byte_count); in Read()
1568 return !mem_map_.IsValid() || mem_map_.Size() == 0; in HasEmptyContent()