OSDN Git Service

android-x86/art.git
8 years agoAdd sanity checking to declaring class visiting
Mathieu Chartier [Tue, 22 Mar 2016 03:53:33 +0000 (03:53 +0000)]
Add sanity checking to declaring class visiting
am: b33b1dc

* commit 'b33b1dc78d178060ff0f4327d448fd3a89df51de':
  Add sanity checking to declaring class visiting

8 years agoMerge "Add sanity checking to declaring class visiting"
Mathieu Chartier [Tue, 22 Mar 2016 03:17:16 +0000 (03:17 +0000)]
Merge "Add sanity checking to declaring class visiting"
am: 1a9018b

* commit '1a9018ba74841ac507b96f0e0dd6b86b22778ca6':
  Add sanity checking to declaring class visiting

8 years agoMerge "Add sanity checking to declaring class visiting"
Mathieu Chartier [Tue, 22 Mar 2016 03:08:50 +0000 (03:08 +0000)]
Merge "Add sanity checking to declaring class visiting"

8 years agoAdd sanity checking to declaring class visiting
Mathieu Chartier [Mon, 21 Mar 2016 21:05:56 +0000 (14:05 -0700)]
Add sanity checking to declaring class visiting

When we have an unmarked declaring class in the image, it will
SIGSEGV due to the bitmap being read-only. Print some useful
info to try and debug this.

This probably hurts performance a bit, TODO disable when the bug is
fixed.

Bug: 27493510

(cherry picked from commit b33b1dc78d178060ff0f4327d448fd3a89df51de)

Change-Id: I0c25afd5a6101a71fa1494e12dc019ba64bf43be

8 years agoAdd sanity checking to declaring class visiting
Mathieu Chartier [Mon, 21 Mar 2016 21:05:56 +0000 (14:05 -0700)]
Add sanity checking to declaring class visiting

When we have an unmarked declaring class in the image, it will
SIGSEGV due to the bitmap being read-only. Print some useful
info to try and debug this.

This probably hurts performance a bit, TODO disable when the bug is
fixed.

Bug: 27493510

Change-Id: Ida0c09cb8e41c1c2ff5cd9d07cbf0d34d6802511

8 years agoMerge "Generalize induction and range analysis across type conversions."
Aart Bik [Mon, 21 Mar 2016 23:00:52 +0000 (23:00 +0000)]
Merge "Generalize induction and range analysis across type conversions."
am: 9060376

* commit '9060376f38cb03353c82ddf15844156414249b19':
  Generalize induction and range analysis across type conversions.

8 years agoMerge "Generalize induction and range analysis across type conversions."
Aart Bik [Mon, 21 Mar 2016 22:52:06 +0000 (22:52 +0000)]
Merge "Generalize induction and range analysis across type conversions."

8 years agoDisable LZ4HC compressed images
Mathieu Chartier [Mon, 21 Mar 2016 20:10:10 +0000 (20:10 +0000)]
Disable LZ4HC compressed images
am: 086e279

* commit '086e279ff9c739da617c9fb50fababf74ed52890':
  Disable LZ4HC compressed images

8 years agoGeneralize induction and range analysis across type conversions.
Aart Bik [Wed, 16 Mar 2016 17:49:38 +0000 (10:49 -0700)]
Generalize induction and range analysis across type conversions.

Rationale:
This changelist implements allowing narrowing conversions within
inductions and loop control. More induction and loops recognized,
more bounds eliminated. We all win. The basic idea is pretty simple
(record type with detected induction) but one has to get all the
details right, as illustrated by the many new unit tests.

BUG=27151098

Change-Id: I254020bfa5fa623799b31bbbb5ccc97d4d5a0100

8 years agoMerge "Move process state into runtime"
Mathieu Chartier [Mon, 21 Mar 2016 19:52:35 +0000 (19:52 +0000)]
Merge "Move process state into runtime"
am: 6a32929

* commit '6a329292736c3dd74e9c8cb319c2a233d07fe524':
  Move process state into runtime

8 years agoMerge "Disable LZ4HC compressed images"
Mathieu Chartier [Mon, 21 Mar 2016 19:47:35 +0000 (19:47 +0000)]
Merge "Disable LZ4HC compressed images"
am: 4485c69

* commit '4485c6964ad414d5c6d0535622cfad1c0a6b640f':
  Disable LZ4HC compressed images

8 years agoMerge "Move process state into runtime"
Mathieu Chartier [Mon, 21 Mar 2016 19:45:04 +0000 (19:45 +0000)]
Merge "Move process state into runtime"

8 years agoDisable LZ4HC compressed images
Mathieu Chartier [Fri, 18 Mar 2016 02:19:15 +0000 (19:19 -0700)]
Disable LZ4HC compressed images

Seem to get randomly compressed incorrectly on volantis. Added
verifiation in the image writer.

