summaryrefslogtreecommitdiffstats
path: root/libart/src/main/java/dalvik/system
Commit message (Collapse)AuthorAgeFilesLines
* Add VMRuntime.runFinalizationWithTimeoutMathieu Chartier2015-06-051-0/+25
| | | | | | | Used by native allocations to prevent deadlocks. Bug: 21544853 Change-Id: I57b2f7ae8b74185922eb3c15ba0ab71a4d2348aa
* Fix Class.forName(..., ..., null) to pass 068-classloader's testClassForNameBrian Carlstrom2015-04-211-4/+3
| | | | | | | | This caused fallout elsewhere requiring - Package fix to pass 005-annotations - ObjectInputStream fix to pass 093-serialization Change-Id: I6bc470e20fa177e8a3debe55c90a84eef7ef518e
* Add dalvik.system.TransactionAbortError classSebastien Hertz2015-04-021-0/+62
| | | | | | | | This class is only used by ART's compiler to abort transaction when initializing image classes ahead-of-time. Bug: 20019689 Change-Id: I60bb9270074ccabb04e14369ebeb755493729a23
* Add VMRuntime.clampGrowthLimitMathieu Chartier2015-01-081-0/+6
| | | | | | | | | Used to release virtual memory for apps with small heaps according to manifest. Bug: 18387825 Bug: 17131630 Change-Id: I73cf18c80e7ce76bd627e5a9439dec4277c6af2d
* Move heap trimming daemon and GC deamon into a single daemonMathieu Chartier2014-12-191-3/+6
| | | | | Bug: 18739541 Change-Id: Icf309cd8981372f24caa7c8b98a2e0591b1d90ea
* Move GC daemon locking logic into heapMathieu Chartier2014-12-151-0/+2
| | | | | | | | Fixes deadlock caused by acquirng the mutator lock while synchronizing on the daemon thread. Bug: 18739541 Change-Id: Ib3ac3788081d3d471195a6e3a8ed163237616a4f
* Add VMRuntime.isBootClassPathOnDiskBrian Carlstrom2014-09-301-0/+13
| | | | | | | | Bug: 17679443 (cherry picked from commit 75c02d71f2345d9f19e9c36dd75c3d08d9f562dc) Change-Id: I4cf9113dfedb2981dc9ce219c96fe1f71f4e0e98
* Make explicit that ISA names are used in some sys propertiesCalin Juravle2014-08-261-0/+4
| | | | Change-Id: I0620c33972e061ba18504579430d2ac02656d17a
* API to query whether a given instruction set / abi is 64bit.Narayan Kamath2014-07-141-0/+11
| | | | | | | | | This is required to implement some aspects of the multi lib installation process. (cherry picked from commit 32f32721e65c93a3aaf8a792b7742aabe7e29e7e) Change-Id: I10fedcbee1318d132d2ac517ddf8cdca02a51cda
* Provide more information about the runtimeSebastien Hertz2014-05-221-0/+15
| | | | | | | | | | Adds methods vmInstructionSet, is64Bit and isCheckJniEnabled to the VMRuntime class. They are used by DdmHandleHello class in the framework to report new information about the runtime to DDMS. Bug: 14888999 Bug: 14888124 Change-Id: I8a2d3f22f84a093be2fbc74464af6aa7b2a2bebb
* Add a mapping between ABIs and instruction sets.Narayan Kamath2014-05-011-0/+30
| | | | | | | | | | | Bridges the android ABI lists (TARGET_CPU_ABI, TARGET_CPU_ABI2 from the BoardConfig and android.os.Build.CPU_ABI) and the runtime concept of an instruction set used for compilation (the --instruction-set to dex2oat and so on). (cherry picked from commit 6174cff204aa36e622e9bd93569b4a1eb2ed222c) Change-Id: Id2eaa60f0546d6c88770f8981adac2a896ed7d49
* ART sampling profilerDave Allison2014-03-071-1/+1
| | | | | | | | | | | | | | | Add isDexOptNeededInternal() to the DexFile class. This is like isDexOptNeeded() except takes additional arguments that are used to determine whether a profile has changed of not. The isDexOptNeeded() method is part of the exported API and cannot be changed. The new method is not part of the API. Also add additional argument to the registerAppInfo() methods (the package name). This is used to determine the profile filename. Bug: 12877748 Change-Id: If862cc5d20fae4b9d46c488f401cda6d433b4a57
* Add unpadded array allocations.Ian Rogers2014-02-281-0/+7
| | | | | | | | | | | | | | | Unpadded array allocations avoid unused bytes following arrays. API conventions follow those of newNonMovableArray. Dalvik implementation assume dlmalloc allocation properties, ART implementation is handled by resizing the array post-allocation: https://android-review.googlesource.com/83670 Add VMRuntimeTest to check the properties of the array allocation routines. Change java.lang.reflect.Array.newInstance to compare more probable array types before less probable ones. Bug: 13028925. Change-Id: Icf6bfb1aa5ad4faa062b393082c689b6118a84b5
* 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
* 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
* Preload DexCachesBrian Carlstrom2013-10-161-3/+5
| | | | | Bug: 11045348 Change-Id: Idbd6ad284964035a3fcf1ec360a3490f32f99d42
* Preload DexCachesBrian Carlstrom2013-10-081-0/+4
| | | | | Bug: 11045348 Change-Id: I3025d8f95e157af602b0ae91d974cb5e6678fb3d
* 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
* Share ClassLoader codeBrian Carlstrom2013-08-143-922/+0
| | | | | Bug: 9071417 Change-Id: Icdde3aace023d1d7509c932cdd71f203213b59d6
* 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)
* 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
* 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
* Add updateProcessState to VMRuntimeMathieu Chartier2013-07-181-0/+6
| | | | | | This process state will be used for determining GC behavior. Change-Id: I2dde66a79d8fa835a7ed2499bd37069c6062f84b
* Add dalvik.system.VMRuntime.vmLibraryBrian Carlstrom2013-07-091-0/+5
| | | | | | (cherry picked from commit 3382fd584e926b61960ded814c889ea8b84a2222) Change-Id: Ie095151c54caf4b996414d04c2140dcc3b93aa7b
* Move dalvik.system.VMDebug to be runtime specificBrian Carlstrom2013-06-061-0/+374
| | | | Change-Id: Iae4b645f02e474875aca8ccfd7ba46610e12acbf
* Making libcore build WITH_ARTBrian Carlstrom2013-06-052-0/+303
| | | | Change-Id: I4db5fbf6a5977c02a1dffffc5386f7fc04ef7eab
* Adding libart support to libcoreBrian Carlstrom2013-05-223-0/+908
Change-Id: I86febf08eacf42bb4b2f06dbd51c5b2d5b25c9fb