OSDN Git Service

android-x86/art.git
8 years agoMerge "Forgot to initialize JIT memory use fields." into nyc-dev
Nicolas Geoffray [Mon, 29 Feb 2016 16:57:54 +0000 (16:57 +0000)]
Merge "Forgot to initialize JIT memory use fields." into nyc-dev
am: a63727299d

* commit 'a63727299d6ab1089edcfeba78da69e02a97cf22':
  Forgot to initialize JIT memory use fields.

8 years agoMerge "Introduce partial code cache collection." into nyc-dev
Nicolas Geoffray [Mon, 29 Feb 2016 16:57:35 +0000 (16:57 +0000)]
Merge "Introduce partial code cache collection." into nyc-dev
am: e2b1063595

* commit 'e2b1063595834b1a33fcf04b64a3358c4eb8606e':
  Introduce partial code cache collection.

8 years agoMerge "Forgot to initialize JIT memory use fields." into nyc-dev
Nicolas Geoffray [Mon, 29 Feb 2016 16:55:49 +0000 (16:55 +0000)]
Merge "Forgot to initialize JIT memory use fields." into nyc-dev

8 years agoMerge "Introduce partial code cache collection." into nyc-dev
Nicolas Geoffray [Mon, 29 Feb 2016 16:55:15 +0000 (16:55 +0000)]
Merge "Introduce partial code cache collection." into nyc-dev

8 years agoMerge "Cleanup polymorphic inlining to the same target." into nyc-dev
Nicolas Geoffray [Mon, 29 Feb 2016 16:31:08 +0000 (16:31 +0000)]
Merge "Cleanup polymorphic inlining to the same target." into nyc-dev
am: d8f4547868  -s ours

* commit 'd8f454786830ba2f2196f87a8cd0687b537cc112':
  Cleanup polymorphic inlining to the same target.

8 years agoMerge "Bug fix for polymorphic inlining." into nyc-dev
Nicolas Geoffray [Mon, 29 Feb 2016 16:22:03 +0000 (16:22 +0000)]
Merge "Bug fix for polymorphic inlining." into nyc-dev
am: 6e578529a8

* commit '6e578529a89dd862fe80283de7433fe17fbe993b':
  Bug fix for polymorphic inlining.

8 years agoMerge "Cleanup polymorphic inlining to the same target." into nyc-dev
Nicolas Geoffray [Mon, 29 Feb 2016 16:19:10 +0000 (16:19 +0000)]
Merge "Cleanup polymorphic inlining to the same target." into nyc-dev

8 years agoMerge "Bug fix for polymorphic inlining." into nyc-dev
Nicolas Geoffray [Mon, 29 Feb 2016 16:18:48 +0000 (16:18 +0000)]
Merge "Bug fix for polymorphic inlining." into nyc-dev

8 years agoDump the number of OSR compiled code.
Nicolas Geoffray [Mon, 29 Feb 2016 16:11:43 +0000 (16:11 +0000)]
Dump the number of OSR compiled code.
am: 5b3fbd26a9  -s ours

* commit '5b3fbd26a9f8b8c15e8e85db2403b3545536cd87':
  Dump the number of OSR compiled code.

8 years agoForgot to initialize JIT memory use fields.
Nicolas Geoffray [Wed, 24 Feb 2016 17:18:25 +0000 (17:18 +0000)]
Forgot to initialize JIT memory use fields.

bug:23128949

(cherry picked from commit b0d220835f2ddc03510f17fcc4fb4c64b426a0f5)

Change-Id: Iea81925ebd0fd60fe58a972269313a98f93fdac5

8 years agoDump the number of OSR compiled code.
Nicolas Geoffray [Thu, 25 Feb 2016 13:27:47 +0000 (13:27 +0000)]
Dump the number of OSR compiled code.

bug:23128949

(cherry picked from commit fcdd72941810f03460a8efca0c6255439be80c35)

Change-Id: I7f6c428511ee7fe346c665be8f02880bcc317cae

8 years agoIntroduce partial code cache collection.
Nicolas Geoffray [Tue, 23 Feb 2016 13:56:43 +0000 (13:56 +0000)]
Introduce partial code cache collection.

It will collect code that is known unused (because it deoptimized),
and osr code.

bug:26846185

(cherry picked from commit 8d37250f7b9a7839b11488f45a1842b025026f94)

Change-Id: Iffe87e356066a3f0bd28cb3df41c17bf2ac9ea0f

8 years agoCleanup polymorphic inlining to the same target.
Nicolas Geoffray [Thu, 25 Feb 2016 16:17:54 +0000 (16:17 +0000)]
Cleanup polymorphic inlining to the same target.

- Don't do expensive lookups, just fetch the ArtMethods from the
  imtable or vtable.
- Don't perform the optimization if we may end up in the conflicting
  trampoline.

bug:27398183

(cherry picked from commit 4f97a212b6ff801eb9f7f88a87f44e0584339cca)

Change-Id: Ia4007743ae00860f679f96f45eb14d26e6dc3fce

