Home
last modified time | relevance | path

Searched refs:GetHeap (Results 1 – 25 of 118) sorted by relevance

12345

/art/test/1337-gc-coverage/
Dgc_coverage.cc27 return Runtime::Current()->GetHeap()->PerformHomogeneousSpaceCompact() == gc::kSuccess ? in Java_Main_performHomogeneousSpaceCompact()
32 return Runtime::Current()->GetHeap()->SupportHomogeneousSpaceCompactAndCollectorTransitions() ? in Java_Main_supportHomogeneousSpaceCompact()
37 Runtime::Current()->GetHeap()->IncrementDisableMovingGC(Thread::Current()); in Java_Main_incrementDisableMovingGC()
41 Runtime::Current()->GetHeap()->DecrementDisableMovingGC(Thread::Current()); in Java_Main_decrementDisableMovingGC()
51 return Runtime::Current()->GetHeap()->SupportHomogeneousSpaceCompactAndCollectorTransitions() ? in Java_Main_supportCollectorTransition()
56 Runtime::Current()->GetHeap()->TransitionCollector(gc::kCollectorTypeSS); in Java_Main_transitionToSS()
60 Runtime::Current()->GetHeap()->TransitionCollector(gc::kCollectorTypeCMS); in Java_Main_transitionToCMS()
/art/runtime/gc/collector/
Dsticky_mark_sweep.cc42 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in BindBitmaps()
49 for (const auto& space : GetHeap()->GetDiscontinuousSpaces()) { in BindBitmaps()
77 SweepArray(GetHeap()->GetLiveStack(), false); in Sweep()
Dsemi_space.cc67 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in BindBitmaps()
77 CHECK(space == GetHeap()->GetPrimaryFreeListSpace() || in BindBitmaps()
78 space == GetHeap()->GetNonMovingSpace()); in BindBitmaps()
123 GetHeap()->PreGcVerificationPaused(this); in RunPhases()
124 GetHeap()->PrePauseRosAllocVerification(this); in RunPhases()
127 GetHeap()->PostGcVerificationPaused(this); in RunPhases()
132 GetHeap()->PreGcVerificationPaused(this); in RunPhases()
133 GetHeap()->PrePauseRosAllocVerification(this); in RunPhases()
140 GetHeap()->PostGcVerification(this); in RunPhases()
164 promo_dest_space_ = GetHeap()->GetPrimaryFreeListSpace(); in InitializePhase()
[all …]
Dmark_sweep.cc87 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in BindBitmaps()
150 GetHeap()->PreGcVerification(this); in RunPhases()
156 GetHeap()->PrePauseRosAllocVerification(this); in RunPhases()
161 GetHeap()->PreGcVerificationPaused(this); in RunPhases()
163 GetHeap()->PrePauseRosAllocVerification(this); in RunPhases()
172 GetHeap()->PostGcVerification(this); in RunPhases()
178 GetHeap()->GetReferenceProcessor()->ProcessReferences( in ProcessReferences()
214 GetHeap()->GetReferenceProcessor()->EnableSlowPath(); in PausePhase()
351 GetHeap()->RecordFreeRevoke(); in ReclaimPhase()
359 GetHeap()->UnBindBitmaps(); in ReclaimPhase()
[all …]
Dgarbage_collector.cc126 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in SwapBitmaps()
141 for (const auto& disc_space : GetHeap()->GetDiscontinuousSpaces()) { in SwapBitmaps()
172 GcPauseListener* pause_listener = runtime->GetHeap()->GetGcPauseListener(); in ScopedPause()
183 GcPauseListener* pause_listener = runtime->GetHeap()->GetGcPauseListener(); in ~ScopedPause()
Dpartial_mark_sweep.cc39 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in BindBitmaps()
/art/runtime/
Dread_barrier-inl.h80 gc::Heap* heap = Runtime::Current()->GetHeap(); in Barrier()
128 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) { in BarrierForRoot()
169 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) { in BarrierForRoot()
204 Runtime::Current()->GetHeap()->ConcurrentCopyingCollector()->IsMarked(ref)); in IsMarked()
208 gc::Heap* heap = Runtime::Current()->GetHeap(); in IsDuringStartup()
231 Runtime::Current()->GetHeap()->ConcurrentCopyingCollector()-> in AssertToSpaceInvariant()
242 Runtime::Current()->GetHeap()->ConcurrentCopyingCollector()-> in AssertToSpaceInvariant()
248 return Runtime::Current()->GetHeap()->ConcurrentCopyingCollector()->MarkFromReadBarrier(obj); in Mark()
Dverify_object.cc31 Runtime::Current()->GetHeap()->VerifyObjectBody(obj); in VerifyObjectImpl()
42 Runtime::Current()->GetHeap()->VerifyObjectBody(obj); in VerifyObjectImpl()
Djava_vm_ext_test.cc146 ASSERT_FALSE(Runtime::Current()->GetHeap()->IsAllocTrackingEnabled()); in TEST_F()
158 EXPECT_TRUE(Runtime::Current()->GetHeap()->IsAllocTrackingEnabled()); in TEST_F()
164 EXPECT_FALSE(Runtime::Current()->GetHeap()->IsAllocTrackingEnabled()); in TEST_F()
171 EXPECT_TRUE(Runtime::Current()->GetHeap()->IsAllocTrackingEnabled()); in TEST_F()
177 EXPECT_FALSE(Runtime::Current()->GetHeap()->IsAllocTrackingEnabled()); in TEST_F()
/art/runtime/gc/
Dsystem_weak_test.cc110 CollectorType type = Runtime::Current()->GetHeap()->CurrentCollectorType(); in CollectorDoesAllowOrBroadcast()
122 CollectorType type = Runtime::Current()->GetHeap()->CurrentCollectorType(); in CollectorDoesDisallow()
145 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references */ false); in TEST_F()
166 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references */ false); in TEST_F()
190 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references */ false); in TEST_F()
205 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references */ false); in TEST_F()
Dscoped_gc_critical_section.cc31 Runtime::Current()->GetHeap()->StartGC(self, cause, collector_type); in ScopedGCCriticalSection()
40 Runtime::Current()->GetHeap()->FinishGC(self_, collector::kGcTypeNone); in ~ScopedGCCriticalSection()
Dheap_test.cc52 Heap* heap = Runtime::Current()->GetHeap(); in TEST_F()
81 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references */ false); in TEST_F()
95 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references */ false); in TEST_F()
108 Runtime::Current()->GetHeap()->PreZygoteFork(); in TEST_F()
Dheap_verification_test.cc49 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F()
77 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F()
91 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F()
102 const Verification* const v = runtime->GetHeap()->GetVerification(); in TEST_F()
118 const Verification* const v = runtime->GetHeap()->GetVerification(); in TEST_F()
139 const Verification* const v = runtime->GetHeap()->GetVerification(); in TEST_F()
159 const Verification* const v = runtime->GetHeap()->GetVerification(); in TEST_F()
/art/test/148-multithread-gc-annotations/
Dgc_coverage.cc27 return Runtime::Current()->GetHeap()->PerformHomogeneousSpaceCompact() == gc::kSuccess ? in Java_MovingGCThread_performHomogeneousSpaceCompact()
32 return Runtime::Current()->GetHeap()->SupportHomogeneousSpaceCompactAndCollectorTransitions() ? in Java_MovingGCThread_supportHomogeneousSpaceCompact()
/art/runtime/native/
Djava_lang_ref_Reference.cc35 Runtime::Current()->GetHeap()->GetReferenceProcessor()->GetReferent(soa.Self(), ref); in Reference_getReferent()
42 Runtime::Current()->GetHeap()->GetReferenceProcessor()->ClearReferent(ref); in Reference_clearReferent()
Djava_lang_ref_FinalizerReference.cc34 return Runtime::Current()->GetHeap()->GetReferenceProcessor()->MakeCircularListIfUnenqueued(ref); in FinalizerReference_makeCircularListIfUnenqueued()
41 Runtime::Current()->GetHeap()->GetReferenceProcessor()->GetReferent(soa.Self(), ref); in FinalizerReference_getReferent()
Djava_lang_StringFactory.cc48 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in StringFactory_newStringFromBytes()
65 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in StringFactory_newStringFromChars()
82 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in StringFactory_newStringFromString()
Ddalvik_system_VMRuntime.cc64 return Runtime::Current()->GetHeap()->GetTargetHeapUtilization(); in VMRuntime_getTargetHeapUtilization()
68 Runtime::Current()->GetHeap()->SetTargetHeapUtilization(target); in VMRuntime_nativeSetTargetHeapUtilization()
118 gc::AllocatorType allocator = runtime->GetHeap()->GetCurrentNonMovingAllocator(); in VMRuntime_newNonMovableArray()
145 gc::AllocatorType allocator = runtime->GetHeap()->GetCurrentAllocator(); in VMRuntime_newUnpaddedArray()
165 if (Runtime::Current()->GetHeap()->IsMovableObject(array)) { in VMRuntime_addressOf()
173 Runtime::Current()->GetHeap()->ClearGrowthLimit(); in VMRuntime_clearGrowthLimit()
177 Runtime::Current()->GetHeap()->ClampGrowthLimit(); in VMRuntime_clampGrowthLimit()
276 Runtime::Current()->GetHeap()->RegisterNativeAllocation(env, static_cast<size_t>(bytes)); in VMRuntime_registerNativeAllocation()
289 Runtime::Current()->GetHeap()->RegisterNativeFree(env, static_cast<size_t>(bytes)); in VMRuntime_registerNativeFree()
298 Runtime::Current()->GetHeap()->Trim(ThreadForEnv(env)); in VMRuntime_trimHeap()
[all …]
/art/runtime/gc/space/
Dimage_space_test.cc135 EXPECT_FALSE(Runtime::Current()->GetHeap()->GetBootImageSpaces().empty()); in TEST_F()
140 EXPECT_FALSE(Runtime::Current()->GetHeap()->GetBootImageSpaces().empty()); in TEST_F()
145 EXPECT_TRUE(Runtime::Current()->GetHeap()->GetBootImageSpaces().empty()); in TEST_F()
150 EXPECT_FALSE(Runtime::Current()->GetHeap()->GetBootImageSpaces().empty()); in TEST_F()
Drosalloc_space_static_test.cc26 Runtime::Current()->GetHeap()->IsLowMemoryMode(), false); in CreateRosAllocSpace()
Drosalloc_space_random_test.cc26 Runtime::Current()->GetHeap()->IsLowMemoryMode(), false); in CreateRosAllocSpace()
/art/test/596-app-images/
Dapp_images.cc39 for (auto* space : Runtime::Current()->GetHeap()->GetContinuousSpaces()) { in Java_Main_checkAppImageLoaded()
54 for (auto* space : Runtime::Current()->GetHeap()->GetContinuousSpaces()) { in Java_Main_checkAppImageContains()
/art/test/596-monitor-inflation/
Dmonitor_inflation.cc27 Runtime::Current()->GetHeap()->Trim(Thread::Current()); in Java_Main_trim()
/art/runtime/gc/accounting/
Dmod_union_table_test.cc88 Runtime::Current()->GetHeap()->GetCardTable()->MarkCard(klass); in GetObjectArrayClass()
156 return new ModUnionTableCardCache(name.str(), Runtime::Current()->GetHeap(), space); in Create()
159 return new ModUnionTableRefCacheToSpace(name.str(), Runtime::Current()->GetHeap(), space, in Create()
181 gc::Heap* const heap = runtime->GetHeap(); in RunTest()
/art/compiler/optimizing/
Dsharpening.cc58 Runtime::Current()->GetHeap()->GetBootImageSpaces(); in IsInBootImage()
192 runtime->GetHeap()->ObjectIsInBootImageSpace(klass.Get()); in ComputeLoadClassKind()
278 if (runtime->GetHeap()->ObjectIsInBootImageSpace(string)) { in ProcessLoadString()
289 if (string != nullptr && runtime->GetHeap()->ObjectIsInBootImageSpace(string)) { in ProcessLoadString()

12345