Home | History | Annotate | Download | only in vm

Lines Matching refs:gDvm

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);
370 gDvm.jdwpHost[colon-value] = '\0';
382 gDvm.jdwpPort = port;
444 if (gDvm.jdwpTransport == kJdwpTransportUnknown) {
448 if (!gDvm.jdwpServer && (gDvm.jdwpHost == NULL || gDvm.jdwpPort == 0)) {
455 gDvm.jdwpConfigured = true;
478 AssertionControl* pCtrl = &gDvm.assertionCtrl[gDvm.assertionCtrlCount++];
532 if (gDvm.assertionCtrl == NULL) {
535 } else if (gDvm.assertionCtrlCount != 0) {
542 AssertionControl* pCtrl = gDvm.assertionCtrl;
547 gDvm.assertionCtrlCount = 1;
558 for (i = 0; i < gDvm.assertionCtrlCount; i++)
559 free(gDvm.assertionCtrl[i].pkgOrClass);
560 free(gDvm.assertionCtrl);
795 assert(gDvm.assertionCtrl == NULL);
797 gDvm.assertionCtrl =
799 if (gDvm.assertionCtrl == NULL)
801 assert(gDvm.assertionCtrlCount == 0);
825 free(gDvm.classPathStr); /* in case we have compiled-in default */
826 gDvm.classPathStr = strdup(argv[++i]);
838 free(gDvm.bootClassPathStr);
839 gDvm.bootClassPathStr = strdup(path);
851 if (asprintf(&allPath, "%s:%s", gDvm.bootClassPathStr, appPath) < 0) {
855 free(gDvm.bootClassPathStr);
856 gDvm.bootClassPathStr = allPath;
868 if (asprintf(&allPath, "%s:%s", prePath, gDvm.bootClassPathStr) < 0) {
872 free(gDvm.bootClassPathStr);
873 gDvm.bootClassPathStr = allPath;
882 gDvm.properties->push_back(argv[i] + 2);
893 gDvm.heapStartingSize = val;
908 gDvm.heapMaximumSize = val;
922 gDvm.heapGrowthLimit = val;
930 gDvm.heapMinFree = val;
938 gDvm.heapMaxFree = val;
944 gDvm.lowMemoryMode = true;
954 gDvm.heapTargetUtilization = val;
963 gDvm.stackSize = val;
964 if (val > gDvm.mainThreadStackSize) {
965 gDvm.mainThreadStackSize = val;
981 gDvm.mainThreadStackSize = val;
993 gDvm.disableExplicitGc = true;
999 gDvm.verboseClass = true;
1001 gDvm.verboseJni = true;
1003 gDvm.verboseGc = true;
1005 gDvm.verboseShutdown = true;
1045 gDvm.reduceSignals = true;
1049 gDvm.noQuitHandler = true;
1051 gDvm.zygote = true;
1057 gDvm.dexOptMode = OPTIMIZE_MODE_NONE;
1059 gDvm.dexOptMode = OPTIMIZE_MODE_VERIFIED;
1061 gDvm.dexOptMode = OPTIMIZE_MODE_ALL;
1063 gDvm.dexOptMode = OPTIMIZE_MODE_FULL;
1070 gDvm.classVerifyMode = VERIFY_MODE_NONE;
1072 gDvm.classVerifyMode = VERIFY_MODE_REMOTE;
1074 gDvm.classVerifyMode = VERIFY_MODE_ALL;
1082 gDvm.jniTrace = strdup(argv[i] + 11);
1084 gDvm.logStdio = true;
1089 gDvm.executionMode = kExecutionModeInterpPortable;
1091 gDvm.executionMode = kExecutionModeInterpFast;
1094 gDvm.executionMode = kExecutionModeJit;
1103 gDvm.executionMode = kExecutionModeInterpFast;
1107 gDvm.lockProfThreshold = atoi(argv[i] + 20);
1127 gDvm.executionMode = kExecutionModeInterpFast;
1156 gDvm.stackTraceFile = strdup(argv[i]+17);
1159 gDvm.generateRegisterMaps = true;
1161 gDvm.generateRegisterMaps = false;
1164 gDvm.monitorVerification = true;
1166 gDvm.monitorVerification = false;
1170 gDvm.preciseGc = true;
1172 gDvm.preciseGc = false;
1174 gDvm.preVerify = true;
1176 gDvm.preVerify = false;
1178 gDvm.postVerify = true;
1180 gDvm.postVerify = false;
1182 gDvm.concurrentMarkSweep = true;
1184 gDvm.concurrentMarkSweep = false;
1186 gDvm.verifyCardTable = true;
1188 gDvm.verifyCardTable = false;
1193 ALOGV("Precise GC configured %s", gDvm.preciseGc ? "ON" : "OFF");
1196 gDvm.verifyDexChecksum = true;
1199 gDvm.profilerClockSource = kProfilerClockSourceThreadCpu;
1201 gDvm.profilerClockSource = kProfilerClockSourceWall;
1203 gDvm.profilerClockSource = kProfilerClockSourceDual;
1225 gDvm.classPathStr = strdup(envStr);
1227 gDvm.classPathStr = strdup(".");
1231 gDvm.bootClassPathStr = strdup(envStr);
1233 gDvm.bootClassPathStr = strdup(".");
1236 gDvm.properties = new std::vector<std::string>();
1241 gDvm.heapStartingSize = 2 * 1024 * 1024; // Spec says 16MB; too big for us.
1242 gDvm.heapMaximumSize = 16 * 1024 * 1024; // Spec says 75% physical mem
1243 gDvm.heapGrowthLimit = 0; // 0 means no growth limit
1244 gDvm.lowMemoryMode = false;
1245 gDvm.stackSize = kDefaultStackSize;
1246 gDvm.mainThreadStackSize = kDefaultStackSize;
1253 gDvm.heapTargetUtilization = 0.5;
1254 gDvm.heapMaxFree = 2 * 1024 * 1024;
1255 gDvm.heapMinFree = gDvm.heapMaxFree / 4;
1257 gDvm.concurrentMarkSweep = true;
1259 /* gDvm.jdwpSuspend = true; */
1262 gDvm.jdwpAllowed = true;
1265 gDvm.classVerifyMode = VERIFY_MODE_ALL;
1266 gDvm.dexOptMode = OPTIMIZE_MODE_VERIFIED;
1267 gDvm.monitorVerification = false;
1268 gDvm.generateRegisterMaps = true;
1269 gDvm.registerMapMode = kRegisterMapModeTypePrecise;
1279 gDvm.executionMode = kExecutionModeJit;
1287 gDvm.constInit = false;
1288 gDvm.commonInit = false;
1290 gDvm.executionMode = kExecutionModeInterpFast;
1297 gDvm.dexOptForSmp = (ANDROID_SMP != 0);
1302 gDvm.profilerClockSource = kProfilerClockSourceDual;
1387 assert(gDvm.initializing);
1409 if (gDvm.executionMode != kExecutionModeInterpPortable) {
1411 gDvm
1418 gDvm.kernelGroupScheduling = 1;
1424 if (!gDvm.reduceSignals)
1434 ALOGV("Using executionMode %d", gDvm.executionMode);
1466 * call populates the gDvm instance with all the class and member
1519 if (!dvmInitClass(gDvm.classJavaLangClass)) {
1571 if (gDvm.zygote) {
1616 * We need to have gDvm.initializing raised here so that JNI FindClass
1622 Thread* self = gDvm.threadList;
1773 if (!gDvm.reduceSignals && !gDvm.noQuitHandler) {
1779 if (gDvm.logStdio) {
1803 if (gDvm.executionMode == kExecutionModeJit) {
1833 assert(!gDvm.zygote);
1840 if (gDvm.jdwpAllowed && gDvm.jdwpConfigured) {
1843 if (gDvm.jdwpHost != NULL) {
1844 if (strlen(gDvm.jdwpHost) >= sizeof(params.host)-1) {
1845 ALOGE("ERROR: hostname too long: '%s'", gDvm.jdwpHost);
1848 strcpy(params.host, gDvm.jdwpHost);
1852 params.transport = gDvm.jdwpTransport;
1853 params.server = gDvm.jdwpServer;
1854 params.suspend = gDvm.jdwpSuspend;
1855 params.port = gDvm.jdwpPort;
1857 gDvm.jdwpState = dvmJdwpStartup(&params);
1858 if (gDvm.jdwpState == NULL) {
1868 if (dvmJdwpIsActive(gDvm.jdwpState)) {
1870 if (!dvmJdwpPostVMStart(gDvm.jdwpState, gDvm.jdwpSuspend)) {
1895 gDvm.initializing = true;
1896 gDvm.optimizing = true;
1903 free(gDvm.bootClassPathStr);
1904 gDvm.bootClassPathStr = strdup(bootClassPath);
1907 gDvm.dexOptMode = dexOptMode;
1908 gDvm.classVerifyMode = verifyMode;
1909 gDvm.generateRegisterMaps = (dexoptFlags & DEXOPT_GEN_REGISTER_MAPS) != 0;
1912 gDvm.dexOptForSmp = true;
1914 gDvm.dexOptForSmp = false;
1916 gDvm.dexOptForSmp = (ANDROID_SMP != 0);
1940 * We leave gDvm.initializing set to "true" so that, if we're not
1974 dvmDumpAtomicCacheStats(gDvm.instanceofCache);
1981 if (gDvm.jdwpState != NULL)
1982 dvmJdwpShutdown(gDvm.jdwpState);
1983 free(gDvm.jdwpHost);
1984 gDvm.jdwpHost = NULL;
1985 free(gDvm.jniTrace);
1986 gDvm.jniTrace = NULL;
1987 free(gDvm.stackTraceFile);
1988 gDvm.stackTraceFile = NULL;
1997 if (gDvm.executionMode == kExecutionModeJit) {
2010 if (gDvm.verboseShutdown)
2031 free(gDvm.bootClassPathStr);
2032 free(gDvm.classPathStr);
2033 delete gDvm.properties;
2047 memset(&gDvm, 0xcd, sizeof(gDvm));
2061 if (gDvm.vfprintfHook != NULL)
2062 result = (*gDvm.vfprintfHook)(fp, format, args);
2112 * Leave gDvm.lastMessage on the stack frame which can be decoded in the
2141 snprintf(messageBuffer, messageLength, "%s", gDvm.lastMessage);
2153 if (gDvm.abortHook != NULL)
2154 (*gDvm.abortHook)();