8 years agoBug fix for polymorphic inlining.
Nicolas Geoffray [Mon, 29 Feb 2016 11:46:58 +0000 (11:46 +0000)]
Bug fix for polymorphic inlining.

The code used to wrongly propagate try/catch information to
new blocks. Since it has the same logic as Hraph::InlineInto,
extract the code that updates loop and try/catch information
to blocks to a shared method.

bug:27330865
bug:27372101
bug:27360329

(cherry picked from commit a1d8ddfaf09545f99bc326dff97ab604d4574eb6)

Change-Id: Ice0373ec0a1c24d78121634a377f6f502e814cfb

8 years agoMerge "Bug fix for polymorphic inlining." am: c3bcf40e90
Nicolas Geoffray [Mon, 29 Feb 2016 14:34:03 +0000 (14:34 +0000)]
Merge "Bug fix for polymorphic inlining." am: c3bcf40e90
am: f4e977261c

* commit 'f4e977261cbbb4e75f61b5ac5f94764994719c92':
  Bug fix for polymorphic inlining.

8 years agoMerge "Cleanup polymorphic inlining to the same target." am: fb734b416d
Nicolas Geoffray [Mon, 29 Feb 2016 14:33:55 +0000 (14:33 +0000)]
Merge "Cleanup polymorphic inlining to the same target." am: fb734b416d
am: a03ff5a388

* commit 'a03ff5a3887a9d413a19fcde40451aa31ccca718':
  Cleanup polymorphic inlining to the same target.

8 years agoMerge "Bug fix for polymorphic inlining."
Nicolas Geoffray [Mon, 29 Feb 2016 14:32:35 +0000 (14:32 +0000)]
Merge "Bug fix for polymorphic inlining."
am: c3bcf40e90

* commit 'c3bcf40e905c53ec857ec40a9ae45f4c86738929':
  Bug fix for polymorphic inlining.

8 years agoMerge "Cleanup polymorphic inlining to the same target."
Nicolas Geoffray [Mon, 29 Feb 2016 14:32:27 +0000 (14:32 +0000)]
Merge "Cleanup polymorphic inlining to the same target."
am: fb734b416d

* commit 'fb734b416d20e5c3d1c29576f5cf16a003960b55':
  Cleanup polymorphic inlining to the same target.

8 years agoMerge "Bug fix for polymorphic inlining."
Nicolas Geoffray [Mon, 29 Feb 2016 14:30:18 +0000 (14:30 +0000)]
Merge "Bug fix for polymorphic inlining."

8 years agoMerge "Cleanup polymorphic inlining to the same target."
Nicolas Geoffray [Mon, 29 Feb 2016 14:30:00 +0000 (14:30 +0000)]
Merge "Cleanup polymorphic inlining to the same target."

8 years agoCleanup polymorphic inlining to the same target.
Nicolas Geoffray [Thu, 25 Feb 2016 16:17:54 +0000 (16:17 +0000)]
Cleanup polymorphic inlining to the same target.

- Don't do expensive lookups, just fetch the ArtMethods from the
  imtable or vtable.
- Don't perform the optimization if we may end up in the conflicting
  trampoline.

bug:27398183

Change-Id: I327c9f7c3a85d570a057ff8f18602e8e52402fdc

8 years agoBug fix for polymorphic inlining.
Nicolas Geoffray [Mon, 29 Feb 2016 11:46:58 +0000 (11:46 +0000)]
Bug fix for polymorphic inlining.

The code used to wrongly propagate try/catch information to
new blocks. Since it has the same logic as Hraph::InlineInto,
extract the code that updates loop and try/catch information
to blocks to a shared method.

bug:27330865
bug:27372101
bug:27360329

Change-Id: I4386f724d8d412bde5bcc04fda6955bc3bacf5a9

8 years agoMerge "Disable symbolizing traces on volantis." am: eebfed8b2f
Nicolas Geoffray [Mon, 29 Feb 2016 09:52:57 +0000 (09:52 +0000)]
Merge "Disable symbolizing traces on volantis." am: eebfed8b2f
am: 0e7257d044

* commit '0e7257d044a24a18c8d3af67e928728c20988054':
  Disable symbolizing traces on volantis.

8 years agoMerge "Disable symbolizing traces on volantis."
Nicolas Geoffray [Mon, 29 Feb 2016 09:51:31 +0000 (09:51 +0000)]
Merge "Disable symbolizing traces on volantis."
am: eebfed8b2f

* commit 'eebfed8b2fc4d6efa614f98001a0dc918bd225c0':
  Disable symbolizing traces on volantis.

8 years agoMerge "Disable symbolizing traces on volantis."
Nicolas Geoffray [Mon, 29 Feb 2016 09:49:55 +0000 (09:49 +0000)]
Merge "Disable symbolizing traces on volantis."

8 years agoDisable symbolizing traces on volantis.
Nicolas Geoffray [Mon, 29 Feb 2016 09:35:26 +0000 (09:35 +0000)]
Disable symbolizing traces on volantis.