Using LZ4HC now silently uses LZ4. This is still safe since both use
the same decompression code.

Bug: 27560444

(cherry picked from commit 9894fc8079a5c6eb72e04099bdbd3239b75cf491)

Change-Id: Ic0d78f419884d7ef2e29948835c942fbb68e66da

8 years agoMerge "Disable LZ4HC compressed images"
Mathieu Chartier [Mon, 21 Mar 2016 19:37:48 +0000 (19:37 +0000)]
Merge "Disable LZ4HC compressed images"

8 years agoMove process state into runtime
Mathieu Chartier [Mon, 21 Mar 2016 18:47:03 +0000 (18:47 +0000)]
Move process state into runtime
am: f8484c8

* commit 'f8484c8b55f4b423048f94dfabbe44110a039a9b':
  Move process state into runtime

8 years agoMove process state into runtime
Mathieu Chartier [Sat, 19 Mar 2016 01:45:41 +0000 (18:45 -0700)]
Move process state into runtime

Clean up.

Bug: 27420435

(cherry picked from commit f8484c8b55f4b423048f94dfabbe44110a039a9b)

Change-Id: Ia20781ee36e6a31c88ca41d3866b26813cff434d

8 years agoMove process state into runtime
Mathieu Chartier [Sat, 19 Mar 2016 01:45:41 +0000 (18:45 -0700)]
Move process state into runtime

Clean up.

Bug: 27420435

Change-Id: I8fff84ed1b29a12310094b10fb6382268e69d54b

8 years agoDisable LZ4HC compressed images
Mathieu Chartier [Fri, 18 Mar 2016 02:19:15 +0000 (19:19 -0700)]
Disable LZ4HC compressed images

Seem to get randomly compressed incorrectly on volantis. Added
verifiation in the image writer.

Using LZ4HC now silently uses LZ4. This is still safe since both use
the same decompression code.

Bug: 27560444

Change-Id: I652eee7498dc84994993be3a5b0447ec5b246304

8 years agoMerge "Optimizing: Fix register allocator validation memory usage."
Vladimir Marko [Mon, 21 Mar 2016 17:46:17 +0000 (17:46 +0000)]
Merge "Optimizing: Fix register allocator validation memory usage."
am: 162629e

* commit '162629ee8ac0fee2df0c0cdec27dff34bc6f0062':
  Optimizing: Fix register allocator validation memory usage.

8 years agoMerge "Optimizing: Fix register allocator validation memory usage."
Vladimir Marko [Mon, 21 Mar 2016 17:36:44 +0000 (17:36 +0000)]
Merge "Optimizing: Fix register allocator validation memory usage."

8 years agoMerge "Fix a CC 145-alloc-tracking-stress deadlock."
Hiroshi Yamauchi [Mon, 21 Mar 2016 17:22:20 +0000 (17:22 +0000)]
Merge "Fix a CC 145-alloc-tracking-stress deadlock."
am: 3890e85

* commit '3890e85aaab150bc0a5e116be762c786c882e1ec':
  Fix a CC 145-alloc-tracking-stress deadlock.

8 years agoMerge "Fix a CC 145-alloc-tracking-stress deadlock."
Hiroshi Yamauchi [Mon, 21 Mar 2016 17:12:28 +0000 (17:12 +0000)]
Merge "Fix a CC 145-alloc-tracking-stress deadlock."

8 years agoOptimizing: Fix register allocator validation memory usage.
Vladimir Marko [Mon, 21 Mar 2016 12:01:50 +0000 (12:01 +0000)]
Optimizing: Fix register allocator validation memory usage.

Also attribute ArenaBitVector allocations to appropriate
passes. This was used to track down the source of the
excessive memory alloactions.

Bug: 27690481

Change-Id: Ib895984cb7c04e24cbc7abbd8322079bab8ab100

8 years agoMerge "Let tests informa Jack of the min api version"
Yohann Roussel [Mon, 21 Mar 2016 16:47:58 +0000 (16:47 +0000)]
Merge "Let tests informa Jack of the min api version"
am: 985125b

* commit '985125b33f27220608cbdb87d87bc24e36325156':
  Let tests informa Jack of the min api version

8 years agoMerge "Let tests informa Jack of the min api version"
Yohann Roussel [Mon, 21 Mar 2016 16:39:59 +0000 (16:39 +0000)]
Merge "Let tests informa Jack of the min api version"

8 years agoLet tests informa Jack of the min api version
Yohann Roussel [Mon, 21 Mar 2016 15:26:02 +0000 (16:26 +0100)]
Let tests informa Jack of the min api version

This is necessarry for compiling source code with default method.

Bug: 27371864

Change-Id: I8c9d3690e403729facd2e868cbda761b3488b2f6

