diff options
author | Dan Bornstein <danfuzz@android.com> | 2011-03-01 16:16:12 -0800 |
---|---|---|
committer | Dan Bornstein <danfuzz@android.com> | 2011-03-02 13:32:09 -0800 |
commit | 8521311b4e55847c650a87933d5a3f04618e4e69 (patch) | |
tree | 429326fb00635151ef050826605a01998eec3e46 /vm/Init.h | |
parent | bc606f5e72b16f3759f5d414c7444204908718aa (diff) | |
download | android_dalvik-8521311b4e55847c650a87933d5a3f04618e4e69.tar.gz android_dalvik-8521311b4e55847c650a87933d5a3f04618e4e69.tar.bz2 android_dalvik-8521311b4e55847c650a87933d5a3f04618e4e69.zip |
Yak-shaving in support of the exception cleanup.
This change restructures where early class initialization happens in
the VM, moving a few chunks of it together into Init.c. The exception
classes get moved here as well as the super-core classes needed
particularly for dex optimization. This is all done to support a follow-up
change that will put more of the verifier's required exceptions into
the list. (Before this change, it would have been unsafe to do that.)
This change also paves the way for further consolidation of class and
member initialization, which I hope will make it easier to transition
the whole mess into the new copying-gc world, when that arrives on the
scene.
Bug: 3500987
Change-Id: I0caae09432a05287af53aa36a6663997ab310985
Diffstat (limited to 'vm/Init.h')
-rw-r--r-- | vm/Init.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -41,6 +41,14 @@ int dvmPrepForDexOpt(const char* bootClassPath, DexOptimizerMode dexOptMode, DexClassVerifyMode verifyMode, int dexoptFlags); /* + * Look up the set of classes and members used directly by the VM, storing + * them into the globals instance. See Globals.h. This function is exposed + * so that dex optimization may call it (while avoiding doing other + * unnecessary VM initialization). + */ +int dvmInitRequiredClassesAndMembers(void); + +/* * Replacement for fprintf() when we want to send a message to the console. * This defaults to fprintf(), but will use the JNI fprintf callback if * one was provided. |