Change-Id: I1ba6b5a173e77e635d721dea8433cfcb8b0b787b

8 years agoMerge "Revert "Improve immune spaces logic"" am: a48224f327
Nicolas Geoffray [Sat, 27 Feb 2016 11:32:47 +0000 (11:32 +0000)]
Merge "Revert "Improve immune spaces logic"" am: a48224f327
am: 690f8b2542

* commit '690f8b2542b2d2a4e6eda8ae74b767d3db630c38':
  Revert "Improve immune spaces logic"

8 years agoMerge "Revert "Improve immune spaces logic""
Nicolas Geoffray [Sat, 27 Feb 2016 11:31:07 +0000 (11:31 +0000)]
Merge "Revert "Improve immune spaces logic""
am: a48224f327

* commit 'a48224f32797b234f07d78fbbede5edbb212ceab':
  Revert "Improve immune spaces logic"

8 years agoMerge "Revert "Improve immune spaces logic""
Nicolas Geoffray [Sat, 27 Feb 2016 11:30:49 +0000 (11:30 +0000)]
Merge "Revert "Improve immune spaces logic""

8 years agoRevert "Improve immune spaces logic"
Nicolas Geoffray [Sat, 27 Feb 2016 11:30:25 +0000 (11:30 +0000)]
Revert "Improve immune spaces logic"

test is flaky. For example:

[ RUN      ] ImmuneSpacesTest.MultiImage
art/runtime/gc/collector/immune_spaces_test.cc:351: Failure
Value of: space5->Limit()
  Actual: 0xb6d72000
Expected: reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().End())
Which is: 0xb6d93000
[  FAILED  ] ImmuneSpacesTest.MultiImage (1076 ms)

Bug: 27136196

This reverts commit 17b8bce064fe4c0b29117abe489b7f8c2c950d43.

Change-Id: I9168421dd6ebabc271ed5c2cdbc5a27c211dcf5a

8 years agoImprove immune spaces logic
Mathieu Chartier [Sat, 27 Feb 2016 02:22:16 +0000 (02:22 +0000)]
Improve immune spaces logic
am: 06fc03b2bf

* commit '06fc03b2bf02f1ccecfaaaaaa36ee8be65711c47':
  Improve immune spaces logic

8 years agoMerge "Improve immune spaces logic" am: d8e6d82adb
Mathieu Chartier [Sat, 27 Feb 2016 01:24:46 +0000 (01:24 +0000)]
Merge "Improve immune spaces logic" am: d8e6d82adb
am: 93dab35231

* commit '93dab3523121ca2be3294dce33841912b4d6a1d1':
  Improve immune spaces logic

8 years agoMerge "Improve immune spaces logic"
Mathieu Chartier [Sat, 27 Feb 2016 01:22:44 +0000 (01:22 +0000)]
Merge "Improve immune spaces logic"
am: d8e6d82adb

* commit 'd8e6d82adb9027bfa34958b22301a7d53142edad':
  Improve immune spaces logic

8 years agoMerge "Improve immune spaces logic"
Mathieu Chartier [Sat, 27 Feb 2016 01:22:19 +0000 (01:22 +0000)]
Merge "Improve immune spaces logic"

8 years agoImprove immune spaces logic
Mathieu Chartier [Tue, 23 Feb 2016 03:32:16 +0000 (19:32 -0800)]
Improve immune spaces logic

We now properly include the largest continuous region with the most
image bytes. Oat bytes are considered as part of the region but are
not counted when comparing. This can result in more image bytes in
cases where large oat files were previously included for the immune
region.

Also added handling for adjacent oat files:
[image][image][oat][oat][space] will now properly be a single region.

Bug: 27136196

(cherry picked from commit 17b8bce064fe4c0b29117abe489b7f8c2c950d43)

Change-Id: Ic69489fef1ba72f735ee613d5416eeadc703c06e

8 years agoImprove immune spaces logic
Mathieu Chartier [Tue, 23 Feb 2016 03:32:16 +0000 (19:32 -0800)]
Improve immune spaces logic

We now properly include the largest continuous region with the most
image bytes. Oat bytes are considered as part of the region but are
not counted when comparing. This can result in more image bytes in
cases where large oat files were previously included for the immune
region.

Also added handling for adjacent oat files:
[image][image][oat][oat][space] will now properly be a single region.

Bug: 27136196
Change-Id: If2c002176dd32122e320e8a94551df46bd95256a

8 years agoMerge "Support new JDWP InterfaceType.InvokeMethod command" into nyc-dev
Alex Light [Fri, 26 Feb 2016 23:57:40 +0000 (23:57 +0000)]
Merge "Support new JDWP InterfaceType.InvokeMethod command" into nyc-dev
am: 0c5559ce38

* commit '0c5559ce38a3466d6c00da4dda6b81fcabbba247':
  Support new JDWP InterfaceType.InvokeMethod command

