summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cm-11.0' into stable/cm-11.0cm-11.0-XNPH05Q-tomato-9828f8e9cccm-11.0-XNPH05Q-bacon-5229c4ef56stable/cm-11.0-XNF9Xstable/cm-11.0-XNF8Ystable/cm-11.0shipping/cm-11.0Brint E. Kriebel2014-09-304-3/+12
|\
| * dalvik: Rename perf flagstable/cm-11.0-XNG3Cstable/cm-11.0-XNG2SSteve Kondik2014-09-141-1/+1
| | | | | | | | Change-Id: I5aab012bbe9e461d24011bca3b3c0fa17b22be5f
| * Revert "Revert "dalvik: add placeholder for future changes""Steve Kondik2014-09-142-1/+10
| | | | | | | | | | | | This reverts commit cd2251b84a8c15d970267b77e8116ee0b26289e0. Change-Id: I399e390fbd1e42b935f1e4ac9d905a9d1e635e96
| * Dalvik :Increase the upper limit check for DexOpt Deps tableTapas Pradhan2014-09-011-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: I13e7f4b0a5f9fe11fceb447ae3f64e8dc4ccf164 CR:697166
* | Merge branch 'cm-11.0' into stable/cm-11.0cm-11.0-XNPH44S-bacon-5fa8c79c0bBrint E. Kriebel2014-07-272-5/+5
|\|
| * Dalvik :Increase the upper limit check for DexOpt Deps tableTapas Pradhan2014-07-221-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: I6d8d79be2f400585fb89382b1923f2a0494b4393 CR:681070
| * dalvik: use memmove_words for word atomic memmoveWei Wang2014-07-221-4/+4
| | | | | | | | | | | | use memmove_words for word atomic memmove Change-Id: Ife31c217f7038f5054969b4bbe1108b351881b3b
* | Merge branch 'cm-11.0' into stable/cm-11.0cm-11.0-XNPH33R-bacon-3628510d76cm-11.0-XNPH30O-bacon-4f280f505aBrint E. Kriebel2014-06-303-53/+64
|\|
| * Merge tag 'android-4.4.3_r1' into HEADRicardo Cerqueira2014-06-033-53/+64
| |\ | | | | | | | | | Android 4.4.3 release 1
| | * Changed dvmDexCacheStatus to check for odex file first.Jeff Hao2014-03-171-51/+55
| | | | | | | | | | | | | | | | | | | | | | | | This prevents the generation of a new dexfile when an odex file already exists when switching between Art and Dalvik. Bug: 13463154 Change-Id: I55ef9abe1fe172ee656550e78556381f95698c33
| | * Merge "Deactivate multi-thread in multi-dex mode" into klp-devXavier Ducrohet2013-12-041-1/+2
| | |\
| | | * Deactivate multi-thread in multi-dex modeBenoit Lamarche2013-12-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | It should already have been the case, but it wasn't and it crashed. Change-Id: Icb461d6e43ef2d113f59038d8c2327f3cfaff86c (cherry picked from commit cf069ca52f2af9f70fcbeac99443f00401d43b4a)
| | * | Merge "Fix synchronization when preparing ids." into klp-devXavier Ducrohet2013-12-044-23/+19
| | |\ \
| | | * | Fix synchronization when preparing ids.Yohann Roussel2013-12-034-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 (cherry picked from commit 5c4883e75b26a002c67bfa1c0053c50e17dbac90)
| | * / Fix BufferOverflowException when merging dexesBenoit Lamarche2013-12-031-1/+7
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 11519714 The bug was due to the fact that when merging 2 dexes, not enough size may be reserved for the "typeLists" section. This is because we only aligned the sum of the size of both sections. If both typeLists sections were aligned with 2 and not with 4, we are 4 bytes short when writing. Change-Id: I73b51eb25434a622143011741a69b88d42507f43 (cherry picked from commit 2241dbe132cf90b58f93c014bdd807405b7f82f5)
* | | Merge remote-tracking branch 'github/cm-11.0' into HEADcm-11.0-XNPH25R-bacon-d22b777afacm-11.0-XNPH22R-bacon-03d77315eaBrint E. Kriebel2014-05-080-0/+0
|\| |
| * | dalvik: Disable loop hoisting optimization on perf buildsSteve Kondik2014-05-081-0/+4
| | | | | | | | | | | | | | | | | | * Fixes VSCO Cam array traversal crash when perf is enabled. Change-Id: I57e59e407a538c4cc48972f4cf3167c505d7ded4
* | | dalvik: Disable loop hoisting optimization on perf buildsSteve Kondik2014-05-081-0/+4
|/ / | | | | | | | | | | * Fixes VSCO Cam array traversal crash when perf is enabled. Change-Id: I57e59e407a538c4cc48972f4cf3167c505d7ded4
* | Revert "dalvik: add placeholder for future changes"Steve Kondik2014-05-012-10/+1
| | | | | | | | | | | | | | | | * There are GC issues with this version. Rollback for now. This reverts commit cdf7a375a8e44fad85e90e7234e561088b20a897. Change-Id: I983a14a7c39f99427e4a437f1a752fc99db91e28
* | Use RETURN_PTR(NULL) instead of RETURN_VOID in newNonMovableArray.Mathieu Chartier2014-05-011-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 :Increase the upper limit check for DexOpt Deps tableAbhishek Arpure2014-05-011-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: I5431238839712499122eb35132599230d8610de8 CRs-Fixed:621955
* | Revert "Use MAP_FIXED in remapNewHeap"Ricardo Cerqueira2014-04-301-1/+1
| | | | | | | | | | | | | | This reverts commit 462bc921aefe3b96e8cc7dae91e234b0e455966c, it breaks android.openglperf.cts.GlAppSwitchTest#testGlActivitySwitchingFast Change-Id: Ic153994859f678dbef4328bee5740e21beb735e0
* | Revert "Change exception message for ArrayStoreException."Ricardo Cerqueira2014-04-291-1/+1
| | | | | | | | | | | | | | | | | | Fix all the libcore.java.lang.ArrayStoreExceptionTest failures. Why are we pulling cosmetic changes from master? This reverts commit 653ffbf481aa19c4f6c9a358b33d0d812758dfe5. Change-Id: Icc4d1b40c578a5eef6890e9a03c7b10a96b75c0b
* | Dalvik :Increase the upper limit check for DexOpt Deps tableTapas Pradhan2014-04-041-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: I479d105002f98abd281aeeaa6463fc870a3c86b3
* | Dalvik : Increase the upper limit check for DexOpt Deps tableTapas Pradhan2014-03-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: I63119dc3e45df19910ae70cedad6109075672d6e
* | dalvik: add placeholder for future changesWei Wang2014-03-212-1/+10
| | | | | | | | | | | | add placeholder for future changes Change-Id: I09dd704a60857de71cafd7e6b64ee750c5cb95b1
* | Remove old fork-and-specialize APIDave Platt2014-02-191-18/+1
| | | | | | | | | | | | | | | | | | As promised, this is the cleanup patch-set which removes the old native "fork and specialize" API, which has been replaced by a slightly-enhanced one which can close the Zygote socket descriptors in the Zygote child. Change-Id: I33f504afd242e268863270139b4e421d4b0728f2
* | Finish fixing Zygote descriptor leakage problemDave Platt2014-02-191-3/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to prevent Zygote descriptors from leaking into the child environment, they should be closed by the forked-off child process before the child switches to the application UID. These changes close the descriptors via dup2(), substituting a descriptor open to /dev/null in their place; this allows the Zygote Java code to close the FileDescriptor objects cleanly. This is a multi-project change: dalvik, art, libcore, frameworks/base, and external/sepolicy are affected. The CLs need to be approved together, lest the build break or the software fail to boot. Round 2: whitespace Bug: 12114500 Change-Id: I989c83291d0c42d4cad63f24a3e98a93e231c9d3
* | Revert JIT changes for nowSteve Kondik2014-02-035-131/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Need fixed to play nice with perf Revert "Dalvik: Add hardware vfp support for OP_LONG_TO_DOUBLE in JIT" This reverts commit eadd85e3c0eceb448f4afb55ab6ef4b5f3b7736a. Revert "Dalvik: Add sdiv support in the JIT" This reverts commit c28a3412e2d18872f0eae1b1a96bb29e6f6e0df9.
* | vm: Enable fast multiply on perf builds tooSteve Kondik2014-02-025-13/+2
| | | | | | | | Change-Id: I74d152ea9cfe5b15daa9a8353ca27d8afa7474d2
* | Use MAP_FIXED in remapNewHeapPete Delaney2014-02-021-1/+1
| | | | | | | | | | | | | | | | The heap address must not change when it is remapped Change-Id: Ia44f178932e2afe8de3d4739e7085caae8568885 Signed-off-by: Pete Delaney <piet.delaney@imgtec.com> Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
* | Fix dx test 034.Jean-Marie Henaff2014-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | - Test 034 requires that a dex file is dumped in a human readable form even if the dex file does not contain ClassDef. Consequently, the command line behavior is modified to satisfy this requirement. (cherry-pick from commit 64f4aad1e6ef58b29f860b59512ca1a676ac6eb8) Change-Id: Id64b563745db2b22ec98fba9be25413192c07719
* | Change exception message for ArrayStoreException.Narayan Kamath2014-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | The exception message is tested in SystemTest. I'm not sure what's worse: Changing the dalvik message or changing the test to be happy with both messages. (I assume the art message is the one we chose because it's more recent.) Change-Id: Ia68641a05f992ab5a949add865fb3f7bb46e61be
* | Remove code related to extended-opcode.Jean-Marie Henaff2014-02-024-49/+6
| | | | | | | | | | | | | | | | - This support was removed one year ago. (cherry-pick from commit 18b65cbb3ec6634618bd3240a692507432e634b5) Change-Id: I1154e518dc8a15220f2fcb163056570030492bb0
* | Initialize callTgt variableBernhard Rosenkränzer2014-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This silcences a clang build failure: dalvik/vm/compiler/codegen/arm/armv7-a-neon/../CodegenDriver.cpp:904:41: error: variable 'callTgt' is uninitialized when used here [-Werror,-Wuninitialized] LOAD_FUNC_ADDR(cUnit, r2, (int) callTgt); ^~~~~~~ Change-Id: Ic5b3bb492f19b842743bf7d6214c89301ff524e7 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* | Don't implicitly cast NULL to a boolBernhard Rosenkränzer2014-02-021-3/+3
| | | | | | | | | | | | | | | | The code is wrong and causes an error when building with clang 3.4 (-Werror,-Wnull-conversion) Change-Id: If03aa782fa25337802ff906a0d06071fbda93e26 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* | Dalvik: Add hardware vfp support for OP_LONG_TO_DOUBLE in JITSerban Constantinescu2014-02-023-0/+43
| | | | | | | | | | | | | | | | | | The following patch adds hardware vfp support for OP_LONG_TO_DOUBLE in the JIT. Previously this opcode was implemented using one of gcc's builtin helpers. Change-Id: I3c88b2a527dea99dcefdb34be6695e75993da73e Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* | Dalvik: Add hardware support for OP_LONG_TO_DOUBLE in the interpreterSerban Constantinescu2014-02-023-13/+45
| | | | | | | | | | | | | | | | | | The following patch adds hardware vfp support for OP_LONG_TO_DOUBLE in the interpreter. Previously this opcode was implemented using one of gcc's builtin helpers. Change-Id: I7713aa03c0b0bed8df592710dd50ab3d13d4bd9b Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* | Dalvik: Add sdiv support in the JITSerban Constantinescu2014-02-024-2/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds hardware divide support in the JIT side of dalvik. This operation is supported on new armv7 cpus such as A15 or A7. The following opcodes are enabled and will generate code based using SDIV instruction: OP_DIV_INT OP_DIV_INT_2ADDR OP_REM_INT OP_REM_INT_2ADDR OP_DIV_INT_LIT16 OP_DIV_INT_LIT8 OP_REM_INT_LIT16 OP_REM_INT_LIT8 Change-Id: I2b2f9f337f13b5c794df951c4929b6ca0ad583c4 Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* | Dalvik: Add sdiv support in the interpreterSerban Constantinescu2014-02-0212-308/+504
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds hardware divide support in the interpreter side of dalvik. This operation is supported on new armv7 cpus such as A15 or A7. Opcodes added: OP_DIV_INT OP_DIV_INT_2ADDR OP_DIV_INT_LIT16 OP_DIV_INT_LIT8 OP_REM_INT OP_REM_INT_2ADDR OP_REM_INT_LIT16 OP_REM_INT_LIT8 Change-Id: Ib1ec5856d957feadd90807fe53ec34cc0e1fd4a2 Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* | dalvik: Fix leak in error condition in FindClassIvan Evlogiev2014-01-281-0/+1
| | | | | | | | | | | | Release trackedLoader for all exit points in FindClass Change-Id: I2da26ed6253c2b1b9381bff394596245b993602c
* | setting RLIMIT to INFINITY.Uday Kumar Sundar2014-01-281-1/+12
| | | | | | | | | | | | This is to generate coredumps for processes spawned by zygote Change-Id: I2dbac76fbcaa7be3845ba5e12ad064548a25e2e3
* | export setThreadName() and add NULL checkWilliam Roberts2014-01-173-3/+19
| | | | | | | | Change-Id: I9b69a23b308fe851ed49722c0da3953433b3f5b8
* | Set Processes comm name to package nameWilliam Roberts2014-01-171-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
* | A char array copy optimization (dalvik).Hiroshi Yamauchi2014-01-171-0/+37
| | | | | | | | | | | | | | | | Bug: 7103825 (cherry picked from commit dc6cb9c7cb4ef636aa6f542615410b56a67b94dc) Change-Id: I0b8ab789ffb8702bc134b32398c120cc3ed29b9c
* | Dalvik: DMB Optimisations for TracingJITDavid Butcher2014-01-022-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 (cherry picked from commit 48704eccc23e91f3ee46ea4882d1dfef43646cc4)
* | Dalvik: DMB OptimisationDavid Butcher2014-01-023-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 (cherry picked from commit 2ea163ba54731afcfa11341a525c33e08d0781fa)
* | dalvik: Use Bionic's memmove on cortex-a15Steve Kondik2013-12-291-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
* | Dalvik: Ensure that the array length complies with the final specifierSerban Constantinescu2013-12-201-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>