/art/runtime/gc/space/ |
H A D | dlmalloc_space.cc | 37 namespace space { namespace in namespace:art::gc 57 LOG(ERROR) << "Failed to initialize mspace for alloc space (" << name << ")"; 100 LOG(ERROR) << "Failed to create mem map for alloc space (" << name << ") of size " 104 DlMallocSpace* space = CreateFromMemMap(mem_map, name, starting_size, initial_size, local 109 << " ) " << *space; local 111 return space; 136 // Grow as much as possible within the space. 147 // Zero freshly allocated memory, done while not holding the space's lock. 149 // Check that the result is contained in the space. 228 // Trim to release memory at the end of the space [all...] |
H A D | rosalloc_space.cc | 36 namespace space { namespace in namespace:art::gc 68 LOG(ERROR) << "Failed to initialize rosalloc for alloc space (" << name << ")"; 117 LOG(ERROR) << "Failed to create mem map for alloc space (" << name << ") of size " 122 RosAllocSpace* space = CreateFromMemMap(mem_map, name, starting_size, initial_size, local 128 << " ) " << *space; local 130 return space; 162 // Grow as much as possible within the space. 253 // Trim to release memory at the end of the space. 285 // Don't let the space grow any more. 313 callback(nullptr, nullptr, 0, arg); // Indicate end of a space [all...] |
H A D | large_object_space.cc | 35 #include "space-inl.h" 40 namespace space { namespace in namespace:art::gc 127 lock_("large object map space lock", kAllocSpaceLock) {} 141 MemMap* mem_map = MemMap::MapAnonymous("large object space allocation", nullptr, num_bytes, 354 CHECK(mem_map != nullptr) << "Failed to allocate large object space mem map: " << error_msg; 361 lock_("free list space lock", kAllocSpaceLock) { 368 MemMap::MapAnonymous("large object free list space allocation info map", 487 // Fit our object in the previous allocation info free space. 495 // If there is remaining space, insert back into the free set. 499 // Try to steal some memory from the free space a 578 space::LargeObjectSpace* space = context->space->AsLargeObjectSpace(); local [all...] |
H A D | region_space.cc | 26 namespace space { namespace in namespace:art::gc 58 LOG(ERROR) << "Failed to allocate pages for alloc space (" << name << ") of size " 105 accounting::ContinuousSpaceBitmap::Create("region space live bitmap", Begin(), Capacity())); 193 // from-space. Mark the rest as unevacuated from-space. 249 // Clear the rb table for to-space regions. 364 // (live) region space bitmap (and release the corresponding pages). 449 LOG(WARNING) << "Couldn't clamp region space as there are regions in use beyond growth limit."; 652 } // namespace space
|
H A D | region_space.h | 22 #include "space.h" 32 namespace space { namespace in namespace:art::gc 34 // A space that consists of equal-sized regions. 43 // Create a region space mem map with the requested sizes. The requested base address is not 45 // space to confirm the request was granted. 49 // Allocate `num_bytes`, returns null if the space is full. 79 // Return the storage space required by obj. 107 // new capacity as argument here as region space doesn't have any notion of 113 // Dump region containing object `obj`. Precondition: `obj` is in the region space. 127 kRegionTypeFromSpace, // From-space [all...] |
H A D | space.h | 40 namespace space { namespace in namespace:art::gc 59 // Objects are retained forever with this policy for a space. 61 // Every GC cycle will attempt to collect objects in this space. 79 // A space contains memory allocated for managed objects. 82 // Dump space. Also key method for C++ vtables. 85 // Name of the space. May vary, for example before/after the Zygote fork. 90 // The policy of when objects are collected associated with this space. 95 // Is the given object contained within this space? 98 // The kind of space this: image, alloc, zygote, large object. 101 // Is this an image space, i 252 space::Space* const space; member in class:art::gc::space::AllocSpace::SweepCallbackContext::space [all...] |
H A D | image_space.cc | 52 #include "space-inl.h" 56 namespace space { namespace in namespace:art::gc 472 // Translate a source address to the destination space. 709 std::unique_ptr<ImageSpace> space(new ImageSpace(image_filename, 722 space->oat_file_ = OpenOatFile(*space, image_filename, error_msg); 723 if (space->oat_file_ == nullptr) { 727 space->oat_file_non_owned_ = space->oat_file_.get(); 729 space [all...] |
/art/dex2oat/linker/ |
H A D | image_writer.h | 55 namespace space { namespace in namespace:art::gc 57 } // namespace space 160 // Mark the objects defined in this space in the given live bitmap. 312 // Offset to the free space in image_, initially size of image header. 317 // Image size is the *address space* covered by this image. As the live bitmap is aligned 318 // to the page size, the live bitmap will cover more address space than necessary. But live 536 // Return true of obj is inside of the boot image space. This may only return true if we are
|
/art/openjdkjvmti/ |
H A D | ti_heap.cc | 1403 const art::gc::space::ContinuousSpace* const space = member in class:openjdkjvmti::art::gc::space 1406 if (space != nullptr) { 1407 if (space->IsZygoteSpace()) { 1409 } else if (space->IsImageSpace() && heap->ObjectIsInBootImageSpace(obj)) {
|
/art/runtime/ |
H A D | class_linker.h | 42 namespace space { namespace in namespace:art::gc 44 } // namespace space 171 // Add an image space to the class linker, may fix up classloader fields and dex cache fields. 172 // The dex files that were newly opened for the space are placed in the out argument 174 // The space must be already added to the heap before calling AddImageSpace since we need to 176 bool AddImageSpace(gc::space::ImageSpace* space, 185 bool OpenImageDexFiles(gc::space::ImageSpace* space,
|
H A D | oat_file.cc | 56 #include "gc/space/image_space.h" 406 static inline bool MapConstantTables(const gc::space::ImageSpace* space, argument 411 File file(space->GetImageFilename(), O_RDONLY, /* checkUsage */ false); 413 LOG(ERROR) << "Failed to open boot image file " << space->GetImageFilename(); 417 uint32_t offset = space->GetImageHeader().GetBootImageConstantTablesOffset(); 418 uint32_t size = space->GetImageHeader().GetBootImageConstantTablesSize(); 431 LOG(ERROR) << "Failed to mmap boot image tables from file " << space->GetImageFilename(); 878 for (gc::space::ImageSpace* space [all...] |
H A D | thread.cc | 61 #include "gc/space/space-inl.h" 513 // stack space, so we should add our reserved space on top of what they requested, rather 517 // If we are going to use implicit stack checks, allocate space for the protected 599 volatile char space[kPageSize - (kAsanMultiplier * 256)]; local 600 char sink ATTRIBUTE_UNUSED = space[zero]; 601 if (reinterpret_cast<uintptr_t>(space) >= target + kPageSize) { 1113 // Set stack_end_ to the bottom of the stack saving space of stack overflows 3388 // Check the to-space invarian 3516 gc::space::ContinuousSpace* space = heap->FindContinuousSpaceFromObject(klass, variable [all...] |
H A D | class_linker.cc | 72 #include "gc/space/image_space.h" 73 #include "gc/space/space-inl.h" 930 std::vector<gc::space::ImageSpace*> spaces = heap->GetBootImageSpaces(); 1064 for (gc::space::ImageSpace* image_space : spaces) { 1267 gc::space::ImageSpace* space, 1277 gc::space::ImageSpace* space, 1285 const ImageHeader& header = space 1366 UpdateClassLoaderVisitor(gc::space::ImageSpace* space, ObjPtr<mirror::ClassLoader> class_loader) argument 1413 OpenImageDexFiles(gc::space::ImageSpace* space, std::vector<std::unique_ptr<const DexFile>>* out_dex_files, std::string* error_msg) argument 1638 AddImageSpace( gc::space::ImageSpace* space, Handle<mirror::ClassLoader> class_loader, jobjectArray dex_elements, const char* dex_location, std::vector<std::unique_ptr<const DexFile>>* out_dex_files, std::string* error_msg) argument [all...] |
/art/patchoat/ |
H A D | patchoat.cc | 49 #include "gc/space/image_space.h" 495 std::vector<gc::space::ImageSpace*> spaces = Runtime::Current()->GetHeap()->GetBootImageSpaces(); 496 std::map<gc::space::ImageSpace*, std::unique_ptr<MemMap>> space_to_memmap_map; 500 gc::space::ImageSpace* space = spaces[i]; local 501 std::string input_image_filename = space->GetImageFilename(); 539 space_to_memmap_map.emplace(space, std::move(image)); 541 space_to_memmap_map.at(space).get(), 542 space->GetLiveBitmap(), 543 space 664 gc::space::ImageSpace* space = spaces[i]; local [all...] |
/art/runtime/gc/ |
H A D | heap.h | 39 #include "gc/space/large_object_space.h" 96 namespace space { namespace in namespace:art::gc 109 } // namespace space 142 // Primitive arrays larger than this size are put in the large object space. 149 // Whether or not we use the free list large object space. Only use it if USE_ART_LOW_4G_ALLOCATOR 151 static constexpr space::LargeObjectSpaceType kDefaultLargeObjectSpaceType = 153 space::LargeObjectSpaceType::kFreeList 154 : space::LargeObjectSpaceType::kMap; 182 space::LargeObjectSpaceType large_object_space_type, 279 // Transition the garbage collector during runtime, may copy objects from one space t [all...] |
H A D | heap.cc | 58 #include "gc/space/bump_pointer_space.h" 59 #include "gc/space/dlmalloc_space-inl.h" 60 #include "gc/space/image_space.h" 61 #include "gc/space/large_object_space.h" 62 #include "gc/space/region_space.h" 63 #include "gc/space/rosalloc_space-inl.h" 64 #include "gc/space/space-inl.h" 65 #include "gc/space/zygote_space.h" 115 // Define space nam 917 AddSpace(space::Space* space) argument 960 RemoveSpace(space::Space* space) argument 1162 space::ContinuousSpace* space = FindContinuousSpaceFromAddress(obj.Ptr()); local 1224 space::AllocSpace* space = nullptr; local 1473 stream << space << " " << *space << "\\n"; local 1482 stream << space << " " << *space << "\\n"; local 2831 space::MallocSpace* space = ref_space->AsMallocSpace(); variable 3158 FindModUnionTableFromSpace(space::Space* space) argument 3166 FindRememberedSetFromSpace(space::Space* space) argument 3413 space::Space* space = FindContinuousSpaceFromObject(obj.Ptr(), true); local 3833 space::Space* space = remembered_set->GetSpace(); local 3840 RemoveRememberedSet(space::Space* space) argument [all...] |
/art/runtime/hprof/ |
H A D | hprof.cc | 60 #include "gc/space/space.h" 1117 const gc::space::ContinuousSpace* const space = heap->FindContinuousSpaceFromObject(obj, true); member in class:art::hprof::gc::space 1119 if (space != nullptr) { 1120 if (space->IsZygoteSpace()) { 1123 } else if (space->IsImageSpace() && heap->ObjectIsInBootImageSpace(obj)) { 1477 // Reserve some space for the length of the instance data, which we won't
|