8 years agoMerge "ART: Add unstarted-runtime functions" am: 0002311638
Andreas Gampe [Fri, 26 Feb 2016 23:46:01 +0000 (23:46 +0000)]
Merge "ART: Add unstarted-runtime functions" am: 0002311638
am: 6fba0dbdd5

* commit '6fba0dbdd50383509b8d63898e74aca0e330ef7e':
  ART: Add unstarted-runtime functions

8 years agoMerge "ART: Add unstarted-runtime functions"
Andreas Gampe [Fri, 26 Feb 2016 23:44:40 +0000 (23:44 +0000)]
Merge "ART: Add unstarted-runtime functions"
am: 0002311638

* commit '0002311638d67025382d7697f36b8221b1fda734':
  ART: Add unstarted-runtime functions

8 years agoMerge "ART: Add unstarted-runtime functions"
Andreas Gampe [Fri, 26 Feb 2016 23:44:02 +0000 (23:44 +0000)]
Merge "ART: Add unstarted-runtime functions"

8 years agoART: Add unstarted-runtime functions
Andreas Gampe [Mon, 22 Feb 2016 18:03:12 +0000 (10:03 -0800)]
ART: Add unstarted-runtime functions

Add more functions to allow compile-time initialization of
code.

Bug: 27248115

(cherry picked from commit 0866f4ed6338faa4a193b7e819fc7cd72bd7b0ae)

Change-Id: Iaf8d92deb73547ccd31c0d6dde68da3bc14c3985

8 years agoMerge "Support new JDWP InterfaceType.InvokeMethod command" into nyc-dev
Alex Light [Fri, 26 Feb 2016 23:41:30 +0000 (23:41 +0000)]
Merge "Support new JDWP InterfaceType.InvokeMethod command" into nyc-dev

8 years agoMerge "Support new JDWP InterfaceType.InvokeMethod command" am: 420ae23220
Alex Light [Fri, 26 Feb 2016 23:41:07 +0000 (23:41 +0000)]
Merge "Support new JDWP InterfaceType.InvokeMethod command" am: 420ae23220
am: a91766c953

* commit 'a91766c953193dc5e0c0aff2eabc8f1b1ce30d7d':
  Support new JDWP InterfaceType.InvokeMethod command

8 years agoMerge "Support new JDWP InterfaceType.InvokeMethod command"
Alex Light [Fri, 26 Feb 2016 23:38:34 +0000 (23:38 +0000)]
Merge "Support new JDWP InterfaceType.InvokeMethod command"
am: 420ae23220

* commit '420ae23220a58f6146aa321f91c11e6549f8fd7b':
  Support new JDWP InterfaceType.InvokeMethod command

8 years agoSupport new JDWP InterfaceType.InvokeMethod command
Alex Light [Thu, 25 Feb 2016 00:35:59 +0000 (16:35 -0800)]
Support new JDWP InterfaceType.InvokeMethod command

This command is used to invoke static methods in interfaces.

(cherry picked from commit 4a28e1e4e02aa44aa6fd20e22d50f9d73f6279cc)

Bug: 27218415

Change-Id: Ie4dc1876a20567240267f309dc18f1aec2c1b4c2

8 years agoMerge "Support new JDWP InterfaceType.InvokeMethod command"
Alex Light [Fri, 26 Feb 2016 23:35:49 +0000 (23:35 +0000)]
Merge "Support new JDWP InterfaceType.InvokeMethod command"

8 years agoMerge "Add and use loaded class profiling" am: 4f626cd1d2
Mathieu Chartier [Fri, 26 Feb 2016 22:26:50 +0000 (22:26 +0000)]
Merge "Add and use loaded class profiling" am: 4f626cd1d2
am: 36ae397c45

* commit '36ae397c453555a7efd08ef873f16e494a102036':
  Add and use loaded class profiling

8 years agoMerge "Add and use loaded class profiling"
Mathieu Chartier [Fri, 26 Feb 2016 22:25:17 +0000 (22:25 +0000)]
Merge "Add and use loaded class profiling"
am: 4f626cd1d2

* commit '4f626cd1d2375df98dd5286fe875ba87f802e058':
  Add and use loaded class profiling

8 years agoMerge "Add and use loaded class profiling"
Mathieu Chartier [Fri, 26 Feb 2016 22:23:38 +0000 (22:23 +0000)]
Merge "Add and use loaded class profiling"

8 years agoMerge "Add and use loaded class profiling" into nyc-dev
Mathieu Chartier [Fri, 26 Feb 2016 21:11:41 +0000 (21:11 +0000)]
Merge "Add and use loaded class profiling" into nyc-dev
am: fbef09b29e

* commit 'fbef09b29ea42c6fdacde18946f576772bae0a80':
  Add and use loaded class profiling

8 years agoMerge "ART: Add unstarted-runtime functions" into nyc-dev
Andreas Gampe [Fri, 26 Feb 2016 21:09:16 +0000 (21:09 +0000)]
Merge "ART: Add unstarted-runtime functions" into nyc-dev
am: 8dc09ab451