8 years agoMerge "MIPS32: sun.misc.Unsafe get/put intrinsics."
Chris Larsen [Mon, 21 Mar 2016 15:25:37 +0000 (15:25 +0000)]
Merge "MIPS32: sun.misc.Unsafe get/put intrinsics."
am: ae207db

* commit 'ae207dbf2cb73ef3cfff6dd5c502920dee4d4366':
  MIPS32: sun.misc.Unsafe get/put intrinsics.

8 years agoMerge "Pacify g++ about a set-but-unused variable."
Roland Levillain [Mon, 21 Mar 2016 15:20:52 +0000 (15:20 +0000)]
Merge "Pacify g++ about a set-but-unused variable."
am: 73139dd

* commit '73139dd7c12906975e835ae6e6707266626fed2a':
  Pacify g++ about a set-but-unused variable.

8 years agoMerge "MIPS32: sun.misc.Unsafe get/put intrinsics."
Roland Levillain [Mon, 21 Mar 2016 15:18:43 +0000 (15:18 +0000)]
Merge "MIPS32: sun.misc.Unsafe get/put intrinsics."

8 years agoMerge "Pacify g++ about a set-but-unused variable."
Roland Levillain [Mon, 21 Mar 2016 15:13:15 +0000 (15:13 +0000)]
Merge "Pacify g++ about a set-but-unused variable."

8 years agoMerge "Code cleanup between debugger and jit."
Nicolas Geoffray [Mon, 21 Mar 2016 14:59:22 +0000 (14:59 +0000)]
Merge "Code cleanup between debugger and jit."
am: 1153282

* commit '1153282aa91292b740289ab7612a481e5c6bc167':
  Code cleanup between debugger and jit.

8 years agoMerge "Code cleanup between debugger and jit."
Nicolas Geoffray [Mon, 21 Mar 2016 14:53:09 +0000 (14:53 +0000)]
Merge "Code cleanup between debugger and jit."

8 years agoCode cleanup between debugger and jit.
Nicolas Geoffray [Fri, 18 Mar 2016 09:40:17 +0000 (09:40 +0000)]
Code cleanup between debugger and jit.

This is to allow secondary dex files to be fully compiled.

- No need to do full deopt anymore for breakpoints: code in boot.oat
  is deoptimized as soon as the debugger attaches (and we decided that
  existing frames could not be debugged), and application being
  debugged is compiled debuggable.

- jit should only call UpdateMethodsCode if exit stubs are not
  installed due to lock violation otherwise (the lock level of the
  jit code cache is lower than the deoptimization lock).
  This part needs an overall cleanup beyond the scope of this change.

Change-Id: I38d85dcb270db746c1d6b0ceb7893a1aad8c9655

8 years agoPacify g++ about a set-but-unused variable.
Roland Levillain [Mon, 21 Mar 2016 14:09:54 +0000 (14:09 +0000)]
Pacify g++ about a set-but-unused variable.

This fixes the MIPS32 build.

Change-Id: Ic1e6d4627d69a3701c2f3e8fdd784d97a4e41ba5

8 years agoMerge "Check if the type of an instruction is erroneous before inlining."
Nicolas Geoffray [Mon, 21 Mar 2016 11:43:48 +0000 (11:43 +0000)]
Merge "Check if the type of an instruction is erroneous before inlining."
am: 459898d

* commit '459898dc4470559ba1e1d578bc52a914d1f573f5':
  Check if the type of an instruction is erroneous before inlining.

8 years agoMerge "Check if the type of an instruction is erroneous before inlining."
Nicolas Geoffray [Mon, 21 Mar 2016 11:38:27 +0000 (11:38 +0000)]
Merge "Check if the type of an instruction is erroneous before inlining."

8 years agoMerge "Call HuntForOriginalReference to get to the null."
Nicolas Geoffray [Mon, 21 Mar 2016 11:34:33 +0000 (11:34 +0000)]
Merge "Call HuntForOriginalReference to get to the null."
am: 3cf5f5c

* commit '3cf5f5ccdb32d035f021dcef11222092b8d20b0b':
  Call HuntForOriginalReference to get to the null.

8 years agoMerge "Call HuntForOriginalReference to get to the null."
Nicolas Geoffray [Mon, 21 Mar 2016 11:27:10 +0000 (11:27 +0000)]
Merge "Call HuntForOriginalReference to get to the null."

8 years agoCheck if the type of an instruction is erroneous before inlining.
Nicolas Geoffray [Fri, 18 Mar 2016 11:36:20 +0000 (11:36 +0000)]
Check if the type of an instruction is erroneous before inlining.

We can get HInstructions typed with a class that is in an error state.
For such classes, we cannot look at the vtable or imt table as they
are not cleanly populated.

bug:27683927

Change-Id: I0d64ca470e1cb6cf9b40e9f02bb9b0bb12c2bac1

