/dalvik/vm/alloc/ |
H A D | DdmHeap.cpp | 188 static void flush_hpsg_chunk(HeapChunkContext *ctx) argument 192 assert(ctx->buf <= ctx->pieceLenField && 193 ctx->pieceLenField <= ctx->p); 194 set4BE(ctx->pieceLenField, ctx->totalAllocationUnits); 198 dvmDbgDdmSendChunk(ctx->type, ctx->p - ctx 211 HeapChunkContext *ctx = (HeapChunkContext *)arg; local 360 HeapChunkContext ctx; local [all...] |
H A D | MarkSweep.cpp | 35 static bool isMarked(const Object *obj, const GcMarkContext *ctx) argument 37 return dvmHeapBitmapIsObjectBitSet(ctx->bitmap, obj); 91 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 93 if (!createMarkStack(&ctx->stack)) { 96 ctx->finger = NULL; 97 ctx->immuneLimit = (char*)dvmHeapSourceGetImmuneLimit(isPartial); 101 static long setAndReturnMarkBit(GcMarkContext *ctx, const void *obj) argument 103 return dvmHeapBitmapSetAndReturnObjectBit(ctx->bitmap, obj); 106 static void markObjectNonNull(const Object *obj, GcMarkContext *ctx, argument 109 assert(ctx ! 133 markObject(const Object *obj, GcMarkContext *ctx) argument 151 GcMarkContext *ctx = (GcMarkContext *)arg; local 198 GcMarkContext *ctx = (GcMarkContext *)arg; local 209 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 217 scanFields(const Object *obj, GcMarkContext *ctx) argument 248 scanStaticFields(const ClassObject *clazz, GcMarkContext *ctx) argument 264 scanInterfaces(const ClassObject *clazz, GcMarkContext *ctx) argument 277 scanClassObject(const Object *obj, GcMarkContext *ctx) argument 303 scanArrayObject(const Object *obj, GcMarkContext *ctx) argument 408 delayReferenceReferent(Object *obj, GcMarkContext *ctx) argument 438 scanDataObject(const Object *obj, GcMarkContext *ctx) argument 454 scanObject(const Object *obj, GcMarkContext *ctx) argument 471 processMarkStack(GcMarkContext *ctx) argument 618 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 672 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 710 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 734 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 845 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local 867 SweepContext *ctx = (SweepContext *)arg; local 890 GcMarkContext* ctx = &gDvm.gcHeap->markContext; local 920 SweepContext ctx; local [all...] |
H A D | CardTable.cpp | 222 WhiteReferenceCounter *ctx; local 232 ctx = (WhiteReferenceCounter *)arg; 233 if (dvmHeapBitmapIsObjectBitSet(ctx->markBits, obj)) { 236 ctx->whiteRefs += 1; 244 WhiteReferenceCounter *ctx; local 254 ctx = (WhiteReferenceCounter*)arg; 255 if (dvmHeapBitmapIsObjectBitSet(ctx->markBits, obj)) { 314 const WhiteReferenceCounter* ctx) 318 assert(ctx != NULL); 319 if (ctx 313 isReferentUnmarked(const Object *obj, const WhiteReferenceCounter* ctx) argument 369 WhiteReferenceCounter ctx = { (HeapBitmap *)arg, 0 }; local [all...] |
H A D | Alloc.cpp | 315 CountContext *ctx = (CountContext *)arg; local 316 assert(ctx != NULL); 317 if (obj->clazz == ctx->clazz) { 318 ctx->count += 1; 324 CountContext ctx = { clazz, 0 }; local 327 dvmHeapBitmapWalk(bitmap, countInstancesOfClassCallback, &ctx); 329 return ctx.count; 334 CountContext *ctx = (CountContext *)arg; local 335 assert(ctx != NULL); 336 if (obj->clazz != NULL && dvmInstanceof(obj->clazz, ctx 343 CountContext ctx = { clazz, 0 }; local [all...] |
/dalvik/vm/hprof/ |
H A D | Hprof.cpp | 44 hprof_context_t *ctx = (hprof_context_t *)calloc(1, sizeof(*ctx)); local 45 if (ctx == NULL) { 51 hprofContextInit(ctx, strdup(outputFileName), fd, false, directToDdms); 53 assert(ctx->memFp != NULL); 55 return ctx; 158 * Free any heap-allocated items in "ctx", and then free "ctx" itself. 160 void hprofFreeContext(hprof_context_t *ctx) argument 162 assert(ctx ! 196 hprof_context_t *ctx; local [all...] |
H A D | Hprof.h | 152 int hprofDumpStrings(hprof_context_t *ctx); 164 int hprofDumpClasses(hprof_context_t *ctx); 174 int hprofStartHeapDump(hprof_context_t *ctx); 175 int hprofFinishHeapDump(hprof_context_t *ctx); 177 int hprofSetGcScanState(hprof_context_t *ctx, 179 int hprofMarkRootObject(hprof_context_t *ctx, 182 int hprofDumpHeapObject(hprof_context_t *ctx, const Object *obj); 188 void hprofContextInit(hprof_context_t *ctx, char *fileName, int fd, 192 int hprofFlushCurrentRecord(hprof_context_t *ctx); 193 int hprofStartNewRecord(hprof_context_t *ctx, u [all...] |
H A D | HprofOutput.cpp | 64 * NOTE: ctx is expected to have been zeroed out prior to calling this 67 void hprofContextInit(hprof_context_t *ctx, char *fileName, int fd, argument 75 FILE* fp = open_memstream(&ctx->fileDataPtr, &ctx->fileDataSize); 82 ctx->directToDdms = directToDdms; 83 ctx->fileName = fileName; 84 ctx->memFp = fp; 85 ctx->fd = fd; 87 ctx->curRec.allocLen = 128; 88 ctx 155 hprofFlushCurrentRecord(hprof_context_t *ctx) argument 160 hprofStartNewRecord(hprof_context_t *ctx, u1 tag, u4 time) argument [all...] |
H A D | HprofHeap.cpp | 39 int hprofStartHeapDump(hprof_context_t *ctx) argument 41 UNUSED_PARAMETER(ctx); 43 ctx->objectsInSegment = OBJECTS_PER_SEGMENT; 44 ctx->currentHeap = HPROF_HEAP_DEFAULT; 48 int hprofFinishHeapDump(hprof_context_t *ctx) argument 50 return hprofStartNewRecord(ctx, HPROF_TAG_HEAP_DUMP_END, HPROF_TIME); 53 int hprofSetGcScanState(hprof_context_t *ctx, argument 59 ctx->gcScanState = state; 60 ctx->gcThreadSerialNumber = threadSerialNumber; 118 * something when ctx 122 hprofMarkRootObject(hprof_context_t *ctx, const Object *obj, jobject jniObj) argument 214 hprofDumpHeapObject(hprof_context_t *ctx, const Object *obj) argument [all...] |
H A D | HprofString.cpp | 76 int hprofDumpStrings(hprof_context_t *ctx) argument 79 hprof_record_t *rec = &ctx->curRec; 88 err = hprofStartNewRecord(ctx, HPROF_TAG_STRING, HPROF_TIME);
|
H A D | HprofClass.cpp | 105 int hprofDumpClasses(hprof_context_t *ctx) argument 108 hprof_record_t *rec = &ctx->curRec; 117 err = hprofStartNewRecord(ctx, HPROF_TAG_LOAD_CLASS, HPROF_TIME);
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
H A D | ExceptionWithContext.java | 83 String ctx = ((ExceptionWithContext) cause).context.toString(); 84 context = new StringBuffer(ctx.length() + 200); 85 context.append(ctx);
|
/dalvik/dx/src/com/android/dx/util/ |
H A D | ExceptionWithContext.java | 83 String ctx = ((ExceptionWithContext) cause).context.toString(); 84 context = new StringBuffer(ctx.length() + 200); 85 context.append(ctx);
|