* commit '8dc09ab45194b989c6dfe5bb03e06a881865da1f':
  ART: Add unstarted-runtime functions

8 years agoAdd and use loaded class profiling
Mathieu Chartier [Thu, 10 Dec 2015 00:38:30 +0000 (16:38 -0800)]
Add and use loaded class profiling

Class profiling is a way to keep track of which classes are resolved.
From here the compiler can use this information to generate a smaller
app image.

TODO: Add tests for profile stuff.

Bug: 22858531

(cherry picked from commit 8913fc1a27df8cf3b37fd99e94d87f290591328e)

Change-Id: Ifcd09230cbdc266305bc1247e0d31e7920eb353e

8 years agoMerge "Add and use loaded class profiling" into nyc-dev
Mathieu Chartier [Fri, 26 Feb 2016 21:07:19 +0000 (21:07 +0000)]
Merge "Add and use loaded class profiling" into nyc-dev

8 years agoMerge "ART: Add unstarted-runtime functions" into nyc-dev
Andreas Gampe [Fri, 26 Feb 2016 20:58:51 +0000 (20:58 +0000)]
Merge "ART: Add unstarted-runtime functions" into nyc-dev

8 years agoMerge "Assembly TLAB allocation fast path for arm." am: da11cef6fb
Hiroshi Yamauchi [Fri, 26 Feb 2016 20:06:57 +0000 (20:06 +0000)]
Merge "Assembly TLAB allocation fast path for arm." am: da11cef6fb
am: d41160a6e8

* commit 'd41160a6e8cb56c12f9fb351acddf54a581cadfa':
  Assembly TLAB allocation fast path for arm.

8 years agoMerge "Assembly TLAB allocation fast path for arm."
Hiroshi Yamauchi [Fri, 26 Feb 2016 20:05:13 +0000 (20:05 +0000)]
Merge "Assembly TLAB allocation fast path for arm."
am: da11cef6fb

* commit 'da11cef6fb6d8a9e08cb445576a50abff8773a25':
  Assembly TLAB allocation fast path for arm.

8 years agoMerge "Assembly TLAB allocation fast path for arm."
Hiroshi Yamauchi [Fri, 26 Feb 2016 20:03:27 +0000 (20:03 +0000)]
Merge "Assembly TLAB allocation fast path for arm."

8 years agoAdd and use loaded class profiling
Mathieu Chartier [Thu, 10 Dec 2015 00:38:30 +0000 (16:38 -0800)]
Add and use loaded class profiling

Class profiling is a way to keep track of which classes are resolved.
From here the compiler can use this information to generate a smaller
app image.

TODO: Add tests for profile stuff.

Bug: 22858531

Change-Id: I91ccd686394cc2517512f66abb0e277f3d26d4da

8 years agoAdd JNI tests for lambdas
Alex Light [Fri, 26 Feb 2016 19:14:48 +0000 (19:14 +0000)]
Add JNI tests for lambdas
am: 3a29a019a8

* commit '3a29a019a885087c10ad10413b299329945d5f32':
  Add JNI tests for lambdas

8 years agoAdd JNI tests for lambdas
Alex Light [Fri, 26 Feb 2016 00:13:54 +0000 (16:13 -0800)]
Add JNI tests for lambdas

(cherry picked from commit e9d2ca237620b0af28eed9fef52b09bddebdbc6f)

Bug: 27259142

Change-Id: I2a1b31db85dc487c1e6a62609d4497c3a4d4d3a6

8 years agoMerge "Add JNI tests for lambdas" am: 48a13431f0
Alex Light [Fri, 26 Feb 2016 19:05:46 +0000 (19:05 +0000)]
Merge "Add JNI tests for lambdas" am: 48a13431f0
am: 52d59cfc3b

* commit '52d59cfc3bda00666af1f1311d4f38f91c859867':
  Add JNI tests for lambdas

8 years agoMerge "Add JNI tests for lambdas"
Alex Light [Fri, 26 Feb 2016 19:04:10 +0000 (19:04 +0000)]
Merge "Add JNI tests for lambdas"
am: 48a13431f0

* commit '48a13431f09ff9bbdcd1ee991da6a04e694c5134':
  Add JNI tests for lambdas

8 years agoMerge "Add JNI tests for lambdas"
Alex Light [Fri, 26 Feb 2016 19:02:32 +0000 (19:02 +0000)]
Merge "Add JNI tests for lambdas"

8 years agoMerge "Implement fp to bits methods as intrinsics." am: 1bdfdb3e87
Aart Bik [Fri, 26 Feb 2016 18:32:11 +0000 (18:32 +0000)]
Merge "Implement fp to bits methods as intrinsics." am: 1bdfdb3e87
am: 24840c5a1b

* commit '24840c5a1b3c54cf5d613af8e137146e3d7084f4':
  Implement fp to bits methods as intrinsics.

