Home
last modified time | relevance | path

Searched refs:reservation (Results 1 – 11 of 11) sorted by relevance

/art/runtime/gc/collector/
Dimmune_spaces_test.cc196 MemMap reservation = MemMap::MapAnonymous("reserve", in TEST_F() local
201 ASSERT_TRUE(reservation.IsValid()) << "Failed to allocate memory region " << error_str; in TEST_F()
202 MemMap image_reservation = reservation.TakeReservedMemory(kImageSize); in TEST_F()
204 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
209 &reservation)); in TEST_F()
212 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
259 MemMap reservation = MemMap::MapAnonymous("reserve", in TEST_F() local
264 ASSERT_TRUE(reservation.IsValid()) << "Failed to allocate memory region " << error_str; in TEST_F()
265 MemMap image_reservation = reservation.TakeReservedMemory(kImage1Size + kImage2Size); in TEST_F()
267 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
[all …]
/art/dex2oat/linker/
Delf_writer_test.cc103 MemMap reservation = MemMap::MapAnonymous("ElfWriterTest#dlsym reservation", in TEST_F() local
108 CHECK(reservation.IsValid()) << error_msg; in TEST_F()
109 uint8_t* base = reservation.Begin(); in TEST_F()
111 ef->Load(file.get(), /*executable=*/ false, /*low_4gb=*/ false, &reservation, &error_msg); in TEST_F()
113 CHECK(!reservation.IsValid()); in TEST_F()
/art/libartbase/base/
Dmem_map.h137 /*inout*/MemMap* reservation,
158 MemMap* reservation, in MapAnonymous() argument
161 /*addr=*/ (reservation != nullptr) ? reservation->Begin() : nullptr, in MapAnonymous()
166 reservation, in MapAnonymous()
222 /*inout*/MemMap* reservation,
375 const MemMap& reservation,
Dmem_map_test.cc612 MemMap reservation = MemMap::MapAnonymous("MapAnonymous0", in TEST_F() local
617 ASSERT_TRUE(reservation.IsValid()) << error_msg; in TEST_F()
620 uint8_t* map_base = reinterpret_cast<uint8_t*>(reservation.BaseBegin()); in TEST_F()
627 &reservation, in TEST_F()
636 &reservation, in TEST_F()
645 &reservation, in TEST_F()
650 ASSERT_FALSE(reservation.IsValid()); // The entire reservation was used. in TEST_F()
780 MemMap reservation = MemMap::MapAnonymous("Test reservation", in TEST_F() local
785 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
791 uint8_t* addr1 = reservation.Begin(); in TEST_F()
[all …]
Dmem_map.cc233 const MemMap& reservation, in CheckReservation() argument
235 if (!reservation.IsValid()) { in CheckReservation()
239 DCHECK_ALIGNED(reservation.Begin(), kPageSize); in CheckReservation()
240 if (reservation.Begin() != expected_ptr) { in CheckReservation()
243 reservation.Begin(), in CheckReservation()
247 if (byte_count > reservation.Size()) { in CheckReservation()
250 reservation.Size()); in CheckReservation()
310 /*inout*/MemMap* reservation, in MapAnonymous() argument
327 DCHECK(reservation == nullptr); in MapAnonymous()
331 } else if (reservation != nullptr) { in MapAnonymous()
[all …]
/art/runtime/
Doat_file.cc115 /*inout*/MemMap* reservation, // Where to load if not null.
128 /*inout*/MemMap* reservation, // Where to load if not null.
154 /*inout*/MemMap* reservation, // Where to load if not null.
161 /*inout*/MemMap* reservation, // Where to load if not null.
203 /*inout*/MemMap* reservation, in OpenOatFile() argument
213 reservation, in OpenOatFile()
245 /*inout*/MemMap* reservation, in OpenOatFile() argument
253 reservation, in OpenOatFile()
997 /*inout*/MemMap* reservation, // Where to load if not null.
1004 /*inout*/MemMap* reservation ATTRIBUTE_UNUSED, in Load()
[all …]
Delf_file.h60 /*inout*/MemMap* reservation,
Doat_file.h111 /*inout*/MemMap* reservation, // Where to load if not null.
157 /*inout*/MemMap* reservation, // Where to load if not null.
Delf_file_impl.h119 /*inout*/MemMap* reservation,
Delf_file.cc1097 /*inout*/MemMap* reservation, in Load() argument
1153 (reservation != nullptr) ? reservation->Begin() : nullptr, in Load()
1158 reservation, in Load()
1805 /*inout*/MemMap* reservation, in Load() argument
1807 DELEGATE_TO_IMPL(Load, file, executable, low_4gb, reservation, error_msg); in Load()
/art/dex2oat/
Ddex2oat_image_test.cc254 MemMap reservation = ReserveCoreImageAddressSpace(&error_msg); in TEST_F() local
255 ASSERT_TRUE(reservation.IsValid()) << error_msg; in TEST_F()
412 reservation = MemMap::Invalid(); // Free the reserved memory for loading images. in TEST_F()