aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* setting RLIMIT to INFINITY.Uday Kumar Sundar2014-01-281-1/+12
| | | | | | This is to generate coredumps for processes spawned by zygote Change-Id: I2dbac76fbcaa7be3845ba5e12ad064548a25e2e3
* A char array copy optimization (dalvik).Hiroshi Yamauchi2014-01-191-0/+37
| | | | | | | | Bug: 7103825 (cherry picked from commit dc6cb9c7cb4ef636aa6f542615410b56a67b94dc) Change-Id: I0b8ab789ffb8702bc134b32398c120cc3ed29b9c
* dalvik: Use Bionic's memmove on cortex-a15Steve Kondik2013-12-301-5/+9
| | | | Change-Id: Ia313d784cf9e261e0c82f1a6d412eca1731a5034
* Retry mount() if it fails with EINTRKoji Fukui2013-12-211-3/+6
| | | | | | | mount() may fail EINTR, and when it does this causes dalvik to crash. Use the regular retry macro to avoid these problems. Change-Id: I436fe4f0fab36c8172b43b8b9caedcb6d8167a4f
* Fix synchronization when preparing ids.Yohann Roussel2013-12-214-23/+19
| | | | | | | | | | | Synchronized blocks were using different locks. Replaced by a safer version: marking intern method synchronized. This means synchronizing more than necessary but it had no mesurable perfomance impact. Bug 11744785 Change-Id: I35e691232cd6971d13735be9b72969739ef71e09
* dalvik: use bioinc memmoveWei Wang2013-12-212-0/+6
| | | | | | use memmove from bioinc if it is halfword atomic. Change-Id: I81c38c2b504483b69b0b1c1e4ffb63cb81d347d5
* Dalvik : Increase the upper limit check for DexOpt Deps tableAbhishek Arpure2013-12-211-1/+1
| | | | | | | | | | Increasing upper limit check for the Deps table as additonal jars added causes the dalvik to crash while performing dexopt on cached jar files. This is needed for passing cts test case which is part of libcore.java.util.jar.DalvikExecTest class. Change-Id: I7e271ddf68d2b0d03081b03c395ac62d4e50ef0f CRs-Fixed: 573586
* libdex: Invert the default for dexopt-on-cacheRicardo Cerqueira2013-12-191-1/+1
| | | | | | | | | | | | | | | The growth of /system apps and total /data space are making this device-breaking (insufficient space to dexopt everything to /cache), pointless (/data has more than enough room to hold the cache), and in some cases, both. The default behavior is now the same as mainline Android's: dexopt everything to /data. Set dalvik.vm.dexopt-data-only=0 to change that and dexopt /system apps to /cache. If you do that, make sure your /cache can accomodate double the size of the dex classes in system, since in some extreme cases that has been observed during dex2oat Change-Id: Ia99655731c882e54bdc85293c467288fb4dc65df
* Use RETURN_PTR(NULL) instead of RETURN_VOID in newNonMovableArray.Mathieu Chartier2013-12-181-3/+3
| | | | | | | | RETURN_VOID doesn't set the return value. This means that we are returning random garbage when the allocation doesn't succeed. Bug: 11971220 Change-Id: I570562c7bb9dc573161294916f582709774b35fd
* Dalvik: Ensure that the array length complies with the final specifierSerban Constantinescu2013-12-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | JSR-133, which Android 4 should comply with, "final" fields should be visible to all threads at the time the constructor exits, regardless of synchronization. This behaviour should also apply to the array lengths as they are regarded as equivalent in behaviour to "final" fields. Non-final fields require explicit synchronization in Java for them to be accessed correctly. The Dalvik VM in Android ensures constructors for ordinary object behave properly by inserting a memory barrier ("DMB") on their return if the object's class has a "final" field. The issue, however, is that while Dalivk inserts a barrier in constructors, it doesn't during array create. A barrier ought to be inserted in order to ensure an array's length is visible when the array itself can be observed by other threads. In order for Dalvik to be correct in respect to JSR-133 and the ARM memory model, it should be modified to have a memory barrier after an array is allocated and initialized, before it is visible to other threads. Change-Id: I329656139264552bbd7cacd8c743b694ee2e0bb8 Signed-off-by: Stuart Monteith <Stuart.Monteith@arm.com> Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* Fix "dalvikvm -help".Elliott Hughes2013-12-181-3/+5
| | | | | | | | Showing the help because we were asked to isn't an error. Showing the help because the command line made no sense is. Bug: https://code.google.com/p/android/issues/detail?id=60009 Change-Id: I2d5097e7bcf47db833ea2e0e0f3b8164f6309272
* Dalvik: DMB Optimisations for TracingJITDavid Butcher2013-12-182-9/+9
| | | | | | | | Makes DMB domain ISH or ISHST instead of the implicit System. ISH (Inner Shareable) should be sufficient for all cores/clusters, but is not sufficient for GPU or other memory-mapped peripherals Change-Id: Id159228daba97bc3692d2eb1ee2786bae2ee34a7
* Dalvik: DMB OptimisationDavid Butcher2013-12-183-6/+6
| | | | | | | | Replaces use of 'dmb' and 'dmb st' with inner-shareable versions. This should improve performance in certain cases without harming correctness. Change-Id: Id30f58b93b34bf0e232bb01dc3956a82f7a69c40
* Set Processes comm name to package nameWilliam Roberts2013-12-181-0/+8
| | | | | | | | | | | When debugging audit logs, it is often helpful to have the packages name. Bear in mind that the package name is the right most chars up to TASK_COMM_LEN. Although a possibility of truncation exists, it can be useful for narrowing down the possibilities. Change-Id: Ia735b03f64352d155f8b96e1d47f48e6519b1d4f
* export setThreadName() and add NULL checkWilliam Roberts2013-12-183-3/+19
| | | | Change-Id: I9b69a23b308fe851ed49722c0da3953433b3f5b8
* Move verification of class access flags to libdexBen Gruver2013-12-182-9/+2
| | | | | | | Change-Id: I020a168cfff46e319b0bebb6c7477f0b4139c6de Conflicts: libdex/DexSwapVerify.cpp
* Reject dex files that attempt to use unspecified class access flagsBen Gruver2013-12-181-0/+6
| | | | Change-Id: Ib1ecf3dfe1856a9014c2e9b0d6a1725ba7617f98
* Add an extra guard around perf enablementSteve Kondik2013-12-031-1/+2
| | | | Change-Id: I3b03ffa27ca744d8392301e6b4a8e67aa88bca53
* Merge branch 'kk_2.7_rb1.11' of git://codeaurora.org/platform/dalvik into ↵Steve Kondik2013-11-305-28/+68
|\ | | | | | | cm-11.0
| * Merge "dalvik: use T3 branch when target offset is too large"Linux Build Service Account2013-11-231-5/+11
| |\
| | * dalvik: use T3 branch when target offset is too largeWei Wang2013-11-191-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | T1 branch has offset limit of [-256, 254]. T3 branch has offset limit of [-1048576, 1048574]. Use T3 branch when target offset falls outside T1 range to avoid compiliation abort. Change-Id: I86809e08236b1f5f5102e3fce4df4b1e72e4b96c
| * | Merge "Dalvik : Increase the upper limit check for DexOpt Deps table"Linux Build Service Account2013-11-211-1/+1
| |\ \
| | * | Dalvik : Increase the upper limit check for DexOpt Deps tableAjay Raghothama2013-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Increasing upper limit check for the Deps table as additonal jars added causes the dalvik to crash while performing dexopt on cached jar files. This is needed for passing cts test case which is part of libcore.java.util.jar.DalvikExecTest class. CRs-Fixed: 573586 Change-Id: Ic991ca7b49cdd80cdba330edc759ece43361f9fb
| * | | Merge "dalvik/vm: Dalvik startup with a low memory footprint"Linux Build Service Account2013-11-212-17/+49
| |\ \ \ | | |/ / | |/| |
| | * | dalvik/vm: Dalvik startup with a low memory footprintVijay Dandiga2013-11-172-17/+49
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialize concurrentStartBytes and createMspace using HEAP_MIN_FREE. This helps save Android framework memory after boot. This is for low memory targets only(<=512MB RAM & hdpi resolution) Also, set TARGET_ARCH_LOWMEM in the BoardConfig.mk file of a device for this patch to take effect. Change-Id: Ia1dec6e89ef8285f1e12644bcdc6ca17a15e37a2
| * | Merge "Use 64-bit Linux capabilities when starting Zygote"Linux Build Service Account2013-11-131-5/+7
| |\ \ | | |/ | |/|
| | * Use 64-bit Linux capabilities when starting ZygoteDavid Ng2013-11-081-5/+7
| |/ | | | | | | | | | | | | Enable 64-bit capabilities when starting Zygote to allow >32-bit capabilties to be set, such as CAP_BLOCK_SUSPEND. Change-Id: I2821a2a393dc521c7b99a7283ba17b3ae3b375fd
* | Merge branch 'kk_2.7_rb1.9' of git://codeaurora.org/platform/dalvik into cafSteve Kondik2013-11-1155-191/+2478
|\| | | | | | | Change-Id: I885fab2470352d0a625c9946d0d5c9111486b713
| * Dump hprof when app encounters Out of memoryBiswajit Paul2013-10-311-5/+52
| | | | | | | | | | | | | | | | | | | | | | These changes will only dump application hprof when debug property "dalvik.debug.oom" is set to -1. CRs-Fixed: 471156 Change-Id: I41fbbd5cdaa852cd5e8896186e9d3993688a9cb0 (cherry picked from commit eac7514a989e78b191fde100475b907427158b8d) (cherry picked from commit 63a1141f9bb9fc58beacdde1e8e24df82fe6e000)
| * GC triggering performance optimizationsWei Wang2013-10-313-8/+119
| | | | | | | | | | | | | | | | | | | | Copy the correct starting heap size at process init. Interfaces to set GC/managed heap parameters. Change-Id: I454b1985a3225d7dbdea9c5d4e6f0c9f5e24352e (cherry picked from commit ea59f91c8559dee1710f38a27db10f76f4753fea) (cherry picked from commit 12fc949d46e988ce6877ad4c60f5fc983c5dc202) (cherry picked from commit 73a1dac0b14ab5159453c2d696049e233e7476b0)
| * dalvik: dalvik device extension pack.Xin Qi2013-10-3157-185/+2121
| | | | | | | | | | | | | | | | | | Add support for customer device extension Change-Id: I0402a630ba212d1c5e81cda110f61210f7b60384 (cherry picked from commit 11499df326462bfe25890a35c6abbf019ff7784e) (cherry picked from commit e03b8f8da9cf4eef64cedf39ce9ca90d26ce5124) (cherry picked from commit fb360be406f35b9591f12c61936657f03cc5880f)
* | Unbreak building host modulesRicardo Cerqueira2013-11-063-1/+12
| | | | | | | | | | | | bionic is now a dependency for properties Change-Id: Icd406e639ca297244ab809f523c6830c2240d20b
* | Merge tag 'android-4.4_r1' into cm-11.0Ricardo Cerqueira2013-11-01317-5850/+3504
|\| | | | | | | Android 4.4 Release 1.0
| * merge in klp-release (no-op)Ed Heyl2013-10-160-0/+0
| |\
| | * merge in klp-release history after reset to klp-devThe Android Automerger2013-10-090-0/+0
| | |\
| | | * Invert sense of a test.Ian Rogers2013-09-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bug 10907247 Change-Id: I0665cce648dd892db4cc59e82c325b376dad97dd
| | | * merge in klp-release history after reset to klp-devThe Android Automerger2013-09-240-0/+0
| | | |\
| | | | * merge in klp-release history after reset to klp-devThe Android Automerger2013-09-220-0/+0
| | | | |\
| * | | | | Fix static method preloadingBrian Carlstrom2013-10-161-9/+11
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 11045348 Change-Id: Ib13f96563f3b7ead17620e409735a0e9abb2a109
| * | | | Preload DexCachesBrian Carlstrom2013-10-081-1/+314
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 11045348 Change-Id: I287703eaa964dcbd2e8d5a6c7db7ac378e19e2c1
| * | | | merge in KQS81MEd Heyl2013-10-080-0/+0
| |\ \ \ \ | | | |_|/ | | |/| |
| | * | | merge in klp-release history after reset to klp-devThe Android Automerger2013-09-190-0/+0
| | |\ \ \
| | | * \ \ merge in klp-release history after reset to klp-devThe Android Automerger2013-09-110-0/+0
| | | |\ \ \
| | | | * \ \ merge in klp-release history after reset to klp-devThe Android Automerger2013-09-090-0/+0
| | | | |\ \ \
| | | | | * \ \ merge in klp-release history after reset to klp-devThe Android Automerger2013-09-020-0/+0
| | | | | |\ \ \
| | | | | | * \ \ merge in klp-release history after reset to klp-devThe Android Automerger2013-08-290-0/+0
| | | | | | |\ \ \
| | | | | | | * \ \ merge in klp-release history after reset to klp-devThe Android Automerger2013-08-260-0/+0
| | | | | | | |\ \ \
| | | | | | | | * \ \ merge in klp-release history after reset to klp-devThe Android Automerger2013-08-220-0/+0
| | | | | | | | |\ \ \
| | | | | | | | | * \ \ merge in klp-release history after reset to klp-devThe Android Automerger2013-08-190-0/+0
| | | | | | | | | |\ \ \
| | | | | | | | | | * | | Tracking DexFile rename of defineClass to defineClassNativeBrian Carlstrom2013-08-151-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 9071417 Change-Id: I49429db9bde41065281512915cd1fbb18de6f951