Searched refs:ctx (Results 1 - 12 of 12) sorted by path

/dalvik/dexgen/src/com/android/dexgen/util/
H A DExceptionWithContext.java83 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 DExceptionWithContext.java83 String ctx = ((ExceptionWithContext) cause).context.toString();
84 context = new StringBuffer(ctx.length() + 200);
85 context.append(ctx);
/dalvik/vm/alloc/
H A DAlloc.cpp315 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...]
H A DCardTable.cpp222 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 DDdmHeap.cpp190 static void flush_hpsg_chunk(HeapChunkContext *ctx) argument
194 assert(ctx->buf <= ctx->pieceLenField &&
195 ctx->pieceLenField <= ctx->p);
196 set4BE(ctx->pieceLenField, ctx->totalAllocationUnits);
200 dvmDbgDdmSendChunk(ctx->type, ctx->p - ctx
210 append_chunk(HeapChunkContext *ctx, u1 state, void* ptr, size_t length) argument
280 HeapChunkContext *ctx = (HeapChunkContext *)arg; local
392 HeapChunkContext ctx; local
[all...]
H A DMarkSweep.cpp35 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
616 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
670 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
708 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
732 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
843 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
865 SweepContext *ctx = (SweepContext *)arg; local
888 GcMarkContext* ctx = &gDvm.gcHeap->markContext; local
918 SweepContext ctx; local
[all...]
/dalvik/vm/hprof/
H A DHprof.cpp44 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 DHprof.h152 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 DHprofClass.cpp105 int hprofDumpClasses(hprof_context_t *ctx) argument
108 hprof_record_t *rec = &ctx->curRec;
117 err = hprofStartNewRecord(ctx, HPROF_TAG_LOAD_CLASS, HPROF_TIME);
H A DHprofHeap.cpp39 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 DHprofOutput.cpp64 * 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 DHprofString.cpp76 int hprofDumpStrings(hprof_context_t *ctx) argument
79 hprof_record_t *rec = &ctx->curRec;
88 err = hprofStartNewRecord(ctx, HPROF_TAG_STRING, HPROF_TIME);

Completed in 148 milliseconds