Home | History | Annotate | Download | only in alloc

Lines Matching full:clazz

98     ClassObject* clazz;
103 clazz = dvmFindSystemClass(descriptor);
104 if (clazz == NULL) {
109 init = dvmFindDirectMethodByDescriptor(clazz, "<init>",
116 obj = dvmAllocObject(clazz, ALLOC_DEFAULT);
184 Object* dvmAllocObject(ClassObject* clazz, int flags)
188 assert(clazz != NULL);
189 assert(dvmIsClassInitialized(clazz) || dvmIsClassInitializing(clazz));
192 newObj = (Object*)dvmMalloc(clazz->objectSize, flags);
194 DVM_OBJECT_INIT(newObj, clazz);
195 dvmTrackAllocation(clazz, clazz->objectSize); /* notify DDMS */
204 * We use the size actually allocated, rather than obj->clazz->objectSize,
210 ClassObject* clazz = obj->clazz;
216 assert(!dvmIsTheClassClass(clazz));
219 if (IS_CLASS_FLAG_SET(clazz, CLASS_ISARRAY)) {
222 size = clazz->objectSize;
229 DVM_OBJECT_INIT(copy, clazz);
235 if (IS_CLASS_FLAG_SET(clazz, CLASS_ISFINALIZABLE)) {
239 dvmTrackAllocation(clazz, size); /* notify DDMS */
254 * NOTE: "obj" is not a fully-formed object; in particular, obj->clazz will
323 const ClassObject *clazz;
331 if (obj->clazz == ctx->clazz) {
336 size_t dvmCountInstancesOfClass(const ClassObject *clazz)
338 CountContext ctx = { clazz, 0 };
350 if (obj->clazz != NULL && dvmInstanceof(obj->clazz, ctx->clazz)) {
355 size_t dvmCountAssignableInstancesOfClass(const ClassObject *clazz)
357 CountContext ctx = { clazz, 0 };