Searched defs:obj (Results 1 - 25 of 88) sorted by relevance

1234

/art/test/003-omnibus-opcodes/src/
H A DUnresTest2.java8 static boolean checkCasts(Object obj) { argument
12 UnresClass un = (UnresClass) obj;
18 foo = obj instanceof UnresClass;
/art/test/024-illegal-access/src/
H A DCheckInstanceof.java21 public static void main(Object obj) { argument
22 if (obj instanceof otherpkg.Package)
/art/runtime/
H A Djni_env_ext-inl.h27 inline T JNIEnvExt::AddLocalReference(mirror::Object* obj) { argument
28 IndirectRef ref = locals.Add(local_ref_cookie, obj);
36 << entry_count << " (most recent was a " << PrettyTypeOf(obj) << ")\n");
H A Dverify_object-inl.h27 inline void VerifyObject(mirror::Object* obj) { argument
28 if (kVerifyObjectSupport > kVerifyObjectModeDisabled && obj != nullptr) {
31 Runtime::Current()->GetHeap()->VerifyObjectBody(obj);
35 bool failed = !IsAligned<kObjectAlignment>(obj);
37 mirror::Class* c = obj->GetClass<kVerifyNone>();
42 Runtime::Current()->GetHeap()->VerifyObjectBody(obj);
H A Dindirect_reference_table-inl.h81 mirror::Object* obj = table_[idx].GetReference()->Read<kReadBarrierOption>(); local
82 VerifyObject(obj);
83 return obj;
86 inline void IndirectReferenceTable::Update(IndirectRef iref, mirror::Object* obj) { argument
92 table_[idx].SetReference(obj);
H A Druntime-inl.h27 inline bool Runtime::IsClearedJniWeakGlobal(mirror::Object* obj) { argument
28 return obj == GetClearedJniWeakGlobal();
32 mirror::Object* obj = sentinel_.Read(); local
33 DCHECK(obj != nullptr);
34 return obj;
H A Dread_barrier-inl.h33 mirror::Object* obj, MemberOffset offset, mirror::HeapReference<MirrorType>* ref_addr) {
41 bool is_gray = HasGrayReadBarrierPointer(obj, &rb_ptr_high_bits);
50 CHECK_EQ(rb_ptr_high_bits, 0U) << obj << " rb_ptr=" << obj->GetReadBarrierPointer();
52 AssertToSpaceInvariant(obj, offset, ref);
65 obj->CasFieldStrongSequentiallyConsistentObjectWithoutWriteBarrier<false, false>(
68 AssertToSpaceInvariant(obj, offset, ref);
175 inline void ReadBarrier::AssertToSpaceInvariant(mirror::Object* obj, MemberOffset offset, argument
182 AssertToSpaceInvariant(obj, offset, ref);
186 inline mirror::Object* ReadBarrier::Mark(mirror::Object* obj) { argument
32 Barrier( mirror::Object* obj, MemberOffset offset, mirror::HeapReference<MirrorType>* ref_addr) argument
190 HasGrayReadBarrierPointer(mirror::Object* obj, uintptr_t* out_rb_ptr_high_bits) argument
[all...]
/art/test/132-daemon-locks-shutdown/src/
H A DMain.java35 private Object obj; field in class:Main.Wait
37 public Wait(Object obj) { argument
38 this.obj = obj;
43 synchronized(obj) {
45 obj.wait(1);
/art/runtime/gc/collector/
H A Dmark_sweep-inl.h32 inline void MarkSweep::ScanObjectVisit(mirror::Object* obj, const MarkVisitor& visitor, argument
34 DCHECK(IsMarked(obj)) << "Scanning unmarked object " << obj << "\n" << heap_->DumpSpaces();
35 obj->VisitReferences<false>(visitor, ref_visitor);
37 mirror::Class* klass = obj->GetClass<kVerifyNone>();
H A Dsemi_space-inl.h34 void operator()(const mirror::Object* obj) const {
35 CHECK(!semi_space_->to_space_->HasAddress(obj)) << "Marking " << obj << " in to_space_";
37 CHECK(IsAligned<kPageSize>(obj));
44 inline mirror::Object* SemiSpace::GetForwardingAddressInFromSpace(mirror::Object* obj) const {
45 DCHECK(from_space_->HasAddress(obj));
46 LockWord lock_word = obj->GetLockWord(false);
59 mirror::Object* obj = obj_ptr->AsMirrorPtr(); local
60 if (obj == nullptr) {
63 if (from_space_->HasAddress(obj)) {
[all...]
/art/test/469-condition-materialization-regression/src/
H A DMain.java22 private static Object obj; field in class:Main
36 obj = new Object();
/art/runtime/gc/accounting/
H A Dheap_bitmap-inl.h38 inline bool HeapBitmap::Test(const mirror::Object* obj) { argument
39 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj);
41 return bitmap->Test(obj);
44 if (LIKELY(lo_bitmap->HasAddress(obj))) {
45 return lo_bitmap->Test(obj);
48 LOG(FATAL) << "Invalid object " << obj;
52 inline void HeapBitmap::Clear(const mirror::Object* obj) { argument
53 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj);
55 bitmap->Clear(obj);
59 if (LIKELY(lo_bitmap->HasAddress(obj))) {
67 Set(const mirror::Object* obj, const LargeObjectSetVisitor& visitor) argument
83 AtomicTestAndSet(const mirror::Object* obj, const LargeObjectSetVisitor& visitor) argument
[all...]
H A Dcard_table_test.cc84 auto obj = reinterpret_cast<const mirror::Object*>(addr); local
85 EXPECT_EQ(card_table_->GetCard(obj), CardTable::kCardClean);
86 EXPECT_TRUE(!card_table_->IsDirty(obj));
88 EXPECT_TRUE(card_table_->IsDirty(obj));
89 EXPECT_EQ(card_table_->GetCard(obj), CardTable::kCardDirty);
H A Dspace_bitmap-inl.h33 inline bool SpaceBitmap<kAlignment>::AtomicTestAndSet(const mirror::Object* obj) { argument
34 uintptr_t addr = reinterpret_cast<uintptr_t>(obj);
46 DCHECK(Test(obj));
50 DCHECK(Test(obj));
55 inline bool SpaceBitmap<kAlignment>::Test(const mirror::Object* obj) const {
56 uintptr_t addr = reinterpret_cast<uintptr_t>(obj);
57 DCHECK(HasAddress(obj)) << obj;
70 mirror::Object* obj = reinterpret_cast<mirror::Object*>(i);
71 if (Test(obj)) {
111 mirror::Object* obj = reinterpret_cast<mirror::Object*>(ptr_base + shift * kAlignment); local
124 mirror::Object* obj = reinterpret_cast<mirror::Object*>(ptr_base + shift * kAlignment); local
150 mirror::Object* obj = reinterpret_cast<mirror::Object*>(ptr_base + shift * kAlignment); local
159 Modify(const mirror::Object* obj) argument
[all...]
H A Dspace_bitmap_test.cc48 void operator()(const mirror::Object* obj) { argument
49 EXPECT_TRUE(obj >= begin_);
50 EXPECT_TRUE(obj <= end_);
51 EXPECT_EQ(bitmap_->Test(obj), ((reinterpret_cast<uintptr_t>(obj) & 0xF) != 0));
69 const mirror::Object* obj = local
71 if (reinterpret_cast<uintptr_t>(obj) & 0xF) {
72 space_bitmap->Set(obj);
94 void operator()(mirror::Object* obj ATTRIBUTE_UNUSED) const {
/art/test/476-checker-ctor-memory-barrier/src/
H A DMain.java26 public ClassWithFinals obj; field in class:ClassWithFinals
57 obj = new ClassWithFinals();
/art/runtime/gc/space/
H A Dbump_pointer_space-inl.h52 mirror::Object* obj = reinterpret_cast<mirror::Object*>(end); local
62 return obj;
89 inline size_t BumpPointerSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size)
91 size_t num_bytes = obj->SizeOf();
H A Ddlmalloc_space-inl.h32 mirror::Object* obj; local
35 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size,
38 if (LIKELY(obj != nullptr)) {
40 memset(obj, 0, num_bytes);
42 return obj;
45 inline size_t DlMallocSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { argument
46 void* obj_ptr = const_cast<void*>(reinterpret_cast<const void*>(obj));
H A Drosalloc_space-inl.h30 inline size_t RosAllocSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { argument
31 // obj is a valid object. Use its class in the header to get the size.
33 size_t size = obj->SizeOf<kVerifyNone>();
46 const uint8_t* obj_ptr = reinterpret_cast<const uint8_t*>(obj);
50 LOG(INFO) << "Found a bad sized obj of size " << size
H A Dlarge_object_space_test.cc55 mirror::Object* obj = los->Alloc(self, request_size, &allocation_size, nullptr, local
57 ASSERT_TRUE(obj != nullptr);
58 ASSERT_EQ(allocation_size, los->AllocationSize(obj, nullptr));
63 memset(obj, magic, request_size);
64 requests.push_back(std::make_pair(obj, request_size));
77 mirror::Object* obj = pair.first; local
78 ASSERT_FALSE(los->IsZygoteLargeObject(self, obj));
82 mirror::Object* obj = pair.first; local
83 ASSERT_TRUE(los->IsZygoteLargeObject(self, obj));
90 mirror::Object* obj local
105 mirror::Object* obj = los->Alloc(self, 100 * MB, &bytes_allocated, nullptr, local
108 los->Free(Thread::Current(), obj); local
[all...]
H A Dregion_space-inl.h47 mirror::Object* obj; local
51 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size,
55 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size,
58 if (LIKELY(obj != nullptr)) {
59 return obj;
64 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size,
67 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size,
70 if (LIKELY(obj != nullptr)) {
71 return obj;
84 obj
238 mirror::Object* obj = reinterpret_cast<mirror::Object*>(r->Begin()); local
248 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); local
260 GetNextObject(mirror::Object* obj) argument
[all...]
H A Dvalgrind_malloc_space-inl.h75 inline size_t GetObjSizeNoThreadSafety(mirror::Object* obj) NO_THREAD_SAFETY_ANALYSIS {
76 return obj->SizeOf<kVerifyNone>();
176 mirror::Object* obj, size_t* usable_size) {
178 reinterpret_cast<uint8_t*>(obj) - (kAdjustForRedzoneInAllocSize ? kValgrindRedZoneBytes : 0)),
182 *usable_size = valgrind_details::GetObjSizeNoThreadSafety(obj);
206 // Use the obj-size-for-usable flag to determine whether usable_size is the more important one,
175 AllocationSize( mirror::Object* obj, size_t* usable_size) argument
/art/test/088-monitor-verification/src/
H A DMain.java177 private void doNothing(Object obj) {} argument
/art/test/044-proxy/src/
H A DWrappedThrow.java181 public WTInvocationHandler(Object obj) { argument
182 mObj = obj;
/art/runtime/gc/
H A Dreference_processor.cc95 bool ReferenceProcessor::PreserveSoftReferenceCallback(mirror::HeapReference<mirror::Object>* obj, argument
99 mirror::Object* new_obj = args->mark_callback_(obj->AsMirrorPtr(), args->arg_);
101 obj->Assign(new_obj);

Completed in 1371 milliseconds

1234