Lines Matching defs:DvmGlobals
70 struct DvmGlobals { struct
74 char* bootClassPathStr;
75 char* classPathStr;
77 unsigned int heapSizeStart;
78 unsigned int heapSizeMax;
79 unsigned int stackSize;
81 bool verboseGc;
82 bool verboseJni;
83 bool verboseClass;
84 bool verboseShutdown;
86 bool jdwpAllowed; // debugging allowed for this process?
87 bool jdwpConfigured; // has debugging info been provided?
88 int jdwpTransport;
89 bool jdwpServer;
90 char* jdwpHost;
91 int jdwpPort;
92 bool jdwpSuspend;
95 bool profilerWallClock;
103 u4 lockProfThreshold;
105 int (*vfprintfHook)(FILE*, const char*, va_list);
106 void (*exitHook)(int);
107 void (*abortHook)(void);
109 int jniGrefLimit; // 0 means no limit
110 char* jniTrace;
111 bool reduceSignals;
112 bool noQuitHandler;
113 bool verifyDexChecksum;
114 char* stackTraceFile; // for SIGQUIT-inspired output
116 bool logStdio;
118 DexOptimizerMode dexOptMode;
119 DexClassVerifyMode classVerifyMode;
121 bool dexOptForSmp;
126 bool preciseGc;
127 bool preVerify;
128 bool postVerify;
129 bool generateRegisterMaps;
130 bool concurrentMarkSweep;
131 bool verifyCardTable;
133 int assertionCtrlCount;
134 AssertionControl* assertionCtrl;
136 ExecutionMode executionMode;
141 bool initializing;
142 int initExceptionCount;
143 bool optimizing;
148 int numProps;
149 int maxProps;
150 char** propList;
155 ClassPathEntry* bootClassPath;
157 DvmDex* bootClassPathOptExtra;
158 bool optimizingBootstrapClass;
164 HashTable* loadedClasses;
173 volatile int classSerialNumber;
180 InitiatingLoaderList* initiatingLoaderList;
187 pthread_mutex_t internLock;
190 HashTable* internedStrings;
193 HashTable* literalStrings;
198 ClassObject* classJavaLangClass;
199 ClassObject* classJavaLangClassArray;
200 ClassObject* classJavaLangError;
201 ClassObject* classJavaLangObject;
202 ClassObject* classJavaLangObjectArray;
203 ClassObject* classJavaLangRuntimeException;
204 ClassObject* classJavaLangString;
205 ClassObject* classJavaLangThread;
206 ClassObject* classJavaLangVMThread;
207 ClassObject* classJavaLangThreadGroup;
208 ClassObject* classJavaLangThrowable;
209 ClassObject* classJavaLangStackOverflowError;
210 ClassObject* classJavaLangStackTraceElement;
211 ClassObject* classJavaLangStackTraceElementArray;
212 ClassObject* classJavaLangAnnotationAnnotationArray;
213 ClassObject* classJavaLangAnnotationAnnotationArrayArray;
214 ClassObject* classJavaLangReflectAccessibleObject;
215 ClassObject* classJavaLangReflectConstructor;
216 ClassObject* classJavaLangReflectConstructorArray;
217 ClassObject* classJavaLangReflectField;
218 ClassObject* classJavaLangReflectFieldArray;
219 ClassObject* classJavaLangReflectMethod;
220 ClassObject* classJavaLangReflectMethodArray;
221 ClassObject* classJavaLangReflectProxy;
222 ClassObject* classJavaLangExceptionInInitializerError;
223 ClassObject* classJavaLangRefPhantomReference;
224 ClassObject* classJavaLangRefReference;
225 ClassObject* classJavaNioReadWriteDirectByteBuffer;
226 ClassObject* classJavaSecurityAccessController;
227 ClassObject* classOrgApacheHarmonyLangAnnotationAnnotationFactory;
228 ClassObject* classOrgApacheHarmonyLangAnnotationAnnotationMember;
229 ClassObject* classOrgApacheHarmonyLangAnnotationAnnotationMemberArray;
230 ClassObject* classOrgApacheHarmonyNioInternalDirectBuffer;
231 jclass jclassOrgApacheHarmonyNioInternalDirectBuffer;
234 ClassObject* classArrayBoolean;
235 ClassObject* classArrayChar;
236 ClassObject* classArrayFloat;
237 ClassObject* classArrayDouble;
238 ClassObject* classArrayByte;
239 ClassObject* classArrayShort;
240 ClassObject* classArrayInt;
241 ClassObject* classArrayLong;
244 int voffJavaLangObject_equals;
245 int voffJavaLangObject_hashCode;
246 int voffJavaLangObject_toString;
247 int voffJavaLangObject_finalize;
250 int offJavaLangClass_pd;
253 int javaLangStringReady; /* 0=not init, 1=ready, -1=initing */
254 int offJavaLangString_value;
255 int offJavaLangString_count;
256 int offJavaLangString_offset;
257 int offJavaLangString_hashCode;
260 int offJavaLangThread_vmThread;
261 int offJavaLangThread_group;
262 int offJavaLangThread_daemon;
263 int offJavaLangThread_name;
264 int offJavaLangThread_priority;
267 int voffJavaLangThread_run;
270 int offJavaLangVMThread_thread;
271 int offJavaLangVMThread_vmData;
274 int voffJavaLangThreadGroup_removeThread;
277 int offJavaLangThrowable_stackState;
278 int offJavaLangThrowable_message;
279 int offJavaLangThrowable_cause;
282 int offJavaLangReflectAccessibleObject_flag;
283 int offJavaLangReflectConstructor_slot;
284 int offJavaLangReflectConstructor_declClass;
285 int offJavaLangReflectField_slot;
286 int offJavaLangReflectField_declClass;
287 int offJavaLangReflectMethod_slot;
288 int offJavaLangReflectMethod_declClass;
291 int offJavaLangRefReference_referent;
292 int offJavaLangRefReference_queue;
293 int offJavaLangRefReference_queueNext;
294 int offJavaLangRefReference_pendingNext;
297 Method* methJavaLangRefReference_enqueueInternal;
304 volatile int javaSecurityAccessControllerReady;
305 Method* methJavaSecurityAccessController_doPrivileged[4];
308 Method* methJavaLangStackTraceElement_init;
309 Method* methJavaLangExceptionInInitializerError_init;
310 Method* methJavaLangRefPhantomReference_init;
311 Method* methJavaLangReflectConstructor_init;
312 Method* methJavaLangReflectField_init;
313 Method* methJavaLangReflectMethod_init;
314 Method* methOrgApacheHarmonyLangAnnotationAnnotationMember_init;
318 methOrgApacheHarmonyLangAnnotationAnnotationFactory_createAnnotation;
321 Method* methJavaLangReflectProxy_constructorPrototype;
324 int offJavaLangReflectProxy_h;
327 Method* methFakeNativeEntry;
330 Method* methJavaNioReadWriteDirectByteBuffer_init;
331 Method* methOrgApacheHarmonyLuniPlatformPlatformAddress_on;
332 Method* methOrgApacheHarmonyNioInternalDirectBuffer_getEffectiveAddress;
333 int offJavaNioBuffer_capacity;
334 int offJavaNioBuffer_effectiveDirectAddress;
335 int offOrgApacheHarmonyLuniPlatformPlatformAddress_osaddr;
336 int voffOrgApacheHarmonyLuniPlatformPlatformAddress_toLong;
341 ClassObject* volatile primitiveClass[PRIM_MAX];
356 Thread* threadList;
357 pthread_mutex_t threadListLock;
359 pthread_cond_t threadStartCond;
377 pthread_mutex_t _threadSuspendLock;
387 pthread_mutex_t threadSuspendCountLock;
395 pthread_cond_t threadSuspendCountCond;
401 int sumThreadSuspendCount;
417 BitVector* threadIdMap;
424 int nonDaemonThreadCount; /* must hold threadListLock to access */
426 pthread_cond_t vmExitCond;
431 HashTable* userDexFiles;
437 IndirectRefTable jniGlobalRefTable;
439 ReferenceTable jniGlobalRefTable;
441 pthread_mutex_t jniGlobalRefLock;
442 int jniGlobalRefHiMark;
443 int jniGlobalRefLoMark;
448 ReferenceTable jniPinRefTable;
449 pthread_mutex_t jniPinRefLock;
454 HashTable* nativeLibs;
460 pthread_mutex_t gcHeapLock;
466 pthread_cond_t gcHeapCond;
469 GcHeap* gcHeap;
472 u1* biasedCardTableBase;
477 Object* outOfMemoryObj;
478 Object* internalErrorObj;
479 Object* noClassDefFoundErrorObj;
482 /*volatile*/ Monitor* monitorList;
485 Monitor* threadSleepMon;
488 bool newZygoteHeapAllocated;
493 pthread_key_t pthreadKeySelf; /* Thread*, for dvmThreadSelf */
499 JavaVM* vmList;
504 AtomicCache* instanceofCache;
507 InstructionWidth* instrWidth;
509 InstructionFlags* instrFlags;
511 InstructionFormat* instrFormat;
514 InlineSub* inlineSubs;
519 LinearAllocHdr* pBootLoaderAlloc;
525 bool heapWorkerInitialized;
526 bool heapWorkerReady;
527 bool haltHeapWorker;
528 pthread_t heapWorkerHandle;
529 pthread_mutex_t heapWorkerLock;
530 pthread_cond_t heapWorkerCond;
531 pthread_cond_t heapWorkerIdleCond;
532 pthread_mutex_t heapWorkerListLock;
537 int numLoadedClasses;
538 int numDeclaredMethods;
539 int numDeclaredInstFields;
540 int numDeclaredStaticFields;
543 bool nativeDebuggerActive;
551 bool debuggerConnected; /* debugger or DDMS is connected */
552 u1 debuggerActive; /* debugger is making requests */
553 JdwpState* jdwpState;
558 HashTable* dbgRegistry;
563 BreakpointSet* breakpointSet;
570 StepControl stepControl;
575 bool ddmThreadNotification;
580 bool zygote;
587 pthread_mutex_t allocTrackerLock;
588 AllocRecord* allocRecords;
589 int allocRecordHead; /* most-recently-added entry */
590 int allocRecordCount; /* #of valid entries */
594 bool checkAllocLimits;
596 int allocationLimit;
601 pthread_mutex_t deadlockHistoryLock;
603 enum { kDPOff=0, kDPWarn, kDPErr, kDPAbort } deadlockPredictMode;
614 volatile int activeProfilers;
619 MethodTraceState methodTrace;
624 void* emulatorTracePage;
625 int emulatorTraceEnableCount;
630 AllocProfState allocProf;
638 Method** inlinedMethods;
643 int* executedInstrCounts;
644 bool instructionCountEnableCount;
649 pthread_t signalCatcherHandle;
650 bool haltSignalCatcher;
678 extern struct DvmGlobals gDvm; argument