8 years agoMerge remote-tracking branch 'goog/master' into nyc-dev
Nicolas Geoffray [Mon, 21 Mar 2016 09:07:48 +0000 (09:07 +0000)]
Merge remote-tracking branch 'goog/master' into nyc-dev

bug:25492619
bug:27520994
bug:27624718

Change-Id: I8dd1e90724f7b9694a1d493ce61f669123dd3ac4

8 years agoCall HuntForOriginalReference to get to the null.
Nicolas Geoffray [Fri, 18 Mar 2016 16:25:38 +0000 (16:25 +0000)]
Call HuntForOriginalReference to get to the null.

The null constant might be hiding under a HBoundType
(which we could clean up in instruction simplifier, but
that is orthogonal).

bug:27683874
Change-Id: Ide8ec5bcd439ec0fca5e54175ebeedc5a9f679a3

8 years agoMerge "Fix mising "." am: 0d0796e
Nicolas Geoffray [Sat, 19 Mar 2016 11:47:02 +0000 (11:47 +0000)]
Merge "Fix mising "." am: 0d0796e
am: b7788e2

* commit 'b7788e23737e221799770b8ea2887b3134fe6223':
  Fix mising ".

8 years agoMerge "Fix mising "."
Nicolas Geoffray [Sat, 19 Mar 2016 11:44:41 +0000 (11:44 +0000)]
Merge "Fix mising "."
am: 0d0796e

* commit '0d0796eb5db4cbc51fd826b370595ba6871264a1':
  Fix mising ".

8 years agoMerge "Fix mising "."
Nicolas Geoffray [Sat, 19 Mar 2016 11:37:04 +0000 (11:37 +0000)]
Merge "Fix mising "."

8 years agoFix mising ".
Nicolas Geoffray [Sat, 19 Mar 2016 10:25:41 +0000 (10:25 +0000)]
Fix mising ".

Change-Id: I2116d97162b8ab6d01fa633650532e190959cad4

8 years agoFix a CC 145-alloc-tracking-stress deadlock.
Hiroshi Yamauchi [Sat, 19 Mar 2016 00:17:52 +0000 (17:17 -0700)]
Fix a CC 145-alloc-tracking-stress deadlock.

When the allocation tracking gets disabled, there may be threads
blocking on the system weak access for recording allocations, but when
GC reenables the system weak access, it fails to wake up those blocked
threads (which causes a deadlock) because the broadcast call is guarded
by Heap::IsAllocTrackingEnabled(), which is false at this point.

Broadcast in Heap::BroadcastForNewAllocationRecords() regardless of
Heap::IsAllocTrackingEnabled(), which is safe.

Also apply a similar fix for the non-CC case.

Bug: 27467554
Change-Id: I74cf88bceb306589ce11a19a688be223e099e88a

8 years agoMerge "Add patchoat check that input oat file has patch section." am: 443e7ee
Jeff Hao [Fri, 18 Mar 2016 23:37:45 +0000 (23:37 +0000)]
Merge "Add patchoat check that input oat file has patch section." am: 443e7ee
am: fd2cd8e

* commit 'fd2cd8e49d6d6dab12d526a7485ea152aa744552':
  Add patchoat check that input oat file has patch section.

8 years agoMerge "Add patchoat check that input oat file has patch section." into nyc-dev am...
Jeff Hao [Fri, 18 Mar 2016 23:33:22 +0000 (23:33 +0000)]
Merge "Add patchoat check that input oat file has patch section." into nyc-dev am: 99d0151
am: 61464e2

* commit '61464e2bc934739a19df8a87527d1d7ed36c7f66':
  Add patchoat check that input oat file has patch section.

8 years agoMerge "Add patchoat check that input oat file has patch section."
Jeff Hao [Fri, 18 Mar 2016 23:33:21 +0000 (23:33 +0000)]
Merge "Add patchoat check that input oat file has patch section."
am: 443e7ee

* commit '443e7eeaf6783325dde27b6b20b57ea344cd6a36':
  Add patchoat check that input oat file has patch section.

8 years agoMerge "Add patchoat check that input oat file has patch section." into nyc-dev
Jeff Hao [Fri, 18 Mar 2016 23:31:04 +0000 (23:31 +0000)]
Merge "Add patchoat check that input oat file has patch section." into nyc-dev
am: 99d0151

* commit '99d0151eff70325a7615e860d2483ac7856ee75c':
  Add patchoat check that input oat file has patch section.

8 years agoMerge "Add patchoat check that input oat file has patch section." into nyc-dev
Jeff Hao [Fri, 18 Mar 2016 23:26:51 +0000 (23:26 +0000)]
Merge "Add patchoat check that input oat file has patch section." into nyc-dev

8 years agoMerge "Add patchoat check that input oat file has patch section."
Jeff Hao [Fri, 18 Mar 2016 23:23:40 +0000 (23:23 +0000)]
Merge "Add patchoat check that input oat file has patch section."

