summaryrefslogtreecommitdiff
path: root/libart/src/main/java/dalvik/system/ClassExt.java
Commit message (Collapse)AuthorAgeFilesLines
* Add obsoleteClass field to ClassExtAlex Light2019-09-131-10/+20
| | | | | | | | | | | | | This field is used to keep track of Class objects that have been made obsolete by structural class redefinition. They must be kept live and accessible to preserve JIT invariants around code liveness and to ensure we can continue to access their dex-caches for obsolete methods. Test: ./test.py --host --all-compiler Bug: 140891089 Change-Id: I0ce309f479c42b56b543339654e2cc49c917bce5
* Revert^2 "Add JNI-ids arrays to ClassExt"Alex Light2019-06-271-10/+29
| | | | | | | | | | | This reverts commit d9888496eb1cc5687a2c6e428df62427a800ca14. This unreverts commit b79c6d4b45 Reason for revert: Fixed issue causing 004 flakes on debuggable Test: ./test.py --host --debuggable --jit Bug: 134162467 Change-Id: If0d6483a9c7801b88e5cec1160a5e5cbd2c6b93c
* Revert "Add JNI-ids arrays to ClassExt"Nicolas Geoffray2019-06-271-29/+10
| | | | | | | | | | This reverts commit b79c6d4b4505c0ec3d070107f8883775f9c11726. Bug: 134162467 Reason for revert: Fails debuggable Change-Id: I8180737dbf9d22c4b1456a2cfe9143219cde346e
* Add JNI-ids arrays to ClassExtAlex Light2019-06-241-10/+29
| | | | | | | | | We want to be able to track JNI ids using fields in class-ext. Add the fields to the class. Test: ./art/test.py --host --index-ids Bug: 134162467 Change-Id: Ifbe5496824b25a615336352f93d16963830deba5
* Add fields to ClassExt to store pre-redefine DexFile pointerDavid Brazdil2018-12-031-0/+25
| | | | | | | | | | | | Hidden API access checks refer to the dex file of a class to read the access flags of a given method/field. The pointer to the dex file is lost when the class is redefined with JVMTI. Add two fields to ClassExt which will preserve the DexFile pointer and ClassDef index of the redefined class. Bug: 119688837 Test: m test-art Change-Id: I4808a9bd9f9d29849a342355de6369fbce969b87
* Update originalDexFile commentAlex Light2017-03-291-1/+2
| | | | | | Test: art/test.py --host -j40 Bug: 31455788 Change-Id: Iac416872d9896bde8209d4a5fc96a51494ddfea3
* Revert "Revert "Change ClassExt.originalDexFile field to an opaque Object""Alex Light2017-03-241-2/+2
| | | | | | | | | | | | | This reverts commit ac9ee270cd406fc995e59b2f2ae9877885d8f2cd. The Art makefiles got broken causing target tests to fail. Reason for revert: Fixed issue with target tests Bug: 31455788 Test: m clean && ./art/test.py --target -j4 Change-Id: Iff098638b23c4fdf84f9fc3d807a7468c6177883
* Revert "Change ClassExt.originalDexFile field to an opaque Object"Nicolas Geoffray2017-03-241-2/+2
| | | | | | | | | | Bug: 31455788 Fails on target. This reverts commit d43e872bc6b6d24ce4b9554a27d5ab46c1f62c2e. Change-Id: I7fefa1c075d654b8a0196b518bd33e4058f9a831
* Change ClassExt.originalDexFile field to an opaque ObjectAlex Light2017-03-211-2/+2
| | | | | | | | | | We are changing this field to be either a DexCache object or a byte[] in order to ensure we will not have multiple copies of the dexfile bytes held in memory. Bug: 31455788 Test: ./art/test/testrunner/testrunner.py --host -j40 Change-Id: Ifdb19cb516311aba37b7f5e5aeab0dc1ecbcb758
* Change ClassExt to use a byte[] for original dex file.Alex Light2017-01-201-6/+7
| | | | | | Bug: 32369913 Test: m -j40 test-art-host Change-Id: If53e29d30a6924b03f118753e7df89d7eea43cfc
* Remove unneeded 'transient' modifiersAlex Light2016-12-021-8/+8
| | | | | Test: mma -j40 test-art-host Change-Id: I659a7a4d7a3099b777141db8e1976d5ee65791fb
* Infrastructure for obsolete methodsAlex Light2016-11-301-1/+37
| | | | | | | | | Add the fields necessary to eventually support obsolete methods to the ClassExt type. Bug: 32369913 Test: mma -j40 test-art-host Change-Id: I5776e1da2c79374633eaaa8964c14a4994bbc24a
* Add dalvik.system.ClassExt classAlex Light2016-11-011-0/+41
This class is allocated by the runtime lazily and is used to hold data for java.lang.Class that is often not needed. This allows us to add useful things to keep around in Class without regressing memory use. Initially we are placing the saved verifyError into this class. This type is expected to grow as time goes on. Test: m test-art-host Change-Id: I9556734102d7e7a35a81e8af8b133cba2e75d16c