HomeSort by relevance Sort by last modified time
    Searched refs:gDvm (Results 1 - 25 of 81) sorted by null

1 2 3 4

  /dalvik/vm/
InitRefs.cpp 52 { &gDvm.classJavaLangObject, "Ljava/lang/Object;" },
53 { &gDvm.exThrowable, "Ljava/lang/Throwable;" },
56 { &gDvm.classJavaLangClassArray, "[Ljava/lang/Class;" },
57 { &gDvm.classJavaLangClassLoader, "Ljava/lang/ClassLoader;" },
58 { &gDvm.classJavaLangObjectArray, "[Ljava/lang/Object;"},
59 { &gDvm.classJavaLangStackTraceElement, "Ljava/lang/StackTraceElement;" },
60 { &gDvm.classJavaLangStackTraceElementArray, "[Ljava/lang/StackTraceElement;" },
61 { &gDvm.classJavaLangString, "Ljava/lang/String;" },
62 { &gDvm.classJavaLangThread, "Ljava/lang/Thread;" },
63 { &gDvm.classJavaLangThreadGroup, "Ljava/lang/ThreadGroup;" }
    [all...]
Intern.cpp 28 dvmInitMutex(&gDvm.internLock);
29 gDvm.internedStrings = dvmHashTableCreate(256, NULL);
30 if (gDvm.internedStrings == NULL)
32 gDvm.literalStrings = dvmHashTableCreate(256, NULL);
33 if (gDvm.literalStrings == NULL)
45 if (gDvm.internedStrings != NULL || gDvm.literalStrings != NULL) {
46 dvmDestroyMutex(&gDvm.internLock);
48 dvmHashTableFree(gDvm.internedStrings);
49 gDvm.internedStrings = NULL
    [all...]
StdioConverter.cpp 52 gDvm.haltStdioConverter = false;
54 dvmInitMutex(&gDvm.stdioConverterLock);
55 pthread_cond_init(&gDvm.stdioConverterCond, NULL);
57 if (pipe(gDvm.stdoutPipe) != 0) {
61 if (pipe(gDvm.stderrPipe) != 0) {
66 if (dup2(gDvm.stdoutPipe[1], kFilenoStdout) != kFilenoStdout) {
70 close(gDvm.stdoutPipe[1]);
71 gDvm.stdoutPipe[1] = -1;
75 if (dup2(gDvm.stderrPipe[1], kFilenoStderr) != kFilenoStderr) {
79 close(gDvm.stderrPipe[1])
    [all...]
Init.cpp 61 struct DvmGlobals gDvm;
335 gDvm.jdwpTransport = kJdwpTransportSocket;
337 gDvm.jdwpTransport = kJdwpTransportAndroidAdb;
344 gDvm.jdwpServer = false;
346 gDvm.jdwpServer = true;
353 gDvm.jdwpSuspend = false;
355 gDvm.jdwpSuspend = true;
367 free(gDvm.jdwpHost);
368 gDvm.jdwpHost = (char*) malloc(colon - value +1);
369 strncpy(gDvm.jdwpHost, value, colon - value +1)
    [all...]
AllocTracker.cpp 77 dvmInitMutex(&gDvm.allocTrackerLock);
80 assert(gDvm.allocRecords == NULL);
90 free(gDvm.allocRecords);
91 dvmDestroyMutex(&gDvm.allocTrackerLock);
131 dvmLockMutex(&gDvm.allocTrackerLock);
133 if (gDvm.allocRecords == NULL) {
134 gDvm.allocRecordMax = getAllocRecordMax();
137 gDvm.allocRecordMax, kMaxAllocRecordStackDepth,
138 sizeof(AllocRecord) * gDvm.allocRecordMax);
139 gDvm.allocRecordHead = gDvm.allocRecordCount = 0
    [all...]
UtfString.h 31 * We can avoid poking around in gDvm by hard-coding the expected values of
34 * easy to switch back to the gDvm version.
40 # define STRING_FIELDOFF_VALUE gDvm.offJavaLangString_value
41 # define STRING_FIELDOFF_OFFSET gDvm.offJavaLangString_offset
42 # define STRING_FIELDOFF_COUNT gDvm.offJavaLangString_count
43 # define STRING_FIELDOFF_HASHCODE gDvm.offJavaLangString_hashCode
SignalCatcher.cpp 44 gDvm.haltSignalCatcher = false;
46 if (!dvmCreateInternalThread(&gDvm.signalCatcherHandle,
61 gDvm.haltSignalCatcher = true;
62 if (gDvm.signalCatcherHandle == 0) // not started yet
65 pthread_kill(gDvm.signalCatcherHandle, SIGQUIT);
67 pthread_join(gDvm.signalCatcherHandle, NULL);
151 if (gDvm.stackTraceFile == NULL) {
189 int fd = open(gDvm.stackTraceFile, O_WRONLY | O_APPEND | O_CREAT, 0666);
192 gDvm.stackTraceFile, strerror(errno));
197 gDvm.stackTraceFile, (int) actual, traceLen
    [all...]
Thread.cpp 257 if (pthread_key_create(&gDvm.pthreadKeySelf, threadExitCheck) != 0) {
263 if (pthread_getspecific(gDvm.pthreadKeySelf) != NULL)
267 dvmInitMutex(&gDvm.threadListLock);
268 pthread_cond_init(&gDvm.threadStartCond, NULL);
269 pthread_cond_init(&gDvm.vmExitCond, NULL);
270 dvmInitMutex(&gDvm._threadSuspendLock);
271 dvmInitMutex(&gDvm.threadSuspendCountLock);
272 pthread_cond_init(&gDvm.threadSuspendCountCond, NULL);
281 gDvm.threadSleepMon = dvmCreateMonitor(NULL);
283 gDvm.threadIdMap = dvmAllocBitVector(kMaxThreadId, false)
    [all...]
AllocTracker.h 43 if (gDvm.allocRecords != NULL) \
Exception.cpp 133 dvmThrowChainedException(gDvm.exInternalError,
158 if (gDvm.optimizing) {
175 self->exception = gDvm.internalErrorObj;
280 if (!dvmInstanceof(cause->clazz, gDvm.exThrowable)) {
374 dvmThrowChainedException(gDvm.exRuntimeException,
471 if (dvmInstanceof(exception->clazz, gDvm.exError) ||
472 dvmInstanceof(exception->clazz, gDvm.exRuntimeException))
541 if (!dvmInstanceof(exception->clazz, gDvm.exThrowable)) {
547 dvmGetFieldObject(exception, gDvm.offJavaLangThrowable_cause);
854 if (!dvmInstanceof(method->clazz, gDvm.exThrowable)
    [all...]
Ddm.cpp 50 if (!dvmIsClassInitialized(gDvm.classOrgApacheHarmonyDalvikDdmcChunk)) {
51 if (!dvmInitClass(gDvm.classOrgApacheHarmonyDalvikDdmcChunk)) {
86 dvmCallMethod(self, gDvm.methDalvikDdmcServer_dispatch, NULL, &callRes,
115 type = dvmGetFieldInt(chunk, gDvm.offDalvikDdmcChunk_type);
117 (ArrayObject*) dvmGetFieldObject(chunk, gDvm.offDalvikDdmcChunk_data);
118 offset = dvmGetFieldInt(chunk, gDvm.offDalvikDdmcChunk_offset);
119 length = dvmGetFieldInt(chunk, gDvm.offDalvikDdmcChunk_length);
171 if (!dvmIsClassInitialized(gDvm.classOrgApacheHarmonyDalvikDdmcDdmServer)) {
172 if (!dvmInitClass(gDvm.classOrgApacheHarmonyDalvikDdmcDdmServer)) {
180 dvmCallMethod(self, gDvm.methDalvikDdmcServer_broadcast, NULL, &unused
    [all...]
Profile.cpp 87 return gDvm.profilerClockSource != kProfilerClockSourceWall;
98 return gDvm.profilerClockSource != kProfilerClockSourceThreadCpu;
285 while (gDvm.methodTrace.traceEnabled) {
289 for (Thread *thread = gDvm.threadList; thread != NULL; thread = thread->next) {
309 memset(&gDvm.methodTrace, 0, sizeof(gDvm.methodTrace));
310 dvmInitMutex(&gDvm.methodTrace.startStopLock);
311 pthread_cond_init(&gDvm.methodTrace.threadExitCond, NULL);
318 gDvm.executedInstrCounts = (int*) calloc(kNumPackedOpcodes, sizeof(int));
319 if (gDvm.executedInstrCounts == NULL
    [all...]
  /dalvik/vm/alloc/
Heap.cpp 85 if (gDvm.heapGrowthLimit == 0) {
86 gDvm.heapGrowthLimit = gDvm.heapMaximumSize;
89 gcHeap = dvmHeapSourceStartup(gDvm.heapStartingSize,
90 gDvm.heapMaximumSize,
91 gDvm.heapGrowthLimit);
100 gDvm.gcHeap = gcHeap;
106 if (!dvmCardTableStartup(gDvm.heapMaximumSize, gDvm.heapGrowthLimit)) {
122 if (gDvm.gcHeap != NULL)
    [all...]
Visit.cpp 188 thread = gDvm.threadList;
198 (*visitor)(&gDvm.typeVoid, 0, ROOT_STICKY_CLASS, arg);
199 (*visitor)(&gDvm.typeBoolean, 0, ROOT_STICKY_CLASS, arg);
200 (*visitor)(&gDvm.typeByte, 0, ROOT_STICKY_CLASS, arg);
201 (*visitor)(&gDvm.typeShort, 0, ROOT_STICKY_CLASS, arg);
202 (*visitor)(&gDvm.typeChar, 0, ROOT_STICKY_CLASS, arg);
203 (*visitor)(&gDvm.typeInt, 0, ROOT_STICKY_CLASS, arg);
204 (*visitor)(&gDvm.typeLong, 0, ROOT_STICKY_CLASS, arg);
205 (*visitor)(&gDvm.typeFloat, 0, ROOT_STICKY_CLASS, arg);
206 (*visitor)(&gDvm.typeDouble, 0, ROOT_STICKY_CLASS, arg)
    [all...]
CardTable.cpp 56 GcHeap *gcHeap = gDvm.gcHeap;
81 gDvm.biasedCardTableBase = biasedBase;
91 gDvm.biasedCardTableBase = NULL;
92 munmap(gDvm.gcHeap->cardTableBase, gDvm.gcHeap->cardTableLength);
134 assert(gDvm.gcHeap->cardTableBase != NULL);
136 if (gDvm.lowMemoryMode) {
138 madvise(gDvm.gcHeap->cardTableBase, gDvm.gcHeap->cardTableLength, MADV_DONTNEED);
144 if (maxLiveCard > gDvm.gcHeap->cardTableLength)
    [all...]
Alloc.cpp 35 dvmInitMutex(&gDvm.gcHeapLock);
36 pthread_cond_init(&gDvm.gcHeapCond, NULL);
157 gDvm.outOfMemoryObj = createStockException("Ljava/lang/OutOfMemoryError;",
159 dvmReleaseTrackedAlloc(gDvm.outOfMemoryObj, NULL);
160 gDvm.internalErrorObj = createStockException("Ljava/lang/InternalError;",
162 dvmReleaseTrackedAlloc(gDvm.internalErrorObj, NULL);
163 gDvm.noClassDefFoundErrorObj =
166 dvmReleaseTrackedAlloc(gDvm.noClassDefFoundErrorObj, NULL);
168 if (gDvm.outOfMemoryObj == NULL || gDvm.internalErrorObj == NULL |
    [all...]
  /dalvik/vm/oo/
TypeCheck.cpp 41 gDvm.instanceofCache = dvmAllocAtomicCache(INSTANCEOF_CACHE_SIZE);
42 if (gDvm.instanceofCache == NULL)
52 dvmFreeAtomicCache(gDvm.instanceofCache);
246 return ATOMIC_CACHE_LOOKUP(gDvm.instanceofCache,
  /dalvik/vm/compiler/codegen/arm/armv5te/
ArchVariant.cpp 60 } else if ((gDvmJit.codeCacheSize == 0) && (gDvm.executionMode == kExecutionModeJit)) {
61 gDvm.executionMode = kExecutionModeInterpFast;
69 gDvm.nativeDebuggerActive = true;
  /dalvik/vm/compiler/codegen/arm/armv5te-vfp/
ArchVariant.cpp 60 } else if ((gDvmJit.codeCacheSize == 0) && (gDvm.executionMode == kExecutionModeJit)) {
61 gDvm.executionMode = kExecutionModeInterpFast;
69 gDvm.nativeDebuggerActive = true;
  /dalvik/vm/compiler/codegen/arm/armv7-a/
ArchVariant.cpp 55 } else if ((gDvmJit.codeCacheSize == 0) && (gDvm.executionMode == kExecutionModeJit)) {
56 gDvm.executionMode = kExecutionModeInterpFast;
64 gDvm.nativeDebuggerActive = true;
  /dalvik/vm/compiler/codegen/arm/armv7-a-neon/
ArchVariant.cpp 55 } else if ((gDvmJit.codeCacheSize == 0) && (gDvm.executionMode == kExecutionModeJit)) {
56 gDvm.executionMode = kExecutionModeInterpFast;
64 gDvm.nativeDebuggerActive = true;
  /dalvik/vm/compiler/codegen/mips/mips/
ArchVariant.cpp 60 } else if ((gDvmJit.codeCacheSize == 0) && (gDvm.executionMode == kExecutionModeJit)) {
61 gDvm.executionMode = kExecutionModeInterpFast;
67 gDvm.nativeDebuggerActive = true;
  /dalvik/vm/interp/
InterpDefs.h 82 return gDvm.debuggerActive || gDvm.activeProfilers != 0;
101 return (gDvm.sumThreadSuspendCount != 0) ||
  /dalvik/vm/reflect/
Reflect.cpp 152 ArrayObject* classArray = dvmAllocArrayByClass(gDvm.classJavaLangClassArray,
231 assert(dvmIsClassInitialized(gDvm.classJavaLangReflectField));
233 fieldObj = dvmAllocObject(gDvm.classJavaLangReflectField, ALLOC_DEFAULT);
251 dvmCallMethod(dvmThreadSelf(), gDvm.methJavaLangReflectField_init,
276 if (!dvmIsClassInitialized(gDvm.classJavaLangReflectField))
277 dvmInitClass(gDvm.classJavaLangReflectField);
297 dvmAllocArrayByClass(gDvm.classJavaLangReflectFieldArray, count, ALLOC_DEFAULT);
402 assert(dvmIsClassInitialized(gDvm.classJavaLangReflectConstructor));
404 consObj = dvmAllocObject(gDvm.classJavaLangReflectConstructor,
432 dvmCallMethod(dvmThreadSelf(), gDvm.methJavaLangReflectConstructor_init
    [all...]
  /dalvik/vm/native/
dalvik_system_VMRuntime.cpp 72 if (gDvm.executionMode == kExecutionModeJit && gDvmJit.disableJit == false) {
92 if (gDvm.executionMode == kExecutionModeJit) {
153 RETURN_BOOLEAN(gDvm.debuggerActive || gDvm.nativeDebuggerActive);
159 ArrayObject* result = dvmCreateStringArray(*gDvm.properties);
174 returnCString(pResult, gDvm.bootClassPathStr);
180 returnCString(pResult, gDvm.classPathStr);
256 LOG_FATAL_IF(strObj->clazz != gDvm.classJavaLangString, "Unknown class for supposed string");
402 for (ClassPathEntry* cpe = gDvm.bootClassPath; cpe->kind != kCpeLastEntry; cpe++) {
416 for (ClassPathEntry* cpe = gDvm.bootClassPath; cpe->kind != kCpeLastEntry; cpe++)
    [all...]

Completed in 481 milliseconds

1 2 3 4