8 years agoMerge changes from topic \'verify-profile\' am: 4892106
Mathieu Chartier [Fri, 18 Mar 2016 23:02:43 +0000 (23:02 +0000)]
Merge changes from topic \'verify-profile\' am: 4892106
am: 6991d13

* commit '6991d136b66d79d15ecf90efcda42bcb25a96671':
  Fix incorrect dex2oat check
  Add verify-profile compiler filter

8 years agoMerge changes from topic \'verify-profile\'
Mathieu Chartier [Fri, 18 Mar 2016 23:00:33 +0000 (23:00 +0000)]
Merge changes from topic \'verify-profile\'
am: 4892106

* commit '48921060720e3ff7596e397d09af221fb057eeff':
  Fix incorrect dex2oat check
  Add verify-profile compiler filter

8 years agoMerge changes from topic 'verify-profile'
Mathieu Chartier [Fri, 18 Mar 2016 22:54:42 +0000 (22:54 +0000)]
Merge changes from topic 'verify-profile'

* changes:
  Fix incorrect dex2oat check
  Add verify-profile compiler filter

8 years agoFix incorrect dex2oat check
Mathieu Chartier [Fri, 18 Mar 2016 22:29:16 +0000 (15:29 -0700)]
Fix incorrect dex2oat check

Should have been VerifyOnlyProfile.

Bug: 27688727

(cherry picked from commit 821dad8f384f8c520f062a317b3b66c78aa12b47)

Change-Id: I451ce8264115283132bc9e34708331a5c62817bf

8 years agoFix incorrect dex2oat check am: 821dad8
Mathieu Chartier [Fri, 18 Mar 2016 22:40:42 +0000 (22:40 +0000)]
Fix incorrect dex2oat check am: 821dad8
am: 88eb928

* commit '88eb92803582415517409018bb8d88ba7b382b6a':
  Fix incorrect dex2oat check

8 years agoFix incorrect dex2oat check
Mathieu Chartier [Fri, 18 Mar 2016 22:36:32 +0000 (22:36 +0000)]
Fix incorrect dex2oat check
am: 821dad8

* commit '821dad8f384f8c520f062a317b3b66c78aa12b47':
  Fix incorrect dex2oat check

8 years agoFix incorrect dex2oat check
Mathieu Chartier [Fri, 18 Mar 2016 22:29:16 +0000 (15:29 -0700)]
Fix incorrect dex2oat check

Should have been VerifyOnlyProfile.

Bug: 27688727
Change-Id: Ieec38904196ce756c2b1d8057dbf6d1e8a58c81d

8 years agoAdd patchoat check that input oat file has patch section.
Jeff Hao [Fri, 18 Mar 2016 04:32:45 +0000 (21:32 -0700)]
Add patchoat check that input oat file has patch section.

Do this check before opening the output file in case this could be
causing the file to become truncated.

Bug: 27723864

(cherry-picked from commit 99503b9805def2ed7d4fe4bf285c6fdd8ddce6ed)

Change-Id: Icf71016adae5404e4f8588f2f5e23da6405ef2e7

8 years agoAdd patchoat check that input oat file has patch section.
Jeff Hao [Fri, 18 Mar 2016 04:32:45 +0000 (21:32 -0700)]
Add patchoat check that input oat file has patch section.

Do this check before opening the output file in case this could be
causing the file to become truncated.

Bug: 27723864

(cherry-picked from commit 99503b9805def2ed7d4fe4bf285c6fdd8ddce6ed)

Change-Id: I2134ec65fb6d9582f4eb4c2619a5ffb7b987eaa6

8 years agoMerge "Add patchoat check that input oat file has patch section."
Jeff Hao [Fri, 18 Mar 2016 22:22:46 +0000 (22:22 +0000)]
Merge "Add patchoat check that input oat file has patch section."

8 years agoAdd verify-profile compiler filter
Mathieu Chartier [Thu, 17 Mar 2016 02:08:31 +0000 (19:08 -0700)]
Add verify-profile compiler filter

Only verifies and dex2dex compiles classes in the profile. Goal
is to reduce application launch time.

~2x faster than interpret-only for Facebook.

Bug: 27688727

(cherry picked from commit a079e3aa62cceb76c1c1811e6e09bcaf75e20289)

Change-Id: Iad5aa1adee3aa6c2408820e8cbbab2d4412021b8

8 years agoMerge "Add verify-profile compiler filter" into nyc-dev am: cc4c168
Mathieu Chartier [Fri, 18 Mar 2016 22:19:06 +0000 (22:19 +0000)]
Merge "Add verify-profile compiler filter" into nyc-dev am: cc4c168
am: a885de7

* commit 'a885de7008472fe6fcdbcd35531b09099937ed5c':
  Add verify-profile compiler filter