8 years agoMerge "Implement fp to bits methods as intrinsics."
Aart Bik [Fri, 26 Feb 2016 18:30:07 +0000 (18:30 +0000)]
Merge "Implement fp to bits methods as intrinsics."
am: 1bdfdb3e87

* commit '1bdfdb3e879267dafb4b6811dd70cc8b7511fe15':
  Implement fp to bits methods as intrinsics.

8 years agoMerge "Implement fp to bits methods as intrinsics."
Aart Bik [Fri, 26 Feb 2016 18:27:29 +0000 (18:27 +0000)]
Merge "Implement fp to bits methods as intrinsics."

8 years agoAdd JNI tests for lambdas
Alex Light [Fri, 26 Feb 2016 00:13:54 +0000 (16:13 -0800)]
Add JNI tests for lambdas

Bug: 27259142

Change-Id: I2a1b31db85dc487c1e6a62609d4497c3a4d4d3a6

8 years agoMerge "Simplify LoadNativeLibrary()" into nyc-dev
Dimitry Ivanov [Fri, 26 Feb 2016 18:11:12 +0000 (18:11 +0000)]
Merge "Simplify LoadNativeLibrary()" into nyc-dev
am: 657f5f76a6

* commit '657f5f76a678e6fbcc68b8035ada5d8747fd910a':
  Simplify LoadNativeLibrary()

8 years agoMerge "Simplify LoadNativeLibrary()" into nyc-dev
Dimitry Ivanov [Fri, 26 Feb 2016 18:03:54 +0000 (18:03 +0000)]
Merge "Simplify LoadNativeLibrary()" into nyc-dev

8 years agoImplement fp to bits methods as intrinsics.
Aart Bik [Thu, 25 Feb 2016 19:32:32 +0000 (11:32 -0800)]
Implement fp to bits methods as intrinsics.

Rationale:
Better optimization, better performance.

Results on libcore benchmark:

Most gain is from moving the invariant call out of the loop
after we detect everything is a side-effect free intrinsic.
But generated code in general case is much cleaner too.

Before:
timeFloatToIntBits() in 181 ms.
timeFloatToRawIntBits() in 35 ms.
timeDoubleToLongBits() in 208 ms.
timeDoubleToRawLongBits() in 35 ms.

After:
timeFloatToIntBits() in 36 ms.
timeFloatToRawIntBits() in 35 ms.
timeDoubleToLongBits() in 35 ms.
timeDoubleToRawLongBits() in 34 ms.

bug=11548336

Change-Id: I6e001bd3708e800bd75a82b8950fb3a0fc01766e

8 years agoMerge "Optimizing: Reduce memory usage of HInstructions." am: 01c30e8dbc
Vladimir Marko [Fri, 26 Feb 2016 16:43:42 +0000 (16:43 +0000)]
Merge "Optimizing: Reduce memory usage of HInstructions." am: 01c30e8dbc
am: 8e4d8f4ee4

* commit '8e4d8f4ee4db435ec77f4a30c0ede66d3ce1ee81':
  Optimizing: Reduce memory usage of HInstructions.

8 years agoMerge "Optimizing: Reduce memory usage of HInstructions."
Vladimir Marko [Fri, 26 Feb 2016 16:41:49 +0000 (16:41 +0000)]
Merge "Optimizing: Reduce memory usage of HInstructions."
am: 01c30e8dbc

* commit '01c30e8dbc45bdc5d922cef6e5a404be7bed0e8c':
  Optimizing: Reduce memory usage of HInstructions.

8 years agoMerge "Optimizing: Reduce memory usage of HInstructions."
Vladimir Marko [Fri, 26 Feb 2016 16:39:57 +0000 (16:39 +0000)]
Merge "Optimizing: Reduce memory usage of HInstructions."

8 years agoOptimizing: Reduce memory usage of HInstructions.
Vladimir Marko [Thu, 25 Feb 2016 11:37:38 +0000 (11:37 +0000)]
Optimizing: Reduce memory usage of HInstructions.

Pack narrow fields and flags into a single 32-bit field.

Change-Id: Ib2f7abf987caee0339018d21f0d498f8db63542d

8 years agoMerge "Revert "Revert "ART: Support interpreter switching in x86 mterp""" am: af86c4e441
Bill Buzbee [Fri, 26 Feb 2016 14:34:00 +0000 (14:34 +0000)]
Merge "Revert "Revert "ART: Support interpreter switching in x86 mterp""" am: af86c4e441
am: e2c9340362

* commit 'e2c9340362f702a2c2c66c6fbcd57463a97da317':
  Revert "Revert "ART: Support interpreter switching in x86 mterp""

8 years agoMerge "Optimizing: Add ARM and ARM64 intrinsics support for StringGetCharsNoCheck...
Tim Zhang [Fri, 26 Feb 2016 14:33:50 +0000 (14:33 +0000)]
Merge "Optimizing: Add ARM and ARM64 intrinsics support for StringGetCharsNoCheck" am: 8744d24d5b
am: 8fb4e3cef3

