Searched refs:ctx (Results 1 - 11 of 11) sorted by relevance

/dalvik/vm/alloc/
H A DDdmHeap.cpp190 static void flush_hpsg_chunk(HeapChunkContext *ctx) argument
192 if (ctx->pieceLenField == NULL && ctx->needHeader) {
198 assert(ctx->buf <= ctx->pieceLenField &&
199 ctx->pieceLenField <= ctx->p);
200 set4BE(ctx->pieceLenField, ctx->totalAllocationUnits);
204 dvmDbgDdmSendChunk(ctx
214 append_chunk(HeapChunkContext *ctx, u1 state, void* ptr, size_t length) argument
284 HeapChunkContext *ctx = (HeapChunkContext *)arg; local
396 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
617 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
671 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
709 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
733 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
844 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
866 SweepContext *ctx = (SweepContext *)arg; local
889 GcMarkContext* ctx = &gDvm.gcHeap->markContext; local
919 SweepContext ctx; local
[all...]
H A DCardTable.cpp218 WhiteReferenceCounter *ctx; local
228 ctx = (WhiteReferenceCounter *)arg;
229 if (dvmHeapBitmapIsObjectBitSet(ctx->markBits, obj)) {
232 ctx->whiteRefs += 1;
240 WhiteReferenceCounter *ctx; local
250 ctx = (WhiteReferenceCounter*)arg;
251 if (dvmHeapBitmapIsObjectBitSet(ctx->markBits, obj)) {
310 const WhiteReferenceCounter* ctx)
314 assert(ctx != NULL);
315 if (ctx
309 isReferentUnmarked(const Object *obj, const WhiteReferenceCounter* ctx) argument
365 WhiteReferenceCounter ctx = { (HeapBitmap *)arg, 0 }; local
[all...]
H A DAlloc.cpp329 CountContext *ctx = (CountContext *)arg; local
330 assert(ctx != NULL);
331 if (obj->clazz == ctx->clazz) {
332 ctx->count += 1;
338 CountContext ctx = { clazz, 0 }; local
341 dvmHeapBitmapWalk(bitmap, countInstancesOfClassCallback, &ctx);
343 return ctx.count;
348 CountContext *ctx = (CountContext *)arg; local
349 assert(ctx != NULL);
350 if (obj->clazz != NULL && dvmInstanceof(obj->clazz, ctx
357 CountContext ctx = { clazz, 0 }; 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 void 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 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 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
211 hprofDumpHeapObject(hprof_context_t *ctx, const Object *obj) 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);
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);
/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);

Completed in 172 milliseconds