summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'jb-mr0-release' of ↵jellybean-stablejellybeanSteve Kondik2012-10-090-0/+0
|\ | | | | | | https://android.googlesource.com/platform/dalvik into aosp-merge
| * merge in jb-mr0-release history after reset to jb-devThe Android Automerger2012-07-180-0/+0
| |\
* | | Fix an ugly bug where try/catch offsets weren't being mapped properly.Jesse Wilson2012-09-254-32/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In dex files, there are several places where one object refers to another object by its position in the file. The dex merger is generally very careful to adjust these mappings when combining dex files. Unfortunately one of these cases was broken. Each try_item refers to a corresponding encoded_catch_handler by its byte offset in a list. Most of the time this byte offset is the same in the input dex file and the output dex file. But encoded_catch_handlers are variable-length because they use a variable-length uleb128 encoding to address the type_idx being caught. When dex files are merged, some exception types may go from having a small index to having a large index, increasing the number of bytes required to encode that index. This breaks our ability to directly copy over offsets as we were doing previously. Bug: http://code.google.com/p/android/issues/detail?id=36490 Change-Id: I3bdadf20899fdb5d4d074e69103b33c0404a31f8
* | | Merge branch 'jb-release' of ↵Steve Kondik2012-09-240-0/+0
|\ \ \ | | | | | | | | | | | | https://android.googlesource.com/platform/dalvik into aosp
| * \ \ merge in jb-release history after reset to jb-devThe Android Automerger2012-07-240-0/+0
| |\ \ \ | | |_|/ | |/| |
| | * | merge in jb-release history after reset to jb-devThe Android Automerger2012-07-180-0/+0
| | |\ \ | | |/ / | |/| / | | |/
| | * Avoid sign extension in packed-switch.Elliott Hughes2012-07-173-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code (at least in the ARM version) is trying to assign to r0 and r1 from C by returning a 64-bit result. The mistaken use of signed integers for pointers can lead to sign extension if the JIT code cache is at a sufficiently high address. Bug: 6799823 Bug: 6703991 (cherry picked from commit 2d0c1c2dbe44458ebb199c47ce1047f266db5349) Conflicts: vm/compiler/codegen/mips/CalloutHelper.h vm/compiler/codegen/mips/CodegenDriver.cpp Change-Id: Id4699fdd0b3d61abe9c92874832b8561df4fa797
* | | Revert "Upgrade to dlmalloc 2.8.5."Ricardo Cerqueira2012-09-249-349/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes to malloc were breaking some blobs... :( This reverts commit 9cee9219e4477e9a0a6fd72c7c90828d141d25e1. Revert "Trim pre-Zygote fork, fix under-estimate of heap limit." This reverts commit d87884d814400b03d1fd6f6370dddae080522dae.
* | | Optimize those StrictMath routines that are identical to Math routines.Elliott Hughes2012-09-203-52/+59
| | | | | | | | | | | | | | | | | | | | | We can just use the existing Math intinsics. Bug: 7146208 Change-Id: I9e78d33cf65a5dcc5a7c0133e67bd9c3c1e43f23
* | | Trim pre-Zygote fork, fix under-estimate of heap limit.Ian Rogers2012-09-203-3/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Card scanning uses dvmHeapSourceGetValue to scan from the heap base to the total foot print of the heap. Trimming the Zygote may lower the footprint of the heap by creating a hole in the middle. This hole is unaccounted for in the card scanning leading to missed dirty cards. This was a regression introduced by: https://android-review.googlesource.com/#/c/41728/ as it didn't #define MORECORE_CANNOT_TRIM 1 that was previously defined here: https://android-review.googlesource.com/#/c/41731/4/libcutils/mspace.c Introduce a notion of dvmHeapSourceGetLimit so that card scanning doesn't rely on footprint. Trim the heap before forking the Zygote. This change continues to enable morecore trimming of mspaces. Change-Id: I3f0b12371097f50a1f920cac25846ca08685e7ed
* | | Upgrade to dlmalloc 2.8.5.Ian Rogers2012-09-208-201/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to using dlmalloc 2.8.5. Define mspace functionality directly using dlmalloc rather than taking from libcutils. Remove growth limit check in tryMalloc that only checks initial growth limit. Implement trimming at the end of the mspace. Depends upon: https://android-review.googlesource.com/41717 Change-Id: Ia2c6b50bdb0b0d5aae4b18deefbd1bf50dfa49d5
* | | dalvik: update ARMv6 code to bring in line with ARMv5Lalit Maganti2012-09-1511-121/+123
| | | | | | | | | | | | Change-Id: I9c60645a4d3fff3567b4b88acd4a6be98a774927
* | | Support debug info in dexmerge and fix max blowup of annotationsElliott Hughes2012-09-062-8/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support debug info in dexmerge. Bug: 4090053 (cherry-pick of bc23c4f3ebaefebb3f1be7732767631f91e165ea.) Change-Id: I1108933fc03330ff91be3a2edef8b4966977dcd7 Signed-off-by: Jesse Wilson <jesse@swank.ca> Fix a bug where debugInfos' size wasn't being computed. Previously debugInfos' size of 0 caused a malformed dex file because debug data was present but not mentioned in the table of contents. Change-Id: I07171aaee12fef9f303fc505909f44ef1a714114 Fix a bug where the max blowup of annotations was incorrect. I'm not sure where the 1.34 number comes from but it's incorrect. From the spec, the encoded_annotation is made up of a single byte plus an unlimited number of uleb128 values. Each of these values can double in width in the worst case. I received (personal) email from one user who'd run into a case worse than the incorrect 1.34 limit. Change-Id: I3b676e6d2b274aaa538ca61ce23945b3d49aff04
* | | Fix for 6994917 GC is slower since JOO33B per FrameworkPerf testMathieu Chartier2012-08-273-13/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the GC aspect of the regression in FrameworkTest for Gc. Large bitmap test seems to be unaffected. Changes are: We now have minimum sleep of 1ms instead of 10ms in dvmSuspendAll. Some heuristics to avoid doing extra GCs if an allocation waited for a concurrent Gc. Change-Id: I3797c7dc813e26bd1f7bb0a9dbe55eb70dd1c9c9
* | | Switched code to blx <reg>David Butcher2012-08-2716-193/+193
| | | | | | | | | | | | | | | | | | | | | ldr ip,<addr> blx ip is preferred over mov lr,pc ldr pc,<addr> from armv5te, and will typically perform better on later ARM processors. Change-Id: I8f2e5e794c644faafd767037ad56579f2934de47
* | | Merge "Change dalvik script to use exec" into jellybeanSteve Kondik2012-08-271-1/+1
|\ \ \
| * | | Change dalvik script to use execBrian Carlstrom2012-08-251-1/+1
| | | | | | | | | | | | | | | | Change-Id: I0a82ced8ce31ae0e6916509a1c79b738c475ae18
* | | | Merge "Fix a small and unlikely memory leak." into jellybeanSteve Kondik2012-08-271-1/+1
|\ \ \ \
| * | | | Fix a small and unlikely memory leak.Elliott Hughes2012-08-251-1/+1
| |/ / / | | | | | | | | | | | | Change-Id: I131b9f2f8ae4a4b2bb3bb00bc2cd1e607d979bb5
* | | | Merge "Don't log "WAIT_FOR_CONCURRENT_GC blocked 0ms"." into jellybeanSteve Kondik2012-08-271-1/+3
|\ \ \ \
| * | | | Don't log "WAIT_FOR_CONCURRENT_GC blocked 0ms".Elliott Hughes2012-08-251-1/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Stupid to spend more time logging than we spent waiting. (Highly visible in the zygote's preloading phase.) Change-Id: If2d6b6093b3bebae0887aa385745b7ed9225216b
* / / / Missing zero-checks in JIT compilerMattias Petersson2012-08-257-9/+105
|/ / / | | | | | | | | | | | | | | | | | | | | | Zero-checks were not generated by the JIT compiler for some instructions. This caused crashes instead of the expected ArithmeticException. Change-Id: Ic8041741a7cccc1bd6b8c3c0723ba55a55af856b
* | | Merge branch 'jb-release' of ↵Steve Kondik2012-08-100-0/+0
|\| | | | | | | | | | | https://android.googlesource.com/platform/dalvik into aosp
| * | merge in jb-release history after reset to jb-devThe Android Automerger2012-05-310-0/+0
| |\ \ | | |/ | |/|
| | * merge in jb-release history after reset to jb-devThe Android Automerger2012-05-200-0/+0
| | |\
| | | * merge in jb-release history after reset to jb-devThe Android Automerger2012-05-190-0/+0
| | | |\
| | | | * merge in jb-release history after reset to jb-devThe Android Automerger2012-05-190-0/+0
| | | |/| | | |/|/
| | | * merge in jb-release history after reset to jb-devThe Android Automerger2012-05-140-0/+0
| | | |\
| | | | * merge in jb-release history after reset to jb-devThe Android Automerger2012-05-100-0/+0
| | | | |\
| | | | | * merge in jb-release history after reset to jb-devThe Android Automerger2012-05-060-0/+0
| | | | | |\
| | | | | | * merge in jb-release history after reset to jb-devThe Android Automerger2012-04-250-0/+0
| | | | | | |\
| | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-04-170-0/+0
| | | | | | | |\
| | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-04-160-0/+0
| | | | | | | | |\
| | | | | | | | | * Add a -XX:mainThreadStackSize= option.Elliott Hughes2012-04-133-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to -Xss, but for the main thread only. Bug: 6315322 Change-Id: I84bd5974f830f348fd9a0486ae972520b4a02cc4
| | | | | | | | | * Make sure we rethrow the same exception we started with.Jeff Brown2012-04-111-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 6312938 Change-Id: I41d8adf27fd32103c55d9eeafa28a25c37f5029d
| | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-04-090-0/+0
| | | | | | | | | |\
| | | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-04-020-0/+0
| | | | | | | | | | |\
| | | | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-03-280-0/+0
| | | | | | | | | | | |\
| | | | | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-03-270-0/+0
| | | | | | | | | | | | |\
| | | | | | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-03-190-0/+0
| | | | | | | | | | | | | |\
| | | | | | | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-02-200-0/+0
| | | | | | | | | | | | | | |\
| | | | | | | | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-02-150-0/+0
| | | | | | | | | | | | | | | |\
| | | | | | | | | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-02-140-0/+0
| | | | | | | | | | | | | | | | |\
| | | | | | | | | | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-02-020-0/+0
| | | | | | | | | | | | | | | | | |\
| | | | | | | | | | | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-01-310-0/+0
| | | | | | | | | | | | | | | | | | |\
| | | | | | | | | | | | | | | | | | | * merge in jb-release history after reset to masterThe Android Automerger2012-01-300-0/+0
| | | | | | | | | | | | | | | | | | | |\
| | | | | | | | | | | | | | | | | | | | * merge in ics-release history after reset to masterThe Android Automerger2012-01-250-0/+0
| | | | | | | | | | | | | | | | | | | | |\
| | | | | | | | | | | | | | | | | | | | | * merge in ics-release history after reset to masterThe Android Automerger2012-01-230-0/+0
| | | | | | | | | | | | | | | | | | | | | |\
| | | | | | | | | | | | | | | | | | | | | | * merge in ics-release history after reset to masterThe Android Automerger2012-01-190-0/+0
| | | | | | | | | | | | | | | | | | | | | | |\
| | | | | | | | | | | | | | | | | | | | | | | * merge in ics-release history after reset to masterThe Android Automerger2012-01-180-0/+0
| | | | | | | | | | | | | | | | | | | | | | | |\