OSDN Git Service
Hiroshi Yamauchi [Tue, 19 Jul 2016 23:44:05 +0000 (23:44 +0000)]
Merge \"Tune the GC ergnomics for the read barrier config.\"
am:
0331aa7274
Change-Id: Ib31f3c99bee9236746b8ac5eb5615bd794abeb29
Pirama Arumuga Nainar [Tue, 19 Jul 2016 23:40:18 +0000 (23:40 +0000)]
Merge \"Disable warnings triggered in Clang r271374\"
am:
73e83ec579
Change-Id: I7badac5ae194cda9411ea2856a30e4add8fc1ed8
Treehugger Robot [Tue, 19 Jul 2016 22:07:57 +0000 (22:07 +0000)]
Merge "Tune the GC ergnomics for the read barrier config."
Stephen Hines [Tue, 19 Jul 2016 22:02:31 +0000 (22:02 +0000)]
Merge "Disable warnings triggered in Clang r271374"
Pirama Arumuga Nainar [Tue, 28 Jun 2016 17:51:10 +0000 (10:51 -0700)]
Disable warnings triggered in Clang r271374
http://b/
28149048
http://b/
29823425
Disable -Wconstant-conversion and -Wundefined-var-template. The second
bug above tracks that these warnings get reenabled.
Test: Tested build, boot and common usage for Arm, Arm64, x86, x86_64,
Mips images in AOSP and internal branch.
Change-Id: Iea20cf6b5dbec3247b55cf8130f88202e786e367
Hiroshi Yamauchi [Tue, 19 Jul 2016 00:07:26 +0000 (17:07 -0700)]
Tune the GC ergnomics for the read barrier config.
Add 1.0 to the heap growth multiplier for the read barrier config, which
reduces the GC frequency down to roughly the same as CMS in one of the
jank tests.
Bug:
29517059
Bug:
12687968
Test: ART run-tests.
Change-Id: I1302a2f17e862f152d2f92bc06a65c9e6defcba0
Artem Serov [Tue, 19 Jul 2016 12:42:42 +0000 (12:42 +0000)]
Merge \"ARM: Fix shifted register offset mem address mode for load signed.\"
am:
bae13af2fc
Change-Id: I0c647d242f865e8a67dce0ef17388e7113a2f6a7
Vladimir Marko [Tue, 19 Jul 2016 12:37:33 +0000 (12:37 +0000)]
Merge "ARM: Fix shifted register offset mem address mode for load signed."
Artem Serov [Mon, 11 Jul 2016 13:00:46 +0000 (14:00 +0100)]
ARM: Fix shifted register offset mem address mode for load signed.
For example 'ldrsh r0, [sp, r1, LSL #2]' previously
was assembled as 'ldrh'.
Test: New test in assembler_thumb2_test.cc .
Change-Id: I1d30724f0c2745b131876bffefdc0a780d76f6a1
Mathieu Chartier [Mon, 18 Jul 2016 23:04:22 +0000 (23:04 +0000)]
Merge \"Do allocation fence before pushing on allocation stack\"
am:
2be946bbf9
Change-Id: I9506c94419d6fcddeba63264fbc75c83ac1c4ffa
Treehugger Robot [Mon, 18 Jul 2016 22:53:44 +0000 (22:53 +0000)]
Merge "Do allocation fence before pushing on allocation stack"
Mathieu Chartier [Mon, 18 Jul 2016 18:11:45 +0000 (11:11 -0700)]
Do allocation fence before pushing on allocation stack
Heap::VisitObjects relies on having valid classes for objects in
the allocation stack. If the writes reorder, the thread calling
VisitObjects could see the free list pointer instead of the class
of the object. I believe this is causing crashes in VisitObjects.
Bug:
28790624
Test: Volantis booted
Change-Id: I0f2d4097de1ef3f5caf670ecc977d4d6837872ca
Matthew Gharrity [Mon, 18 Jul 2016 19:47:48 +0000 (19:47 +0000)]
Merge \"Rename current register allocator implementation\"
am:
0c67ddaff8
Change-Id: I7adac5a5f5a9ba63fcb0097d94b31ede77597e98
Treehugger Robot [Mon, 18 Jul 2016 19:35:11 +0000 (19:35 +0000)]
Merge "Rename current register allocator implementation"
Andreas Gampe [Mon, 18 Jul 2016 18:57:44 +0000 (18:57 +0000)]
Merge \"ART: Fix run-test script\"
am:
64a73d790d
Change-Id: I9dd051ba4a63c536a1a45ac7a30bc80cd380f5ff
Treehugger Robot [Mon, 18 Jul 2016 18:49:56 +0000 (18:49 +0000)]
Merge "ART: Fix run-test script"
Andreas Gampe [Sat, 25 Jun 2016 05:30:29 +0000 (22:30 -0700)]
ART: Fix run-test script
Don't assume out is under BUILD_TOP.
Test: run-test with OUT_DIR_COMMON_BASE set
Change-Id: Iba408e807e6a15ff60de54d6d4d653814d4b11d0
Chris Larsen [Mon, 18 Jul 2016 15:45:33 +0000 (15:45 +0000)]
Merge \"MIPS64: Highest/Lowest Bit Intrinsic Support\"
am:
4c489f48ef
Change-Id: Iab39b42ed59a14a8cd02b8a357bb404d65cdd09f
Roland Levillain [Mon, 18 Jul 2016 15:40:34 +0000 (15:40 +0000)]
Merge "MIPS64: Highest/Lowest Bit Intrinsic Support"
Roland Levillain [Mon, 18 Jul 2016 15:18:01 +0000 (15:18 +0000)]
Merge \"Fix the build with respect to new VIXL.\"
am:
11502fb83b
Change-Id: I592e4fa47a4c443fadb174a18d13d98f09fc4beb
Roland Levillain [Mon, 18 Jul 2016 15:07:19 +0000 (15:07 +0000)]
Merge "Fix the build with respect to new VIXL."
Roland Levillain [Mon, 18 Jul 2016 15:03:05 +0000 (16:03 +0100)]
Fix the build with respect to new VIXL.
Test: Build ART for ARM64.
Change-Id: I2a9ebf145c61db9f8ceec6616963bac3ad5a7eb9
Scott Wakeling [Mon, 18 Jul 2016 14:33:16 +0000 (14:33 +0000)]
Merge \"Fixes to build against new VIXL interface.\"
am:
5668e58daf
Change-Id: I588dd05f58c50d5d50d5dd12b1dbf9e83819968d
Roland Levillain [Mon, 18 Jul 2016 14:28:05 +0000 (14:28 +0000)]
Merge "Fixes to build against new VIXL interface."
Nicolas Geoffray [Mon, 18 Jul 2016 12:23:19 +0000 (12:23 +0000)]
Merge \"Add a new control flow simplifier.\"
am:
24670a7aac
Change-Id: Ic6ee515aaee1feabf30c874bedc20aa8670cbbb3
Nicolas Geoffray [Mon, 18 Jul 2016 12:16:46 +0000 (12:16 +0000)]
Merge "Add a new control flow simplifier."
Alexandre Rames [Mon, 18 Jul 2016 11:25:16 +0000 (11:25 +0000)]
Merge \"ARM64: Improve code generated to spill/restore for slow paths.\"
am:
471c2270aa
Change-Id: Ic804eca9bac139147a6df8ccab3dbc97f1eadf5d
Treehugger Robot [Mon, 18 Jul 2016 11:19:14 +0000 (11:19 +0000)]
Merge "ARM64: Improve code generated to spill/restore for slow paths."
Alexandre Rames [Fri, 15 Jul 2016 16:41:13 +0000 (17:41 +0100)]
ARM64: Improve code generated to spill/restore for slow paths.
Aligning the accesses allows generating better code.
Before:
add x16, sp, #0x44 (68)
stp x0, x1, [x16, #-16]
After:
stp x0, x1, [sp, #56]
Change-Id: I3e20ad3fa59d00aee4b4d14ea9d59c7cd546509e
Nicolas Geoffray [Fri, 15 Jul 2016 09:46:17 +0000 (10:46 +0100)]
Add a new control flow simplifier.
Run it in the dead code elimination phase, as it relates to
creating dead branches.
From 0.04 to 0.07% less code size framework/gms/docs/fb (70K saved on fb)
3%-5% runtime performance improvements on Richards/DeltaBlue/Ritz.
Compile-time is mixed, so in the noise (from 2% slower to 1% faster).
test:611-checker-simplify-if
Change-Id: Ife8b7882d57b5481f5ca9dc163beba655d7e78bf
Andreas Gampe [Sat, 16 Jul 2016 04:51:29 +0000 (04:51 +0000)]
Merge \"ART: Replace ScopedFd with FdFile\"
am:
173f435e56
Change-Id: Ibcd5c857690db1374dfa4bf2920e78569bcd876d
Treehugger Robot [Sat, 16 Jul 2016 04:46:46 +0000 (04:46 +0000)]
Merge "ART: Replace ScopedFd with FdFile"
Andreas Gampe [Sat, 16 Jul 2016 00:17:34 +0000 (17:17 -0700)]
ART: Replace ScopedFd with FdFile
FdFile can now be used like ScopedFd. Remove ScopedFd.
Bug:
21192156
Test: m test-art-host
Test: m test-art-target (shamu)
Change-Id: I32115fa8b2b8bb5aa5d1886eae63522f80ce836b
Matthew Gharrity [Thu, 14 Jul 2016 21:08:16 +0000 (14:08 -0700)]
Rename current register allocator implementation
This will allow a cleaner commit in an upcoming
refactoring of register allocation.
Test: m test-art-host
Change-Id: If420c97b088b3c934411ff83373e024003120746
Serdjuk, Nikolay Y [Fri, 15 Jul 2016 16:45:09 +0000 (16:45 +0000)]
Merge \"ART: disassembler_x86 doesn\'t recognize NOPs\"
am:
161c866ca7
Change-Id: I5b43d2844e64a74104bd916307b843165a4a12d3
Treehugger Robot [Fri, 15 Jul 2016 16:40:28 +0000 (16:40 +0000)]
Merge "ART: disassembler_x86 doesn't recognize NOPs"
Scott Wakeling [Fri, 24 Jun 2016 15:19:36 +0000 (16:19 +0100)]
Fixes to build against new VIXL interface.
- Fix namespace usage and use of deprecated functions.
- Link all dependants to new libvixl-arm64 target for now.
Change-Id: Iee6f299784fd663fc2a759f3ee816fdbc511e509
Andreas Gampe [Fri, 15 Jul 2016 00:54:54 +0000 (00:54 +0000)]
Merge changes from topic \'cherry_pinner\'
am:
edec0eb18d
Change-Id: Ie07251a8addccdfbfa642b586bc05ed2cfac1b07
Andreas Gampe [Fri, 15 Jul 2016 00:45:22 +0000 (00:45 +0000)]
Merge changes from topic 'cherry_pinner'
* changes:
ART: Fix build break
Add API for getting location of odex or oat file
Andreas Gampe [Thu, 14 Jul 2016 23:50:52 +0000 (16:50 -0700)]
ART: Fix build break
Build break introduced by mismatch from merges.
Bug:
28251566
(cherry picked from commit
a472e4fd6260740af230bab7be5740d8c7bac360)
Test: m test-art-host
Change-Id: I83a333dd7394af630c5a79153d4838eb3a910714
Philip Cuadra [Tue, 12 Jul 2016 23:37:40 +0000 (16:37 -0700)]
Add API for getting location of odex or oat file
Add an API for getting the file path of odex or oat file given a dex
path.
Bug
28251566
(cherry picked from commit
b4827ace453b9280060a826e8f22cc8c9b6edb7d)
Change-Id: Ibebaa20f15d8135b25d9eb5927b7979801ebf0b2
Mathieu Chartier [Thu, 14 Jul 2016 21:16:25 +0000 (21:16 +0000)]
Merge \"Revert \"Revert \"Dump more dex file data in oatdump\"\"\"
am:
05d9a647a6
Change-Id: Id0e8315df8d934d1ac652c8baa520ba58d2db19d
Treehugger Robot [Thu, 14 Jul 2016 21:09:55 +0000 (21:09 +0000)]
Merge "Revert "Revert "Dump more dex file data in oatdump"""
Mathieu Chartier [Thu, 14 Jul 2016 17:10:44 +0000 (10:10 -0700)]
Revert "Revert "Dump more dex file data in oatdump""
Delete runtime to fix leak before callin exit.
Bug:
29462018
This reverts commit
9c05578dd2306231437bd290c0f70abc2bb3b6d8.
Change-Id: Ica23ba0f2d07496d0e4a3288329945f612ac3b20
xueliang.zhong [Thu, 14 Jul 2016 19:49:51 +0000 (19:49 +0000)]
Merge \"Integer.bitCount and Long.bitCount intrinsics for ARM\"
am:
f18f3cb337
Change-Id: I920dbbe308feb3999966fb9f9fa7e1f6cf1d1fa1
Treehugger Robot [Thu, 14 Jul 2016 19:44:38 +0000 (19:44 +0000)]
Merge "Integer.bitCount and Long.bitCount intrinsics for ARM"
Andreas Gampe [Thu, 14 Jul 2016 18:55:19 +0000 (18:55 +0000)]
Merge \"ART: Add FdFile constructors\"
am:
2fce5cf079
Change-Id: Iba1dd0dbe494aa365dc0b6a4727a34721f2bd1d8
Treehugger Robot [Thu, 14 Jul 2016 18:48:03 +0000 (18:48 +0000)]
Merge "ART: Add FdFile constructors"
xueliang.zhong [Tue, 5 Jul 2016 14:28:19 +0000 (15:28 +0100)]
Integer.bitCount and Long.bitCount intrinsics for ARM
Change-Id: I4ed3e779415be026c7d090b61a3e356b37c418e5
Roland Levillain [Thu, 14 Jul 2016 09:37:56 +0000 (09:37 +0000)]
Merge \"Introduce more compact ReadBarrierMark slow-paths.\"
am:
2c30a37342
Change-Id: I2101a1ca0c37c53499bb1bb75a6acb6e6b921c11
Nicolas Geoffray [Thu, 14 Jul 2016 09:37:35 +0000 (09:37 +0000)]
Merge \"Revert \"Dump more dex file data in oatdump\"\"
am:
7598736db0
Change-Id: I2d2efa7dbbd64d28d5ed80dc00940ca1e284e39d
Roland Levillain [Thu, 14 Jul 2016 09:32:34 +0000 (09:32 +0000)]
Merge "Introduce more compact ReadBarrierMark slow-paths."
Nicolas Geoffray [Thu, 14 Jul 2016 09:24:45 +0000 (09:24 +0000)]
Merge "Revert "Dump more dex file data in oatdump""
Nicolas Geoffray [Thu, 14 Jul 2016 09:24:30 +0000 (09:24 +0000)]
Revert "Dump more dex file data in oatdump"
Breaks valgrind.
Bug:
29462018
This reverts commit
8e2c56252aa9527bd9a82bdd147fdc46cf5deb9c.
Change-Id: If58cedcee75dd0eda8571e90d63e080a4709d773
Nicolas Geoffray [Thu, 14 Jul 2016 08:02:29 +0000 (08:02 +0000)]
Merge \"Fix a bug in ClassTableGet code generation for IMTs.\"
am:
09d77fac67
Change-Id: I2b756a64600300f000e304990ba0f7e9c8dbea0b
Nicolas Geoffray [Thu, 14 Jul 2016 07:56:16 +0000 (07:56 +0000)]
Merge "Fix a bug in ClassTableGet code generation for IMTs."
Andreas Gampe [Thu, 13 Aug 2015 23:44:54 +0000 (16:44 -0700)]
ART: Add FdFile constructors
Make Open protected, and expose constructors instead. Add a move
constructor and move assignment operator.
Add OS functions that return the FdFile non-pointer version.
Add tests.
Bug:
21192156
Test: m test-art-host
Test: m test-art-target (shamu)
Change-Id: I83e390edde7cd37c900e9d5c3e4d21da22981b3f
Mathieu Chartier [Wed, 13 Jul 2016 21:38:47 +0000 (21:38 +0000)]
Merge \"Dump more dex file data in oatdump\"
am:
d2c44723e6
Change-Id: Ife43250c61de0d71a0122b85869e40b8141a4ebe
Treehugger Robot [Wed, 13 Jul 2016 21:35:59 +0000 (21:35 +0000)]
Merge "Dump more dex file data in oatdump"
Mathieu Chartier [Tue, 21 Jun 2016 22:14:20 +0000 (15:14 -0700)]
Dump more dex file data in oatdump
Dump some statistics for each dex file along side with strings loaded
from code and dex code bytes.
Sample output:
Cumulative dex file data
Num string ids: 202809
Num method ids: 320464
Num field ids: 162822
Num type ids: 68151
Num class defs: 48061
Unique strings loaded from dex code: 51049
Total strings loaded from dex code: 106651
Number of unique dex code items: 247929
Total number of dex code bytes:
11090574
Added content testing to oat dump test. No significant slowdown.
TEST: test-art-host
Bug:
29462018
Change-Id: I60effd3087d8c427eda4ee26431d5d77165b3939
Matthew Gharrity [Wed, 13 Jul 2016 18:09:11 +0000 (18:09 +0000)]
Merge \"Improve search for available spill slots in RA\"
am:
633c22de95
Change-Id: I10995d473788006890fa0346ffde795e5152d0a9
Treehugger Robot [Wed, 13 Jul 2016 18:07:04 +0000 (18:07 +0000)]
Merge "Improve search for available spill slots in RA"
Aart Bik [Wed, 13 Jul 2016 18:05:31 +0000 (18:05 +0000)]
Merge \"Refactored a few dexdump alloc/free into unique_ptr\"
am:
bcdc888a39
Change-Id: Ic18afd294dca850e2fadf338141edc888828d8bd
Treehugger Robot [Wed, 13 Jul 2016 17:55:52 +0000 (17:55 +0000)]
Merge "Refactored a few dexdump alloc/free into unique_ptr"
Mark Mendell [Wed, 13 Jul 2016 16:55:39 +0000 (16:55 +0000)]
Merge \"X86: Use memory to do array range checks\"
am:
a708355691
Change-Id: I51fc867a67ab05db1f1c93175518f35fc18d9f78
Vladimir Marko [Wed, 13 Jul 2016 16:37:34 +0000 (16:37 +0000)]
Merge "X86: Use memory to do array range checks"
Richard Uhler [Wed, 13 Jul 2016 15:52:30 +0000 (15:52 +0000)]
Merge changes I91249ba8,Ic93812d9
am:
c8cbda6596
Change-Id: Id1f8627e00b38987647525539973b0f51802f549
Treehugger Robot [Wed, 13 Jul 2016 15:42:18 +0000 (15:42 +0000)]
Merge changes I91249ba8,Ic93812d9
* changes:
Use "" to indicate the oat filename could not be computed.
Compute and cache oat file status in OatFileAssistant.
Nicolas Geoffray [Wed, 13 Jul 2016 13:13:48 +0000 (14:13 +0100)]
Fix a bug in ClassTableGet code generation for IMTs.
Introduced by:
https://android-review.googlesource.com/#/c/244980/
test:566-polymorphic-inling for fixing x86 crash. Also
fixes a performance regression.
bug:
29188168
Change-Id: Id90cb819c88e7ba3db1cb3c50c517a112ab7d784
Mark Mendell [Tue, 12 Jul 2016 15:13:15 +0000 (11:13 -0400)]
X86: Use memory to do array range checks
Currently, an HBoundsCheck is fed by an HArrayLength, causing a load of
the array length, followed by a register compare.
Avoid the load when we can by comparing directly with the array length
in memory. Implement this by marking the HArrayLength as 'emitted at
use site', and then generating the code in the HBoundsCheck.
Only do this replacement when we are the only user of the ArrayLength
and it isn't visible to the environment.
Handle the special case where the array is 'null' and where an implicit
null check can't be eliminated.
This code moves the load of the length to the slow code for the failed
check, which is what we want.
Test: 609-checker-x86-bounds-check
Change-Id: I9cdb183301e048234bb0ffeda940eedcf4a655bd
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
Roland Levillain [Wed, 13 Jul 2016 10:54:35 +0000 (11:54 +0100)]
Introduce more compact ReadBarrierMark slow-paths.
Replace entry point ReadBarrierMark with 32
ReadBarrierMarkRegX entry points, using register
number X as input and output (instead of the standard
runtime calling convention) to save two moves in Baker's
read barrier mark slow-path code.
Test: ART host and target (ARM, ARM64) tests.
Bug:
29506760
Bug:
12687968
Change-Id: I73cfb82831cf040b8b018e984163c865cc44ed87
Nicolas Geoffray [Wed, 13 Jul 2016 09:26:42 +0000 (09:26 +0000)]
Merge \"Blacklist flaky test.\"
am:
1fd3473032
Change-Id: I8d8d1e356b23e034ab9d531f69a35fcf5a2e7562
Nicolas Geoffray [Wed, 13 Jul 2016 09:19:45 +0000 (09:19 +0000)]
Merge "Blacklist flaky test."
Nicolas Geoffray [Wed, 13 Jul 2016 09:18:48 +0000 (10:18 +0100)]
Blacklist flaky test.
bug:
30107038
Change-Id: Id976c6c7d764a44c1b30155714fb64b4441cdac2
Dmitriy Filchenko [Wed, 13 Jul 2016 00:51:36 +0000 (00:51 +0000)]
Merge \"Update the get_process_name call.\"
am:
e8508094c3
Change-Id: I6a85cf5d753ad13604d81b42eac882fdb8403fb2
Treehugger Robot [Wed, 13 Jul 2016 00:35:48 +0000 (00:35 +0000)]
Merge "Update the get_process_name call."
Aart Bik [Tue, 12 Jul 2016 22:53:13 +0000 (15:53 -0700)]
Refactored a few dexdump alloc/free into unique_ptr
Rationale: easier to read
Test: dexdump's output is well-tested
Change-Id: Ib5b36dce68d442e555599f9427bd9bfa7c6f3831
Richard Uhler [Tue, 12 Jul 2016 18:46:40 +0000 (18:46 +0000)]
Merge changes Iafd12677,I40595d15
am:
0599c5976a
Change-Id: I71f0f22446cf13cbc87ebd5b97021b9df13c8c26
Treehugger Robot [Tue, 12 Jul 2016 18:32:29 +0000 (18:32 +0000)]
Merge changes Iafd12677,I40595d15
* changes:
profile_changed should not effect GetBestOatFile.
Make OpenImageSpace static and ArtFileName internal.
Matthew Gharrity [Mon, 11 Jul 2016 21:45:01 +0000 (14:45 -0700)]
Improve search for available spill slots in RA
Previously we always searched for two adjacent spill slots, even if
we only needed one. This small change fixes that.
Test: m test-art-host
Change-Id: I021d355e6602ffee687c8537a959232b1504dcf1
Vladimir Marko [Tue, 12 Jul 2016 15:08:00 +0000 (15:08 +0000)]
Merge \"ARM64: Shorter fast-path for read barrier field load.\"
am:
058d934b42
Change-Id: I0ce4ad02d01bc9153b48182e6f0d69daa49700e4
Vladimir Marko [Tue, 12 Jul 2016 15:02:31 +0000 (15:02 +0000)]
Merge "ARM64: Shorter fast-path for read barrier field load."
Maxim Kazantsev [Tue, 12 Jul 2016 14:21:49 +0000 (14:21 +0000)]
Merge \"Two more patterns for instruction simplifier\"
am:
2f378bf675
Change-Id: I873154d01ab74a6c5ca26477c3fc5cfb2887dee7
Vladimir Marko [Tue, 12 Jul 2016 14:14:26 +0000 (14:14 +0000)]
Merge "Two more patterns for instruction simplifier"
Vladimir Marko [Mon, 11 Jul 2016 18:30:56 +0000 (19:30 +0100)]
ARM64: Shorter fast-path for read barrier field load.
Reduces the aosp_flounder-userdebug 64-bit boot.oat by
~4.2MiB, i.e. ~3.5%, in the ART_USE_READ_BARRIER=true
configuration.
Test: Tested with ART_USE_READ_BARRIER=true on Nexus 9.
Bug:
29966877
Bug:
12687968
Change-Id: Ic9853ec82747a1702e4091fcf9cbf06674fcd5f6
Vladimir Marko [Tue, 12 Jul 2016 12:08:38 +0000 (12:08 +0000)]
Merge \"ARM: Shorter fast-path for read barrier field load.\"
am:
5f4f6cfe46
Change-Id: Icbd1c40caa1e0e95a5690958cc68088b4779894c
Vladimir Marko [Tue, 12 Jul 2016 12:03:02 +0000 (12:03 +0000)]
Merge "ARM: Shorter fast-path for read barrier field load."
Maxim Kazantsev [Tue, 12 Jul 2016 09:55:33 +0000 (15:55 +0600)]
Two more patterns for instruction simplifier
This patch allows the instruction simplifier to cover
two more cases:
x = a + b and x = a - b
y = x - b y = x + b
In both cases y can be replaced with a, if the types
of arguments are integral.
Change-Id: I4735737f471e31057f1df76ddace5d4d1c79cde6
Test: New tests in 458-checker-instruction-simplification.
Signed-off-by: Max Kazantsev <maxim.kazantsev@intel.com>
Serban Constantinescu [Tue, 12 Jul 2016 11:12:27 +0000 (11:12 +0000)]
Merge \"Rename kCall to kCallOnMainOnly\"
am:
d8f5f56f2d
Change-Id: Ie5595fd206aaedf81fe60b757e8cb11f5e82cc6e
Roland Levillain [Tue, 12 Jul 2016 11:07:50 +0000 (11:07 +0000)]
Merge "Rename kCall to kCallOnMainOnly"
Vladimir Marko [Mon, 11 Jul 2016 14:52:00 +0000 (15:52 +0100)]
ARM: Shorter fast-path for read barrier field load.
Reduces the aosp_hammerhead-userdebug boot.oat by 2.2MiB,
i.e. ~2.2%, in the ART_USE_READ_BARRIER=true configuration.
Test: Tested with ART_USE_READ_BARRIER=true on Nexus 5.
Bug:
29966877
Bug:
12687968
Change-Id: I4454150003e12a1aa7f0cf451627dc1ee9a495ae
Dmitriy Filchenko [Tue, 12 Jul 2016 00:41:28 +0000 (17:41 -0700)]
Update the get_process_name call.
BUG:
29824203
Test: test-art-host
Change-Id: Iba75b48b836b6ec249e6c77b9895ab3575f1027b
Oleksiy Vyalov [Mon, 11 Jul 2016 22:43:30 +0000 (22:43 +0000)]
Merge \"Call prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY) if app is debuggable.\"
am:
6caea66f9d
Change-Id: I61e0b39b0ad61086c555f089eb09f30fd16ecafa
Oleksiy Vyalov [Mon, 11 Jul 2016 22:38:45 +0000 (22:38 +0000)]
Merge "Call prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY) if app is debuggable."
Oleksiy Vyalov [Tue, 21 Jun 2016 23:21:37 +0000 (16:21 -0700)]
Call prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY) if app is debuggable.
Enabled Yama security may prevent non-privileged debugger from
attaching to the app. However, if app is marked is debuggable
then it should acceptable to allow debugger with arbitrary pid
to connect the app.
Bug:
29549463
Change-Id: I50c79dbca272dc473e489cc61471628e2fdc4a03
(cherry picked from commit
e21145f6625a7faa939c1ca17fb95285aa245c16)
Aart Bik [Mon, 11 Jul 2016 19:53:43 +0000 (19:53 +0000)]
Merge \"Fix clang static analyzer on potential memory leaks.\"
am:
f79c0e6f74
Change-Id: Iaa9dd0266305d860437774505226d3ee5f1793d0
Aart Bik [Mon, 11 Jul 2016 19:33:07 +0000 (19:33 +0000)]
Merge "Fix clang static analyzer on potential memory leaks."
Aart Bik [Sat, 9 Jul 2016 01:32:45 +0000 (18:32 -0700)]
Fix clang static analyzer on potential memory leaks.
Rationale:
First was not really a leak, but the combination of stack/heap
allocated data structures with a single re-allocation was a bit
complex for static analysis. Second was a true leak.
BUG=
30040701
Change-Id: I10c2095f3061bd2ad49f24f7c25fcd7ca0f95111
Serban Constantinescu [Thu, 7 Jul 2016 17:03:19 +0000 (18:03 +0100)]
Rename kCall to kCallOnMainOnly
This patch renames kCall to kCallOnMainOnly in preparation for
the next patch in this series which will be adding kCallOnMainAndSlowPath.
Note: With this patch there will be places where we use kCallOnMainOnly
even though we call on the slow path too. The next patch in this series
will fix that.
Test: ART host tests.
Change-Id: Iabfdb0901990d163be5d780f3bdd2fab6fa17b32
Roland Levillain [Mon, 11 Jul 2016 09:32:41 +0000 (09:32 +0000)]
Merge \"Have LOCAL_ASFLAGS honor debug/non-debug configuration.\"
am:
dedde3f10d
Change-Id: I1f100a448444db257f422558fa7150340303fbdc