8 years agoMerge "Add verify-profile compiler filter" into nyc-dev
Mathieu Chartier [Fri, 18 Mar 2016 22:16:18 +0000 (22:16 +0000)]
Merge "Add verify-profile compiler filter" into nyc-dev
am: cc4c168

* commit 'cc4c1686a1e7125ec8b64341e573cc0959936dd3':
  Add verify-profile compiler filter

8 years agoMerge "Add verify-profile compiler filter" into nyc-dev
Mathieu Chartier [Fri, 18 Mar 2016 22:07:10 +0000 (22:07 +0000)]
Merge "Add verify-profile compiler filter" into nyc-dev

8 years agoMerge "ART: Speed up stack guard page install" am: 895375b
Andreas Gampe [Fri, 18 Mar 2016 20:13:47 +0000 (20:13 +0000)]
Merge "ART: Speed up stack guard page install" am: 895375b
am: 1d1e89c

* commit '1d1e89c5ab3aa6c938df285f6e85545baab1042d':
  ART: Speed up stack guard page install

8 years agoMerge "ART: Speed up stack guard page install" into nyc-dev am: 6716fc2
Andreas Gampe [Fri, 18 Mar 2016 20:13:46 +0000 (20:13 +0000)]
Merge "ART: Speed up stack guard page install" into nyc-dev am: 6716fc2
am: c5319f4

* commit 'c5319f48c5fe464b2a81393bc35beabdd1cb3725':
  ART: Speed up stack guard page install

8 years agoMerge "ART: Speed up stack guard page install"
Andreas Gampe [Fri, 18 Mar 2016 20:11:29 +0000 (20:11 +0000)]
Merge "ART: Speed up stack guard page install"
am: 895375b

* commit '895375bb30716a488bf7b8234e900d1e15de1d21':
  ART: Speed up stack guard page install

8 years agoMerge "ART: Speed up stack guard page install" into nyc-dev
Andreas Gampe [Fri, 18 Mar 2016 20:09:10 +0000 (20:09 +0000)]
Merge "ART: Speed up stack guard page install" into nyc-dev
am: 6716fc2

* commit '6716fc2c4d68647f7840511d24ed94a95976c43c':
  ART: Speed up stack guard page install

8 years agoMerge "ART: Speed up stack guard page install" into nyc-dev
Andreas Gampe [Fri, 18 Mar 2016 20:05:01 +0000 (20:05 +0000)]
Merge "ART: Speed up stack guard page install" into nyc-dev

8 years agoAdd verify-profile compiler filter
Mathieu Chartier [Thu, 17 Mar 2016 02:08:31 +0000 (19:08 -0700)]
Add verify-profile compiler filter

Only verifies and dex2dex compiles classes in the profile. Goal
is to reduce application launch time.

~2x faster than interpret-only for Facebook.

Bug: 27688727
Change-Id: Ic9979c4f7ba4930298d0983c4e3c70c63500213f

8 years agoMerge "ART: Speed up stack guard page install"
Andreas Gampe [Fri, 18 Mar 2016 20:03:50 +0000 (20:03 +0000)]
Merge "ART: Speed up stack guard page install"

8 years agoART: Speed up stack guard page install
Andreas Gampe [Fri, 18 Mar 2016 04:27:19 +0000 (21:27 -0700)]
ART: Speed up stack guard page install

Only the main thread doesn't have its stack mapped in under normal
conditions. Reading each page is a lot of overhead and we should
try to avoid it.

Rewrite to first try a (non-fatal) protect. If the outcome is a
success, finish. Otherwise do the stack mapping, and try again.

Bug: 27718174

(cherry picked from commit 2c2d2a05eaf81d07df27418f8dfd68de6fa28ac1)

Change-Id: I16b214567585ed2f09970f618ccdec7eed219fd3

8 years agoART: Speed up stack guard page install
Andreas Gampe [Fri, 18 Mar 2016 04:27:19 +0000 (21:27 -0700)]
ART: Speed up stack guard page install

Only the main thread doesn't have its stack mapped in under normal
conditions. Reading each page is a lot of overhead and we should
try to avoid it.

Rewrite to first try a (non-fatal) protect. If the outcome is a
success, finish. Otherwise do the stack mapping, and try again.

Bug: 27718174
Change-Id: I16b214567585ed2f09970f618ccdec7eed219fd3

8 years agoMerge "Improve resolved classes saving strategy" into nyc-dev am: 4ea8bec
Calin Juravle [Fri, 18 Mar 2016 16:32:13 +0000 (16:32 +0000)]
Merge "Improve resolved classes saving strategy" into nyc-dev am: 4ea8bec
am: cff4736

* commit 'cff4736f1c4d2f15a065766d2215115e8b44057c':
  Improve resolved classes saving strategy