* commit '8fb4e3cef34309c9a24892c7974bcae8f5784d18':
  Optimizing: Add ARM and ARM64 intrinsics support for StringGetCharsNoCheck

8 years agoMerge "Revert "Revert "ART: Support interpreter switching in x86 mterp"""
Bill Buzbee [Fri, 26 Feb 2016 14:17:20 +0000 (14:17 +0000)]
Merge "Revert "Revert "ART: Support interpreter switching in x86 mterp"""
am: af86c4e441

* commit 'af86c4e44184bd17411de330d48aad7784d569d4':
  Revert "Revert "ART: Support interpreter switching in x86 mterp""

8 years agoMerge "Optimizing: Add ARM and ARM64 intrinsics support for StringGetCharsNoCheck"
Tim Zhang [Fri, 26 Feb 2016 14:17:09 +0000 (14:17 +0000)]
Merge "Optimizing: Add ARM and ARM64 intrinsics support for StringGetCharsNoCheck"
am: 8744d24d5b

* commit '8744d24d5b3ae63e2d822b30aaa12845c94d8076':
  Optimizing: Add ARM and ARM64 intrinsics support for StringGetCharsNoCheck

8 years agoMerge "Revert "Revert "ART: Support interpreter switching in x86 mterp"""
Bill Buzbee [Fri, 26 Feb 2016 14:10:54 +0000 (14:10 +0000)]
Merge "Revert "Revert "ART: Support interpreter switching in x86 mterp"""

8 years agoMerge "Optimizing: Add ARM and ARM64 intrinsics support for StringGetCharsNoCheck"
Nicolas Geoffray [Fri, 26 Feb 2016 13:43:56 +0000 (13:43 +0000)]
Merge "Optimizing: Add ARM and ARM64 intrinsics support for StringGetCharsNoCheck"

8 years agoMerge "Revert "Preload public libraries on Runtime::Start()"" into nyc-dev
Nicolas Geoffray [Fri, 26 Feb 2016 10:05:22 +0000 (10:05 +0000)]
Merge "Revert "Preload public libraries on Runtime::Start()"" into nyc-dev
am: 59d165e61c

* commit '59d165e61c3255929f54b12f6fa239c52dd166cf':
  Revert "Preload public libraries on Runtime::Start()"

8 years agoMerge "Revert "Preload public libraries on Runtime::Start()"" into nyc-dev
Nicolas Geoffray [Fri, 26 Feb 2016 10:02:05 +0000 (10:02 +0000)]
Merge "Revert "Preload public libraries on Runtime::Start()"" into nyc-dev

8 years agoDisable test 097-duplicate-method for investigation
Sebastien Hertz [Fri, 26 Feb 2016 09:37:18 +0000 (09:37 +0000)]
Disable test 097-duplicate-method for investigation
am: 1d8bc19e0f

* commit '1d8bc19e0f83b249d4fb38b12075722b515a6541':
  Disable test 097-duplicate-method for investigation

8 years agoDisable test 097-duplicate-method for investigation
Sebastien Hertz [Thu, 25 Feb 2016 17:50:23 +0000 (18:50 +0100)]
Disable test 097-duplicate-method for investigation

Broekn by latest Jack release (1.2-a19)

Bug: 27358065

(cherry picked from commit fc07555f6b8ce07b2c0897c6919597b53faa419d)

Change-Id: I13946fcd6cdf61645a4a60e619b343da8d9be341

8 years agoMerge "Revert "Fast ART x86_64 interpretator"" am: 15315abf91
Nicolas Geoffray [Fri, 26 Feb 2016 09:00:58 +0000 (09:00 +0000)]
Merge "Revert "Fast ART x86_64 interpretator"" am: 15315abf91
am: a63079e813

* commit 'a63079e813cb59d9272702f7b64dbb2c879f8523':
  Revert "Fast ART x86_64 interpretator"

8 years agoMerge "Revert "Fast ART x86_64 interpretator""
Nicolas Geoffray [Fri, 26 Feb 2016 08:59:33 +0000 (08:59 +0000)]
Merge "Revert "Fast ART x86_64 interpretator""
am: 15315abf91

* commit '15315abf91c94a4ebb0a64050f2753798b34bc1f':
  Revert "Fast ART x86_64 interpretator"

8 years agoMerge "Revert "Fast ART x86_64 interpretator""
Nicolas Geoffray [Fri, 26 Feb 2016 08:57:18 +0000 (08:57 +0000)]
Merge "Revert "Fast ART x86_64 interpretator""

8 years agoRevert "Fast ART x86_64 interpretator"
Nicolas Geoffray [Fri, 26 Feb 2016 08:56:45 +0000 (08:56 +0000)]
Revert "Fast ART x86_64 interpretator"

Fails gcstress configuration.

This reverts commit c669beb798e273dd3d44cfa6a7a95ff90eba7209.

Change-Id: Ifac92471f91a116fc271d0dde8356fbbb0a08048

