summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* ART: Change UnresolvedMergedType mergeAndreas Gampe2015-08-101-2/+2
| | | | | | | Change to use IsUnresolvedTypes. Bug: 22881413 Change-Id: Ic27b97b475b28a5bdf994ea5178767e0efb0e752
* ART: Change UnresolvedMergedType internal representationAndreas Gampe2015-08-107-89/+144
| | | | | | | | | | Squashed cherry-picks: * 067f1ed7816cf4eb5d6258ca31b387ddb2073ab7 * 750f7c2827318f6d07620f2ef0321218ea4d8670 * 2f90b3415aadc2587d26c767c6bfb235797119a8 * 2ea7b70b2347969f3735bd0ec1b462bd6d2ff1bd Bug: 22881413
* Don't dump stack when deleting an invalid local refMathieu Chartier2015-07-301-1/+5
| | | | | Bug: 21724724 Change-Id: Ifa99df9ee9f3265038a0c0f7944e834e42c498d4
* Bugfix: Java char is 16 bits, can not be treated as boolean.Fredrik Roubert2015-07-271-2/+2
| | | | | | | | | | | | | | Using SetFieldBooleanVolatile() and SetFieldBoolean() happens to work for char values that only use the lower 8 bits, but is a mistake that was introduced by the "Add AccessibleObject and Field to mirror" commit: https://android.googlesource.com/platform/art/+/daaf326 (cherry picked from commit 3152c82b0d33e5fb0a4aa964ea58451c72734444) Bug:22772717 Change-Id: Iec02ba3084c992ea239ecef688d7d29c7e21ae16
* ART: Change the stack dump format to be in line with debuggerdAndreas Gampe2015-07-236-4/+25
| | | | | | | | | | Make offsets 16 digits on 64-bit platforms. Add the ability to provide the build fingerprint, and print it in the traces output. Bug: 22693991 Change-Id: Ibd3d3b3bd65dce84acfb97a487807d6f280a9508
* Merge "Don't check code pointer for proxies in ArtMethod::GetQuickFrameInfo" ↵Mathieu Chartier2015-07-211-1/+4
|\ | | | | | | into mnc-dev
| * Don't check code pointer for proxies in ArtMethod::GetQuickFrameInfoMathieu Chartier2015-07-211-1/+4
| | | | | | | | | | | | | | | | (cherry picked from commit 7c0fe5e99d1d150b3072a3ae4cd0f0362fe32834) Bug: 22541058 Change-Id: Id084a69ccd9835147ec71df6bb759e0f1b5e6fbf
* | Get non proxy method for StackDumpVisitorMathieu Chartier2015-07-211-0/+1
|/ | | | | | | | | Fixes failing DCHECK. (cherry picked from commit ef76c3fa57ddf3f7ca32e118f599da8cb4eb1560) Bug: 22553459 Change-Id: I6fe1012f9a5f8d29cb98bf25e3a279da51c5e1c0
* Merge "Fix cfi information for x86." into mnc-devChristopher Ferris2015-07-132-4/+12
|\
| * Fix cfi information for x86.Christopher Ferris2015-07-132-4/+12
| | | | | | | | | | | | | | With this change, I can now enable debug malloc fully. Bug: 19071092 Change-Id: Iabfb18505feffb480504a8bbfbac60dd219ed48a
* | Merge "Initialize pDeoptimize quick entry pointer for Mips." into mnc-devRoland Levillain2015-07-132-0/+7
|\ \
| * | Initialize pDeoptimize quick entry pointer for Mips.Douglas Leung2015-07-132-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes art test 449-checker-bce. (cherry picked from commit 2e8bf554574516e0e6a9b10ccd9f13bf56189795) Bug: 21555893 Change-Id: I9a87c430168ea35984289b0b4a417aa0c659b6d5
* | | Merge "Return an invalid StackMap when none can be found." into mnc-devNicolas Geoffray2015-07-132-26/+31
|\ \ \ | |/ / |/| |
| * | Return an invalid StackMap when none can be found.Nicolas Geoffray2015-07-132-26/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:22389275 Partial cherry-pick of: https://android-review.googlesource.com/#/c/151853 (commit e12997fbce8e22431be58cac9db2535f7b4a7ac3) Change-Id: Ia30b817be1b50d97243ba32967eeee359ed679c4
* | | Fix proxy handling in FindDeclaredVirtualMethodMathieu Chartier2015-07-111-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added missing GetInterfaceMethodIfProxy and test. Fixed formatting. Bug: 22411819 https://code.google.com/p/android-developer-preview/issues/detail?id=2635 (cherry picked from commit 72156e28fd6bc72ac965b29446f8801b2e82f2fd) Change-Id: I3eece9c72091bb9d0262aacf0a75ec6908b5f4d2
* | | ART: Change merges with Undefined to UndefinedAndreas Gampe2015-07-091-1/+9
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The result of a merge with an Undefined type should be Undefined. Conflicts are allowed to be copied around, but Undefined registers should not be touched at all, except to be written into. Add a success test case (the register isn't used) and a fail test case (the register is tried to be copied). Bug: 22331663 Bug: 22371999 (cherry picked from commit 97a1ff353f254b6e46c7501fe3f0e3254c2517b4) Change-Id: I9697ce31c1d2ab5aee0433dcf1253bcca79c2983
* | ART: Allow to set and copy conflicts in the verifierAndreas Gampe2015-07-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | As long as conflicts are not actively being used, it is OK to set them in a register line or copy them around. Bug: 22331663 (cherry picked from commit 38536287f61c9c0fc3bab8c1950cf8c74881482a) Change-Id: I61999e2d9c92f9bdedcb0a5dea54df3c5bb130ca
* | ART: Avoid soft- after hard-fail in verifierAndreas Gampe2015-07-081-1/+3
|/ | | | | | | | | | | Follow-up to 414000ec4d728b5c85f8c6dee4f867fecde59b01. Bug: 21886894 Bug: 22245124 (cherry picked from commit 890da29d279c44923f9271450b8a4423b1267655) Change-Id: I3728187bd8526cdf84f95b123e6fad5d6c5a8b3c
* Add implicit null pointer and stack overflow checks for Mips.Douglas Leung2015-07-033-20/+192
| | | | | | | (cherry picked from commit 22bb5a2ebc1e2724179faf4660b2735dcb185f21) Bug: 21555893 Change-Id: I2a995be128a5603d08753c14956dd8c8240ac63c
* ART: Remove bad FindSymbol callAndreas Gampe2015-06-301-3/+2
| | | | | | | | | | | | The removed call is superfluous under normal operation and harmful when running a native-bridged library. Bug: 22194296 Bug: https://code.google.com/p/android-developer-preview/issues/detail?id=2367 (cherry picked from commit 8fec90b421732b3eb278555f57aaf48fda4fa4ba) Change-Id: I3eb8f435a6a974a3e87a370b254ba8752f2a59b3
* ART: Fix CFI annotation for art_quick_aput_objMathieu Chartier2015-06-293-2/+5
| | | | | | | | | | Fix the CFI state after an early return. Bug: 22014525 (cherry picked from commit 2738639bcd30b908d825725169b7497ed047debb) Change-Id: I56b9ba8cf8c47d70a642f064e59c7e04a476dd2f
* ART: Fix invalid access and DCHECK in verifierAndreas Gampe2015-06-261-8/+16
| | | | | | | | | | | | | | If we get a throwing failure when setting types from the signature, the work instruction index is still invalid. Do not try to copy the line then. As a throwing failure might happen in the above instance, but the flow analysis expects to have a cleared failure flag before processing each instruction, clear the flag. Bug: 21645819 Bug: 22080519 Change-Id: I224c4dad98fa5bb50e62210f0ee30c0dd020e3a6
* Merge "Require mutator lock for DeleteLocalRef" into mnc-devMathieu Chartier2015-06-261-6/+7
|\
| * Require mutator lock for DeleteLocalRefMathieu Chartier2015-06-261-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | There was a race condition where suspended threads could call DeleteLocalRef while the GC was marking their roots. This could cause the GC to attempt to mark a null object. (cherry picked from commit dd06afecd67fc6a60856436ab150a4d1b9a8ad29) Bug: 22119403 Change-Id: I962c717bb87b2acb2a4710a2d7ab16793e031401
* | ART: Fix streaming tracing issuesAndreas Gampe2015-06-263-19/+28
|/ | | | | | | | | | | | Fix a lock ordering issue in streaming-mode tracing. Fix a moving-GC issue in streaming-mode tracing. DexCache objects are not good keys for a map. Expose streaming mode for testing in run-tests. Bug: 21760614 Change-Id: Idcd0575684ee3cc0cec3f81b4fdd0d5988c11e8c
* ART: Reset runtime_throw_failure flagAndreas Gampe2015-06-252-1/+11
| | | | | | | | | | | | | | | | The flag is instruction-specific. It transports the info from Fail to the main loop. It must be cleared after each iteration. Introduce a second flag to store whether we saw such a failure at all. Update test expectations. Bug: 22080519 (cherry picked from commit d12e782bcee03ecb6dec41aa9673ef53b638dcea) Change-Id: I32be914819946233babaa4cb7343844d97b61ba5
* Merge "Do not try to compile resource-only dex files." into mnc-devRichard Uhler2015-06-254-44/+109
|\
| * Do not try to compile resource-only dex files.Richard Uhler2015-06-244-44/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | This changes behavior in the case where we are asked to load a dex file that does not exist or has no classes.dex entry. Previously we would run dex2oat, which would log an error message and fail. Now we skip running dex2oat, we report the DexOptStatus as kNoDexOptNeeded, and we do not try to fall back to the missing original dex files. Bug: 21722039 Change-Id: I90b1f4165138daac57bb9d7a354319005652c593
* | Hard-fail get-/put-object to a non-reference field.Vladimir Marko2015-06-251-8/+18
| | | | | | | | | | | | | | | | Bug: 21886894 (cherry picked from commit 414000ec4d728b5c85f8c6dee4f867fecde59b01) Change-Id: Iafc32f0e45d26f3aaa2d521b98353e7cede16c6f
* | Merge "ART: Fix arm32 instrumentation exit stub" into mnc-devAndreas Gampe2015-06-251-2/+7
|\ \
| * | ART: Fix arm32 instrumentation exit stubAndreas Gampe2015-06-241-2/+7
| | | | | | | | | | | | | | | | | | | | | Properly store, pass and restore floating point result. Bug: 22047833 Change-Id: If5d9efbe63334c9b6353f76ce6e4fe519602482a
* | | Fix force copyMathieu Chartier2015-06-242-44/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | We now correctly pass the returned pointer back onto the release functions. Bug: 22056708 Change-Id: I1a7300d3a4522a3c81b432ec742ae1c0bd00b51e (cherry picked from commit b735bd9c04aa291d0a1bdc2c0a094a1a75ad0596)
* | | Merge "Fix imt conflict trampoline for mips64" into mnc-devMathieu Chartier2015-06-241-1/+1
|\ \ \
| * | | Fix imt conflict trampoline for mips64Mathieu Chartier2015-06-241-1/+1
| |/ / | | | | | | | | | | | | | | | | | | Changed lwu to ld Bug: 21815962 Change-Id: I137e871d9c00f83cd5efc9d3a87fa05e84dc5d23
* | | Increase alt signal stack to 32K on host.Christopher Ferris2015-06-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On host, when there is a crash, the code tries to do an unwind from the signal handler. Under some conditions this can require a stack larger than 16K, so increase this value to 32K. The symptom of this is that you get an empty backtrace running art tests when there is a crash. Bug: 21949571 (cherry picked from commit e34c71ce21dbc9fac3427df887e90e1311b6fa8e) Change-Id: Ib1105a3470064d98843bd46f32d4fadb1d20e416
* | | Use a flag from the verifier to know if we should compile.Nicolas Geoffray2015-06-242-0/+5
|/ / | | | | | | | | | | | | | | | | | | | | Only used for the lack of bottom type in the aget-object case for now. Could be used for more. bug:21865466 (cherry picked from commit 4824c27988c8eeb302791624bb3ce1d557b0db6c) Change-Id: I2bb7fe1d4737bd92c1076b5193607d74d8761ee7
* | Merge "ART: Follow-up to 507cc6f83bf6379728f2dd20391f2ed5fbfe6371" into mnc-devAndreas Gampe2015-06-232-22/+41
|\ \
| * | ART: Follow-up to 507cc6f83bf6379728f2dd20391f2ed5fbfe6371Andreas Gampe2015-06-232-22/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not trigger DCHECK aborts for final and abstract classes when they are used from other classes. Instead issue a soft error that leads to a runtime failure. Bug: 21873151 (cherry picked from commit f23f33de8b3e9abd16720e0f48d43d63d41dee16) Change-Id: Ie5251a176722811b3c74585222874313a53f7e02
* | | Merge "Fix field ordering for String in hprof" into mnc-devMathieu Chartier2015-06-231-23/+25
|\ \ \
| * | | Fix field ordering for String in hprofMathieu Chartier2015-06-231-23/+25
| | |/ | |/| | | | | | | | | | | | | | | | | | | We were inserting value field after the Object field instead of the String fields. Bug: 22043800 Change-Id: Ibaddbd7299562949e32eceb625feac325539e3ce
* / | Make dex file verifier check that indexes are increasing.Jeff Hao2015-06-231-5/+32
|/ / | | | | | | | | | | | | Note that this still allows duplicates. Bug: 21868011 Change-Id: Ib0e91c816eccfaf3b0dac340c05ffd5dc4df17cc
* | Merge "Fix another miranda method moving GC bug" into mnc-devMathieu Chartier2015-06-232-18/+24
|\ \
| * | Fix another miranda method moving GC bugMathieu Chartier2015-06-222-22/+28
| | | | | | | | | | | | | | | | | | | | | | | | Need to copy miranda methods over before we allocate the new vtable or else we may have stale miranda gc roots. Bug: 21664466 Change-Id: Ib3e415bb9e7df7abfa18c98fe01f790fa39622dc
* | | New experimental GC stress modeMathieu Chartier2015-06-228-14/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tries to do a GC for every unique call stack (up to 16 frames). The goal is to catch moving GC bugs and lock violations without being rediculously slow. Some tests fail on 64 bits, 32 bit host doesn't work. N5 is booting. Added runtime -Xgc options: gcstress and nogcstress. Bug: 21664466 (cherry picked from commit 310008008c90fea246efd00cb99ee7ded97c5209) Change-Id: Icb8e420f2048e8ee83bcca7937563166a2638f5c
* | | Merge "Change GC to allow strings to use large object space." into mnc-devJeff Hao2015-06-221-1/+1
|\ \ \ | |_|/ |/| |
| * | Change GC to allow strings to use large object space.Jeff Hao2015-06-221-1/+1
| | | | | | | | | | | | | | | Bug: 21209641 Change-Id: Ib007a30e575e391e2b5bddb816a9d2e82502c7d5
* | | Merge "ART: Allow checking RETURN_VOID_NO_BARRIER on unresolved classes" ↵Andreas Gampe2015-06-221-0/+32
|\ \ \ | |/ / |/| | | | | into mnc-dev
| * | ART: Allow checking RETURN_VOID_NO_BARRIER on unresolved classesAndreas Gampe2015-06-221-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We must check that all fields are non-final, even for unresolved classes. Fall back to the dex file for this information. Bug: 22005084 Bug: https://code.google.com/p/android/issues/detail?id=177694 (cherry picked from commit 68df32091cc79468c81956633e279523b48ea8bf) Change-Id: If2126d1be5dccadbbedcdccabde7398688d6e5ca
* | | Make large string use large object space.Jeff Hao2015-06-221-2/+2
|/ / | | | | | | | | Bug: 21209641 Change-Id: I731a920c02f29f0321f2077093516aaa0f8d782f
* | ART: Disallow classes that are abstract and finalAndreas Gampe2015-06-221-0/+9
| | | | | | | | | | | | | | | | | | | | Make the verifier fail such classes. Bug: 21873151 (cherry picked from commit 507cc6f83bf6379728f2dd20391f2ed5fbfe6371) Change-Id: I217f3d71f44bccdcee7ca830e092c807928bed39