8 years agoMerge "Improve resolved classes saving strategy" into nyc-dev
Calin Juravle [Fri, 18 Mar 2016 16:30:01 +0000 (16:30 +0000)]
Merge "Improve resolved classes saving strategy" into nyc-dev
am: 4ea8bec

* commit '4ea8becfbfd73ac03ece671956d7c2cb3bc755af':
  Improve resolved classes saving strategy

8 years agoMerge "Improve resolved classes saving strategy" into nyc-dev
Calin Juravle [Fri, 18 Mar 2016 16:26:32 +0000 (16:26 +0000)]
Merge "Improve resolved classes saving strategy" into nyc-dev

8 years agoMerge "Ensure art::HRor support boolean, byte, short and char inputs." am: 38ceb62
Roland Levillain [Fri, 18 Mar 2016 16:24:58 +0000 (16:24 +0000)]
Merge "Ensure art::HRor support boolean, byte, short and char inputs." am: 38ceb62
am: 76236cd

* commit '76236cdd1dffd6b1e57a7246301ef88005f19024':
  Ensure art::HRor support boolean, byte, short and char inputs.

8 years agoMerge "Ensure art::HRor support boolean, byte, short and char inputs."
Roland Levillain [Fri, 18 Mar 2016 16:22:42 +0000 (16:22 +0000)]
Merge "Ensure art::HRor support boolean, byte, short and char inputs."
am: 38ceb62

* commit '38ceb62339514a8012695673b9e1110d13546f02':
  Ensure art::HRor support boolean, byte, short and char inputs.

8 years agoMerge "Ensure art::HRor support boolean, byte, short and char inputs."
Roland Levillain [Fri, 18 Mar 2016 16:16:41 +0000 (16:16 +0000)]
Merge "Ensure art::HRor support boolean, byte, short and char inputs."

8 years agoMerge "Disable jsr166.Collection8Test tests from running." am: b1aff6c
Przemyslaw Szczepaniak [Fri, 18 Mar 2016 16:14:53 +0000 (16:14 +0000)]
Merge "Disable jsr166.Collection8Test tests from running." am: b1aff6c
am: cec585e

* commit 'cec585e367a87cb20ffc8301c5ed8959664157e3':
  Disable jsr166.Collection8Test tests from running.

8 years agoImprove resolved classes saving strategy
Calin Juravle [Thu, 17 Mar 2016 17:07:52 +0000 (17:07 +0000)]
Improve resolved classes saving strategy

If we already have a non empty profile file it means that we already
saved once the resolved classes. So there's no need to hurry up and
start the profile saver eagerly after 2s.

Bug: 27600652
Change-Id: I92ac5869bf68c8d6cbac8fc1503fe3c4930241b4

8 years agoMerge "Disable jsr166.Collection8Test tests from running."
Przemyslaw Szczepaniak [Fri, 18 Mar 2016 16:11:54 +0000 (16:11 +0000)]
Merge "Disable jsr166.Collection8Test tests from running."
am: b1aff6c

* commit 'b1aff6c7f248632028b6a62a17f02675007c9ce3':
  Disable jsr166.Collection8Test tests from running.

8 years agoRevert "Revert "Fix issue with proxy invocation on default methods"" am: 5457b86
Alex Light [Fri, 18 Mar 2016 16:11:54 +0000 (16:11 +0000)]
Revert "Revert "Fix issue with proxy invocation on default methods"" am: 5457b86
am: 069143f

* commit '069143f0109676553701fd7c2a0f7d6c6af6e6a7':
  Revert "Revert "Fix issue with proxy invocation on default methods""

8 years agoRevert "Revert "Fix issue with proxy invocation on default methods""
Alex Light [Fri, 18 Mar 2016 16:09:41 +0000 (16:09 +0000)]
Revert "Revert "Fix issue with proxy invocation on default methods""
am: 5457b86

* commit '5457b86f9dc02045436cc53327c4b6383805cb6a':
  Revert "Revert "Fix issue with proxy invocation on default methods""

8 years agoMerge "Disable jsr166.Collection8Test tests from running."
Przemyslaw Szczepaniak [Fri, 18 Mar 2016 16:05:02 +0000 (16:05 +0000)]
Merge "Disable jsr166.Collection8Test tests from running."

8 years agoDisable jsr166.Collection8Test tests from running.
Przemyslaw Szczepaniak [Fri, 18 Mar 2016 15:38:14 +0000 (15:38 +0000)]
Disable jsr166.Collection8Test tests from running.

This class shouldn't be run on its own, it's made to
be extended.

Bug: 27673907
Change-Id: If224104736344697947f9549b5e8a0bb513416dc

8 years agoRevert "Revert "Fix issue with proxy invocation on default methods""
Alex Light [Wed, 16 Mar 2016 23:09:45 +0000 (16:09 -0700)]
Revert "Revert "Fix issue with proxy invocation on default methods""