8 years agoRevert "Preload public libraries on Runtime::Start()"
Nicolas Geoffray [Fri, 26 Feb 2016 08:48:04 +0000 (08:48 +0000)]
Revert "Preload public libraries on Runtime::Start()"

Loading is done in app_process.

Bug: http://b/27245894

This reverts commit 7bca74e53d3665bcd243d4e0277f6561c0c80271.

Change-Id: Ie2edbe88dea867fcd5cca109d279f1c19e4df6bb

8 years agoART: Add unstarted-runtime functions
Andreas Gampe [Mon, 22 Feb 2016 18:03:12 +0000 (10:03 -0800)]
ART: Add unstarted-runtime functions

Add more functions to allow compile-time initialization of
code.

Bug: 27248115
Change-Id: Iaf8d92deb73547ccd31c0d6dde68da3bc14c3985

8 years agoOptimizing: Add ARM and ARM64 intrinsics support for StringGetCharsNoCheck
Tim Zhang [Tue, 19 Jan 2016 15:39:24 +0000 (23:39 +0800)]
Optimizing: Add ARM and ARM64 intrinsics support for StringGetCharsNoCheck

This change refers to x86 implementation of StringGetCharsNoCheck and
arm implementation of SystemArrayCopy.

Change-Id: I1cb86854a2a8fa8736af7726b8efacd00d416f6f

8 years agoAdd lz4hc image compression format
Mathieu Chartier [Fri, 26 Feb 2016 01:11:33 +0000 (01:11 +0000)]
Add lz4hc image compression format
am: 167e638ffd

* commit '167e638ffd46186ef4fa26d1c0b6c7e00ed51ccb':
  Add lz4hc image compression format

8 years agoAdd a decompression scoped timing for image loading
Mathieu Chartier [Fri, 26 Feb 2016 01:11:11 +0000 (01:11 +0000)]
Add a decompression scoped timing for image loading
am: 1c3fa8891a  -s ours

* commit '1c3fa8891a95003f305a77d45838cb7c5040290f':
  Add a decompression scoped timing for image loading

8 years agoMerge "Add lz4hc image compression format" am: 3140ed5966
Mathieu Chartier [Fri, 26 Feb 2016 00:48:03 +0000 (00:48 +0000)]
Merge "Add lz4hc image compression format" am: 3140ed5966
am: 2699149c97

* commit '2699149c97b01b735697600b536daf05e3cc1e3f':
  Add lz4hc image compression format

8 years agoMerge "Add lz4hc image compression format"
Mathieu Chartier [Fri, 26 Feb 2016 00:46:23 +0000 (00:46 +0000)]
Merge "Add lz4hc image compression format"
am: 3140ed5966

* commit '3140ed59665d2ecea1e3ff153363ff26dab48b75':
  Add lz4hc image compression format

8 years agoMerge "Add lz4hc image compression format"
Mathieu Chartier [Fri, 26 Feb 2016 00:44:06 +0000 (00:44 +0000)]
Merge "Add lz4hc image compression format"

8 years agoAdd lz4hc image compression format
Mathieu Chartier [Thu, 25 Feb 2016 21:52:10 +0000 (13:52 -0800)]
Add lz4hc image compression format

Smaller than lz4 and decompresses at the same speed. Compression is
a bit slower.

Example saves on old FB APK:
Uncompressed: 44748800 bytes
LZ4: 12443648 bytes
LZ4HC: 11055104 bytes

Generating the image slows down by ~1s per 20MB of image due to
slower compression. Decompression is about the same speed but there
should be a slight speedup since less data needs to be read from
flash.

Added test.

Bug: 22858531

(cherry picked from commit a6e81ed4c185b7362cd5199ebe5507d00883a9b0)

Change-Id: Idd0bbe1ea45fc6ab75a42bfeb0ef250e8b3e2f1b

8 years agoAdd a decompression scoped timing for image loading
Mathieu Chartier [Thu, 25 Feb 2016 20:28:40 +0000 (12:28 -0800)]
Add a decompression scoped timing for image loading

Shows up in systrace.

Bug: 22858531

(cherry picked from commit 31317c319667cf1d7d0f61229ccb5e76f22606cf)

Change-Id: Id4997fb9abc28fa8c1dd1e78ff01234637b229d3

8 years agoMerge "Fast ART x86_64 interpretator" am: 36be5c503c
Serguei Katkov [Thu, 25 Feb 2016 23:21:12 +0000 (23:21 +0000)]
Merge "Fast ART x86_64 interpretator" am: 36be5c503c
am: 2a5065d438

* commit '2a5065d438a556557908ae84f225c69fc405b92c':
  Fast ART x86_64 interpretator

8 years agoMerge "Fast ART x86_64 interpretator"
Serguei Katkov [Thu, 25 Feb 2016 23:19:31 +0000 (23:19 +0000)]
Merge "Fast ART x86_64 interpretator"
am: 36be5c503c

* commit '36be5c503c21f4dbd1998f0c0b72e00e6cedd8fa':
  Fast ART x86_64 interpretator