summaryrefslogtreecommitdiffstats
path: root/libart
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "ART: remove dex cache's initialized static storage."Ian Rogers2014-01-082-4/+0
|\
| * ART: remove dex cache's initialized static storage.Ian Rogers2014-01-072-4/+0
| | | | | | | | Change-Id: I01f099b26bbfa04cc211e31cd0444400d0a00395
* | Add registerAppInfo to the VMRuntime objectDave Allison2013-12-181-0/+5
|/ | | | | | | | | This adds the native function registerAppInfo() to the VMRuntime object. It is called by the ActivityThread in the framework to tell the runtime about application info. Bug: 11539952 Change-Id: I3958a40af5afd513f943093fb483885c2b6b119e
* Add method for updating dalvik process state through VMRuntime.Mathieu Chartier2013-11-251-0/+6
| | | | | | | | | Used to know when to do trimming and will be used for knowing when to do compaction. Bug: 8981901 Change-Id: I0f715f8c9dfc5f7399b54261fe08410449fef10e
* Replace usage of CopyOnWriteArraySet.Narayan Kamath2013-11-222-22/+40
| | | | | | | | | | | Use a List<Class<?>> as the cache key instead, but dedup and check for nulls in the list using a HashSet instead. This will improve performance for large lists of interfaces. bug: 10316383 Change-Id: Id0c36a731e6e3cb39bf36c083180c0c4da5c2dd4 (cherry picked from commit 6074af533f57a93e1b8e1ab63dce6a264a4d5dae)
* Fix the art version of getGenericSuperclass.Narayan Kamath2013-11-221-1/+6
| | | | | | | | art version of: https://android-review.googlesource.com/#/c/70325 bug: 10918616 Change-Id: Id4e221137410027757a5353476d78290f73d7ad8 (cherry picked from commit 34ab628b61321c17b5c1406656e7b352ab0a76a2)
* Fix Class.getEnclosingClass for anonymous classes declared in <clinit> methodsBrian Carlstrom2013-11-071-4/+5
| | | | | | | | | (cherry picked from commit b9be313bdc257089534f738ff8e1e5ad4de3d25e) Bug: 11245138 Related bug: https://code.google.com/p/android/issues/detail?id=61003 Change-Id: I5cc1db6ca6628b845409d7a6ea864da5f625fdc3
* Libcore support for Interface Method Tables (IMT).Jeff Hao2013-11-071-0/+3
| | | | | | (cherry picked from commit 500f98f9696baad7ba16bd5ad65e8caa475ebfe7) Change-Id: I0d611ba7b24f2a990a4a2958939b0f6d739d3c14
* Add VMRuntime.getTargetSdkVersion.Alex Klyubin2013-10-241-2/+18
| | | | | | | The goal is to enable libcore to adjust its behavior based on the target SDK version / API Level of the app. Change-Id: I60f1febc1f8ddf2a97925a48ddf232508d5c44f9
* Merge "Preload DexCaches"Brian Carlstrom2013-10-211-3/+5
|\
| * Preload DexCachesBrian Carlstrom2013-10-161-3/+5
| | | | | | | | | | Bug: 11045348 Change-Id: Idbd6ad284964035a3fcf1ec360a3490f32f99d42
* | Fix libart String.charAt documentation to match libdvm.Elliott Hughes2013-10-161-7/+2
|/ | | Change-Id: I901d818e96af0b9240808bb70ccbe8a17854d485
* Fix Class.getDeclaringClass bug for ARTBrian Carlstrom2013-10-121-0/+3
| | | | | Bug: https://code.google.com/p/android/issues/detail?id=61003 Change-Id: Ia2cc774a9239ecd64f8039b2ca9e27593126e2cf
* am 83c419d7: am c8cfc667: Preload DexCachesBrian Carlstrom2013-10-091-0/+4
|\ | | | | | | | | * commit '83c419d78e40c8bccc07ba3f118667b8bb958d30': Preload DexCaches
| * Preload DexCachesBrian Carlstrom2013-10-081-0/+4
| | | | | | | | | | Bug: 11045348 Change-Id: I3025d8f95e157af602b0ae91d974cb5e6678fb3d
* | am 94b1bae4: Merge commit \'a6e22fc9\' into manualmergeIan Rogers2013-09-234-55/+176
|\ \ | |/ | | | | | | * commit '94b1bae43287c5c8e2d31d05d4f68441acf667ab': Avoid computing class def indices.
| * Avoid computing class def indices.Ian Rogers2013-09-214-55/+176
| | | | | | | | | | | | | | | | | | | | | | Bug: 10244719 Also tidy AnnotationAccess. (cherry-picked from 8b2c0b9abc3f520495f4387ea040132ba85cae69) Change-Id: I6ec8fd4e36b428d7e16e01d98b7bebc143fac8c3 Conflicts: libdvm/src/main/java/java/lang/Class.java
* | am b80808d7: am 98430d0d: Fix getGenericInterfaces for the no annotation case.Ian Rogers2013-09-231-1/+1
|\ \ | |/ | | | | | | * commit 'b80808d79017cb1be406ffdc67fb26cc15c65eea': Fix getGenericInterfaces for the no annotation case.
| * Fix getGenericInterfaces for the no annotation case.Ian Rogers2013-09-211-1/+1
| | | | | | | | | | | | | | | | | | Bug: 10244719 (cherry-picked from 43111aab512b1a7c7c8095a7135a7ae2754ea5bd) Change-Id: I758d32e9cffcabf771e6f5f86ffa2666c8e1cb02 Conflicts: libdvm/src/main/java/java/lang/Class.java
* | am 3f1ad69e: Merge commit \'d4ec55c4\' into manualmergeIan Rogers2013-09-233-14/+27
|\ \ | |/ | | | | | | * commit '3f1ad69ef4655901cbf71c4c1fbae074bc320585': Lazier annotation signature parsing.
| * Lazier annotation signature parsing.Ian Rogers2013-09-213-14/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 10244719. Also, make wider use of empty arrays. Also, use named inner classes to aid profiling. Remove caching as the empty result will be fast. Porting the ART changes to DVM, to avoid the caching, results in bringing in a bunch of other ART clean-up. TODO, avoid modified-UTF8 to String conversions by Dex. Change-Id: I051b6e34b5a4e7a7f1383461a799755947a5ba36 Conflicts: libdvm/src/main/java/java/lang/Class.java
* | Fix Java 7 build.Ying Wang2013-09-201-1/+1
|/ | | | | | | See http://bugs.sun.com/view_bug.do?bug_id=6904536 Bug: 8992787 Change-Id: Ib84a28a3df4517be86cd3342e6f916a5d905be89
* Use the docs-approved Android x.y (Name) format consistently.Elliott Hughes2013-09-031-5/+5
| | | | | | | Also include the API level where the reason for mentioning the version is an API difference (as opposed to simply a behavioral difference). Change-Id: Idd69630fc5d6f6f0bd5d1c524cb32fd8c2fb750d
* Add libcore support for sample profiling from traceview gui.Jeff Hao2013-08-281-395/+0
| | | | | | | | | This change unifies the native method tracing interface between art and dalvik, and so the two files can merged again. (cherry picked from commit cd28c9550cbc77b5b856a13638f221f1cd9fc6ab) Change-Id: Id834945644615c4d8d8536140842d9036f38fbeb
* Fix arrayIndexScale.Ian Rogers2013-08-281-1/+1
| | | | | | | | Bug 10430382. (cherry picked from commit 9da79116014d4396d33a9a1ada891c49aed7c6a3) Change-Id: Ife41904b1580dae74ae17d49c799a1a81d4a18bc
* Share ClassLoader codeBrian Carlstrom2013-08-143-922/+0
| | | | | Bug: 9071417 Change-Id: Icdde3aace023d1d7509c932cdd71f203213b59d6
* Refactor ART java.lang.reflect implementationBrian Carlstrom2013-08-1310-365/+527
| | | | | | | | Bug: 10014286. (cherry picked from commit 1222a700a25956b0e3634731160017f0d3aa0585) Change-Id: Ic5672489f6c028d47e6c2a499d6a2bbdd5cc4e4c
* Increase breadcrumbs for class lookup failures.Ian Rogers2013-08-131-11/+25
| | | | | | | | | | | | | Dex files are loaded early and then queried against. This leads to IOExceptions for failed to load dex files being unavailable when a findClass is performed. Its useful to have the IOExceptions as then its possible to determine why a class wasn't found, for example, because the jar archive was empty. This change caches the IOExceptions that occur during the loading of dex files and then adds them to the suppressed exceptions reported when findClass fails. Change-Id: I31693400c503a113282f9d094ddfd84ebc3cf6dd (cherry picked from commit 04205541b4dda4c199a7fe72ab72eb0766a4207c)
* Remove updateProcessState.Mathieu Chartier2013-08-101-6/+0
| | | | Change-Id: Icbbc65dbc51bb46e64df27a5066b2ef08fe7b93f (cherry picked from commit 7798d7373c11f47a81f465577e4074480de82af6)
* Fix AIOOBE in Method.compareParameters.Ian Rogers2013-08-081-1/+1
| | | | | | | | Bug: 10032782 (cherry-picked from commit f700b73e492203ec773fb76d4525394ed3a1cc23) Change-Id: Id46690c1b3b08594cc8ad54f22f601b44d17841e
* Fix sign-extension of type indices.Ian Rogers2013-08-082-3/+3
| | | | | | | | | We pass type indices as ints but Dex represents them as shorts. Avoid sign extending the shorts which would cause problem for dex cache indices, etc. (cherry-picked from commit 1d02e61adf72a3cd59b796fc8d7ee1161ba66e7a) Change-Id: Id9b540863fee56ad3165f4cac2a23389ba78ca2e
* Improve the performance of reflective operations.Ian Rogers2013-08-035-136/+113
| | | | | | | | | | | | | | | Common dex index lookups require a number of different types to be constructed, implement short-cuts that avoid the intermediate data types. Refactor reflective operations to use dex methods that don't require temporary objects. Note: this change adds an empty short array to Dex, this code can't appear in libcore.util as Dex doesn't always come with libcore.util. Bug: 9968234 (cherry picked from commit 381db8de0ac5df124c7f482bf4be9d5756bf3ca4) Change-Id: I9122a3f01b4f41b07a84aff768193c092e29698c
* Show size/alloc/free per Dalvik heap space in dumpsysHiroshi Yamauchi2013-07-311-0/+21
| | | | | | | | | | | | | Add the heap size/alloc/free stats to the Dalvik heap space breakdown section in dumpsys meminfo. Also, now the zygote heap has a distict ashmem region name. Bug: 9532137 Bug: 8266259 (cherry picked from commit 8a620d52b5d12599b539c7a7621daf3012de5074) Change-Id: I7283e30cefbc6c57b23a5dc1ae88b037f3e11bbf
* Use the libcore.reflect implementation.Elliott Hughes2013-07-2510-1991/+0
| | | | Change-Id: I3cb180d3c1912b9362c5a2e8dbedc1e80fb0c14f
* Add registerNativeAllocation and registerNativeFree to libcore.Mathieu Chartier2013-07-241-0/+15
| | | | | | | | Required for ART native allocation accounting code. (cherry picked from commit 71c68c5920a3be2f953624365da7cf0681fa32ed) Change-Id: I5d5a4c908b3759a56e7e919754bbc26fcd051600
* AnnotationFactory and AnnotationMember are now shared between art and dalvik.Elliott Hughes2013-07-232-701/+0
| | | | Change-Id: I58311e9b5a6e6963889b47d8b69c3604b2e61f4c
* Restructure Class.getDeclaredMethodInternal.Ian Rogers2013-07-191-16/+16
| | | | | | | | | | | Prefer virtual over direct methods when searching for a specific method. For direct methods, check they are method rather than constructors early (cheap test) and cast to Method as check-cast ellision can remove. Motivation, android.widget.RemoteViews is using Class.getMethod and showing as hot in the calendar launcher widget. Change-Id: Id12fe9549c8f6626fd1abf0494d81aee32e0bc7a
* Add updateProcessState to VMRuntimeMathieu Chartier2013-07-181-0/+6
| | | | | | This process state will be used for determining GC behavior. Change-Id: I2dde66a79d8fa835a7ed2499bd37069c6062f84b
* Cleaning old JIT methods from String.Jeff Hao2013-07-091-69/+0
| | | | | | (cherry picked from commit 16f4ce14801128a7d826a2249f35120dbd3e0ce1) Change-Id: Icf0ac5f12748b6bafabc7621cfe62264016c8503
* Fix Class.getModifiers for arrays of inner classes.Elliott Hughes2013-07-091-1/+14
| | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=56267 (cherry picked from commit 8aa5892195543e80b1c4eb10d8764268927cc1be) Change-Id: I3be5433b04607e5f41e7c68f03cfabc166b56d54
* Add dalvik.system.VMRuntime.vmLibraryBrian Carlstrom2013-07-091-0/+5
| | | | | | (cherry picked from commit 3382fd584e926b61960ded814c889ea8b84a2222) Change-Id: Ie095151c54caf4b996414d04c2140dcc3b93aa7b
* Rename vmDataAnwar Ghuloum2013-07-091-3/+3
| | | | | | (cherry picked from commit bd1fa4dcf60bafdcaae3ebd5b8b93ae3550cd560) Change-Id: I015cb48b6ac9e5c7f478b3a2f532d9c6c413058b
* Revert "Rename vmData"Anwar Ghuloum2013-07-021-3/+3
| | | | | | This reverts commit 1d3779283db9454b5914d522771db37cbba6a4bd. Change-Id: I16c998e8c4ee7e9b8e505150d05f2a399df6d066
* Rename vmDataAnwar Ghuloum2013-07-021-3/+3
| | | | | | (cherry picked from commit bd1fa4dcf60bafdcaae3ebd5b8b93ae3550cd560) Change-Id: Ie33c2d730a2302c2f5297163e0ed2f37fb5b97c7
* Ensure that setName and setPriority are properly synchronizedAnwar Ghuloum2013-07-021-4/+17
| | | | | | | | Bug:8050919 (cherry picked from commit f1e80e4e227076f99e54d1a00f4e3d5ec1a23ba6) Change-Id: I77408ddf708b674b57474f096be7cdb786c05224
* Copy the libdvm docs to the libart docs.Elliott Hughes2013-06-071-3/+3
| | | | | | (cherry picked from commit 4e74358e31134d52aaf0ab3b3a96ab10b5e1138b) Change-Id: Icaf54e1ef429f8948f65e2f90e748919d7263d3c
* Move dalvik.system.VMDebug to be runtime specificBrian Carlstrom2013-06-061-0/+374
| | | | Change-Id: Iae4b645f02e474875aca8ccfd7ba46610e12acbf
* Move java.lang.String to be runtime specificBrian Carlstrom2013-06-051-0/+2080
| | | | Change-Id: I67b912d06f19cd1167214f631973fa84b4e5aa61
* Making libcore build WITH_ARTBrian Carlstrom2013-06-0510-0/+1442
| | | | Change-Id: I4db5fbf6a5977c02a1dffffc5386f7fc04ef7eab
* Adding libart support to libcoreBrian Carlstrom2013-05-2223-0/+10944
Change-Id: I86febf08eacf42bb4b2f06dbd51c5b2d5b25c9fb