This reverts commit daf58c80d42f024aae0cb94ebd2c0bd61ebbf240.

Bug: 27621360

(cherry picked from commit e9dd04f633fcffc485f8d74861f39f66fc8bc522)

Change-Id: I56fccf19ae80451be4c316ba14911c667cbe9e47

8 years agoEnsure art::HRor support boolean, byte, short and char inputs.
Roland Levillain [Fri, 18 Mar 2016 14:04:28 +0000 (14:04 +0000)]
Ensure art::HRor support boolean, byte, short and char inputs.

Also extend tests covering the IntegerRotateLeft,
LongRotateLeft, IntegerRotateRight and LongRotateRight
intrinsics and their translation into an art::HRor
instruction.

Bug: 27682579
Change-Id: I89f6ea6a7315659a172482bf09875cfb7e7422a1

8 years agoMerge "Generate native debug stackmaps before calls as well." am: e943c3b
David Srbecky [Fri, 18 Mar 2016 12:46:42 +0000 (12:46 +0000)]
Merge "Generate native debug stackmaps before calls as well." am: e943c3b
am: b6989f6

* commit 'b6989f61852a6a83689dcfa96e5d45b07b7aa26a':
  Generate native debug stackmaps before calls as well.

8 years agoMerge "Generate native debug stackmaps before calls as well."
David Srbecky [Fri, 18 Mar 2016 12:44:23 +0000 (12:44 +0000)]
Merge "Generate native debug stackmaps before calls as well."
am: e943c3b

* commit 'e943c3b831dc0da4a6b09e940ae25c3285850e96':
  Generate native debug stackmaps before calls as well.

8 years agoMerge "Generate native debug stackmaps before calls as well."
David Srbecky [Fri, 18 Mar 2016 12:37:03 +0000 (12:37 +0000)]
Merge "Generate native debug stackmaps before calls as well."

8 years agoAdd patchoat check that input oat file has patch section.
Jeff Hao [Fri, 18 Mar 2016 04:32:45 +0000 (21:32 -0700)]
Add patchoat check that input oat file has patch section.

Do this check before opening the output file in case this could be
causing the file to become truncated.

Bug: 27723864
Change-Id: I4e612eaaa55d4667afc8099c516a23d32a9ab7f4

8 years agoFix zygote handling of when secondary image is out of date. am: 02d97c3
Jeff Hao [Fri, 18 Mar 2016 02:21:49 +0000 (02:21 +0000)]
Fix zygote handling of when secondary image is out of date. am: 02d97c3
am: 3d6d07c

* commit '3d6d07c4de9b6766712dda351522a799d8183323':
  Fix zygote handling of when secondary image is out of date.

8 years agoFix zygote handling of when secondary image is out of date.
Jeff Hao [Fri, 18 Mar 2016 02:19:08 +0000 (02:19 +0000)]
Fix zygote handling of when secondary image is out of date.
am: 02d97c3

* commit '02d97c3727a4c7fb611b73fac1a0ff19568de2c9':
  Fix zygote handling of when secondary image is out of date.

8 years agoFix zygote handling of when secondary image is out of date.
Jeff Hao [Tue, 15 Mar 2016 01:50:49 +0000 (18:50 -0700)]
Fix zygote handling of when secondary image is out of date.

Simple fix for case when primary image is current, but a secondary image
is out of date. Will want to do a cleaner fix in the future.

Bug: 27340451

(cherry-picked from commit b8510d2311964489342d8875ef7f5b681ba874b4)

Change-Id: I034f001834d84b2a4aa367da722543091a2a7b3a

8 years agoMerge "Remove TEMP_FAILURE_RETRY for unlink" am: 7c06aef
Dimitry Ivanov [Fri, 18 Mar 2016 00:32:27 +0000 (00:32 +0000)]
Merge "Remove TEMP_FAILURE_RETRY for unlink" am: 7c06aef
am: c015f33

* commit 'c015f33a378fb816379cfbc2379f468e2af4e0ed':
  Remove TEMP_FAILURE_RETRY for unlink

8 years agoMerge "Remove TEMP_FAILURE_RETRY for unlink"
Dimitry Ivanov [Fri, 18 Mar 2016 00:30:10 +0000 (00:30 +0000)]
Merge "Remove TEMP_FAILURE_RETRY for unlink"
am: 7c06aef

* commit '7c06aef061fa176331b77a88c1ff2c6ae401a5f0':
  Remove TEMP_FAILURE_RETRY for unlink

8 years agoMerge "Remove TEMP_FAILURE_RETRY for unlink"
Dimitry Ivanov [Fri, 18 Mar 2016 00:20:44 +0000 (00:20 +0000)]
Merge "Remove TEMP_FAILURE_RETRY for unlink"