OSDN Git Service

android-x86/art.git
8 years agoMerge \"Fix interpreter tests.\"
Nicolas Geoffray [Wed, 29 Jun 2016 14:03:21 +0000 (14:03 +0000)]
Merge \"Fix interpreter tests.\"
am: 3e6bc4c76a

Change-Id: I639ae01f1f1c64ac5dba4e9d5fd141ff573ff592

8 years agoMerge "Fix interpreter tests."
Nicolas Geoffray [Wed, 29 Jun 2016 13:57:20 +0000 (13:57 +0000)]
Merge "Fix interpreter tests."

8 years agoFix interpreter tests.
Nicolas Geoffray [Wed, 29 Jun 2016 13:54:35 +0000 (14:54 +0100)]
Fix interpreter tests.

Monitor operations can throw NPEs.

bug:29321958
Change-Id: If7a2e35a2073a7984a5126a826e722c918ba8d3a

8 years agoMerge \"Fix mac build.\"
Nicolas Geoffray [Wed, 29 Jun 2016 13:43:10 +0000 (13:43 +0000)]
Merge \"Fix mac build.\"
am: c23d6450c9

Change-Id: I38d3f92361b0176074d08c88e1f1dfae1f6a361a

8 years agoMerge "Fix mac build."
Nicolas Geoffray [Wed, 29 Jun 2016 13:37:03 +0000 (13:37 +0000)]
Merge "Fix mac build."

8 years agoFix mac build.
Nicolas Geoffray [Wed, 29 Jun 2016 13:34:21 +0000 (14:34 +0100)]
Fix mac build.

bug:29321958
Change-Id: Ibd51d408dd97876eb3237df5606dbe9290ca7254

8 years agoMerge \"Integer.bitCount and Long.bitCount intrinsics for ARM\"
xueliang.zhong [Wed, 29 Jun 2016 12:50:19 +0000 (12:50 +0000)]
Merge \"Integer.bitCount and Long.bitCount intrinsics for ARM\"
am: b98a57d276

Change-Id: I263c798aebdea8e5f567036c4064f7b2340bc950

8 years agoMerge "Integer.bitCount and Long.bitCount intrinsics for ARM"
Treehugger Robot [Wed, 29 Jun 2016 12:45:44 +0000 (12:45 +0000)]
Merge "Integer.bitCount and Long.bitCount intrinsics for ARM"

8 years agoInteger.bitCount and Long.bitCount intrinsics for ARM
xueliang.zhong [Tue, 24 May 2016 14:37:28 +0000 (15:37 +0100)]
Integer.bitCount and Long.bitCount intrinsics for ARM

Change-Id: Ia535865721313e72925fdec851a759470173cf89

8 years agoMerge \"Remove the old obsolete profiler\"
Calin Juravle [Wed, 29 Jun 2016 12:39:07 +0000 (12:39 +0000)]
Merge \"Remove the old obsolete profiler\"
am: 9c23cec953

Change-Id: I10553eb463ed036f0d1d481e6a8f777a5a0565f0

8 years agoMerge \"Do checks on the fault address when we think it\'s an NPE.\"
Nicolas Geoffray [Wed, 29 Jun 2016 12:39:06 +0000 (12:39 +0000)]
Merge \"Do checks on the fault address when we think it\'s an NPE.\"
am: fdbc39551e

Change-Id: I7125db6461341e6e7b890af9633484a906ffb7b4

8 years agoMerge "Remove the old obsolete profiler"
Treehugger Robot [Wed, 29 Jun 2016 12:34:35 +0000 (12:34 +0000)]
Merge "Remove the old obsolete profiler"

8 years agoMerge "Do checks on the fault address when we think it's an NPE."
Treehugger Robot [Wed, 29 Jun 2016 12:33:23 +0000 (12:33 +0000)]
Merge "Do checks on the fault address when we think it's an NPE."

8 years agoMerge \"ARM64: Ensure stricter alignment when loading and storing register pairs\"
Anton Kirilov [Wed, 29 Jun 2016 11:40:45 +0000 (11:40 +0000)]
Merge \"ARM64: Ensure stricter alignment when loading and storing register pairs\"
am: 34bccc1d85

Change-Id: I6c343eb20f3c35c732170b06a79362adef0fe2da

8 years agoMerge "ARM64: Ensure stricter alignment when loading and storing register pairs"
Treehugger Robot [Wed, 29 Jun 2016 11:34:00 +0000 (11:34 +0000)]
Merge "ARM64: Ensure stricter alignment when loading and storing register pairs"

8 years agoDo checks on the fault address when we think it's an NPE.
Nicolas Geoffray [Tue, 28 Jun 2016 17:08:46 +0000 (18:08 +0100)]
Do checks on the fault address when we think it's an NPE.

bug:29321958
Change-Id: I28f4da56eb3e0b48721d3ac41114858bc80daadb

8 years agoMerge \"Revert \"Optimize IMT\"\"
Nicolas Geoffray [Wed, 29 Jun 2016 08:47:20 +0000 (08:47 +0000)]
Merge \"Revert \"Optimize IMT\"\"
am: bb8d501c9b

Change-Id: Id3b16cec52bf776741bb972c48bea9f6cf14a525

8 years agoMerge \"Revert \"Refactor GetIMTIndex\"\"
Nicolas Geoffray [Wed, 29 Jun 2016 08:44:11 +0000 (08:44 +0000)]
Merge \"Revert \"Refactor GetIMTIndex\"\"
am: e36389f20c

Change-Id: I476e05b611bace3cb8ca378e625de1f1fc83633a

8 years agoMerge "Revert "Optimize IMT""
Nicolas Geoffray [Wed, 29 Jun 2016 08:41:44 +0000 (08:41 +0000)]
Merge "Revert "Optimize IMT""

8 years agoRevert "Optimize IMT"
Nicolas Geoffray [Wed, 29 Jun 2016 08:17:52 +0000 (08:17 +0000)]
Revert "Optimize IMT"

Bug: 29188168 (for initial CL)
Bug: 29778499 (reason for revert)

This reverts commit badee9820fcf5dca5f8c46c3215ae1779ee7736e.

Change-Id: I32b8463122c3521e233c34ca95c96a5078e88848

8 years agoMerge "Revert "Refactor GetIMTIndex""
Nicolas Geoffray [Wed, 29 Jun 2016 08:40:14 +0000 (08:40 +0000)]
Merge "Revert "Refactor GetIMTIndex""

8 years agoRevert "Refactor GetIMTIndex"
Nicolas Geoffray [Wed, 29 Jun 2016 08:39:47 +0000 (08:39 +0000)]
Revert "Refactor GetIMTIndex"

I need to revert this to get https://android-review.googlesource.com/#/c/244190/ to cleanly revert. Matthew, do you mind rewriting it?

This reverts commit 50706437d8216e41f0fea1e413cda7891324d397.

Change-Id: I5c1435f5dffb46dbb5b613b22adb88c7770304f2

8 years agoMerge \"Revert \"Propagate flags to ShouldHaveEmbeddedVTable\"\"
Nicolas Geoffray [Wed, 29 Jun 2016 08:26:16 +0000 (08:26 +0000)]
Merge \"Revert \"Propagate flags to ShouldHaveEmbeddedVTable\"\"
am: abf64415cf

Change-Id: I0e59d5731f8a790309fc27ad5718403ae9b799b0

8 years agoMerge "Revert "Propagate flags to ShouldHaveEmbeddedVTable""
Nicolas Geoffray [Wed, 29 Jun 2016 08:20:29 +0000 (08:20 +0000)]
Merge "Revert "Propagate flags to ShouldHaveEmbeddedVTable""

8 years agoRevert "Propagate flags to ShouldHaveEmbeddedVTable"
Nicolas Geoffray [Wed, 29 Jun 2016 08:19:04 +0000 (08:19 +0000)]
Revert "Propagate flags to ShouldHaveEmbeddedVTable"

Bug: 29188168 (for initial CL)
Bug: 29778499 (reason for revert)

This reverts commit efeb9f01308c5c4b723ff905cf5bea1636f7a549.

Change-Id: I21bc32fa07014bbce2eedba3686f09d3d45aec65

8 years agoMerge \"Add ability to generate a random test profile\"
Calin Juravle [Tue, 28 Jun 2016 17:26:48 +0000 (17:26 +0000)]
Merge \"Add ability to generate a random test profile\"
am: 4dd9d82d6c

Change-Id: I4b2ceb684ad2fcea89b8b8212ae2064cf8070d30

8 years agoMerge "Add ability to generate a random test profile"
Treehugger Robot [Tue, 28 Jun 2016 17:18:07 +0000 (17:18 +0000)]
Merge "Add ability to generate a random test profile"

8 years agoMerge \\"ARM assembler support for VCNT and VPADDL.\\" am: 5cb6513d51
xueliang.zhong [Tue, 28 Jun 2016 14:35:10 +0000 (14:35 +0000)]
Merge \\"ARM assembler support for VCNT and VPADDL.\\" am: 5cb6513d51
am: fc03b672c1

Change-Id: I3fc473fff12413ed9870b7214dbc0a6ad6c054b0

8 years agoMerge \"ARM assembler support for VCNT and VPADDL.\"
xueliang.zhong [Tue, 28 Jun 2016 14:32:36 +0000 (14:32 +0000)]
Merge \"ARM assembler support for VCNT and VPADDL.\"
am: 5cb6513d51

Change-Id: I39725f5849d1721ffc6af18bd5f0aecb7634e611

8 years agoMerge "ARM assembler support for VCNT and VPADDL."
Treehugger Robot [Tue, 28 Jun 2016 14:25:37 +0000 (14:25 +0000)]
Merge "ARM assembler support for VCNT and VPADDL."

8 years agoMerge \\"Add debug option to ignore checksum checks in profiles.\\" am: ece0c2e4de
Calin Juravle [Tue, 28 Jun 2016 13:35:05 +0000 (13:35 +0000)]
Merge \\"Add debug option to ignore checksum checks in profiles.\\" am: ece0c2e4de
am: b9440ff8a5

Change-Id: Ia38e17ce0ced75fc3fd5d90fca51dfcadb22e2f0

8 years agoMerge \"Add debug option to ignore checksum checks in profiles.\"
Calin Juravle [Tue, 28 Jun 2016 13:32:10 +0000 (13:32 +0000)]
Merge \"Add debug option to ignore checksum checks in profiles.\"
am: ece0c2e4de

Change-Id: I9f0963f97ddcec78a8fa3658fe3197342a6236f2

8 years agoARM assembler support for VCNT and VPADDL.
xueliang.zhong [Mon, 13 Jun 2016 13:42:27 +0000 (14:42 +0100)]
ARM assembler support for VCNT and VPADDL.

Test: Gtest assembler_thumb2_test.
Change-Id: I8a0e47da746e1c67650cb68196a9f661deed7383

8 years agoMerge "Add debug option to ignore checksum checks in profiles."
Treehugger Robot [Tue, 28 Jun 2016 13:25:56 +0000 (13:25 +0000)]
Merge "Add debug option to ignore checksum checks in profiles."

8 years agoRemove the old obsolete profiler
Calin Juravle [Thu, 23 Jun 2016 16:09:13 +0000 (17:09 +0100)]
Remove the old obsolete profiler

Bug: 24698874
Test: all the existing run-tests pass.
Change-Id: I56d25c75541275512a64ae5708569461b875df9c

8 years agoAdd ability to generate a random test profile
Calin Juravle [Tue, 7 Jun 2016 15:14:47 +0000 (16:14 +0100)]
Add ability to generate a random test profile

This is usefull to drive automated profile guided compilations.

Test: added TestProfileGeneration in profile_assistant_test.

bug: 29066961
Change-Id: Ib7ce7de898abefae1c2cf1b8ff16c4f0fc9b0d0e

8 years agoAdd debug option to ignore checksum checks in profiles.
Calin Juravle [Wed, 8 Jun 2016 13:24:13 +0000 (14:24 +0100)]
Add debug option to ignore checksum checks in profiles.

Test: existing tests passing, profile_compilation_info_test.

Bug: 29066961
Change-Id: I6084f50d6a6ada7407e1c7ad92fea9af3351715e

8 years agoMerge \\"Optimize away useless masking operations on shift amounts.\\" am: f249230400
Alexandre Rames [Tue, 28 Jun 2016 10:42:05 +0000 (10:42 +0000)]
Merge \\"Optimize away useless masking operations on shift amounts.\\" am: f249230400
am: e3250eaf2e

Change-Id: If5eb9a5491ef3bbe0ec7308883b778f8fd9b4597

8 years agoMerge \"Optimize away useless masking operations on shift amounts.\"
Alexandre Rames [Tue, 28 Jun 2016 10:39:07 +0000 (10:39 +0000)]
Merge \"Optimize away useless masking operations on shift amounts.\"
am: f249230400

Change-Id: I7012b320625831f0cd63c5b49e545d4dc9922b18

8 years agoMerge \\"MIPS64: Remove the workaround in VisitInvokeStaticOrDirect\\" am: d5d0c7b6ab
Goran Jakovljevic [Tue, 28 Jun 2016 10:39:06 +0000 (10:39 +0000)]
Merge \\"MIPS64: Remove the workaround in VisitInvokeStaticOrDirect\\" am: d5d0c7b6ab
am: 09c82e7732

Change-Id: I600a15c245face8a86c58146017182056f3ba630

8 years agoMerge \"MIPS64: Remove the workaround in VisitInvokeStaticOrDirect\"
Goran Jakovljevic [Tue, 28 Jun 2016 10:36:19 +0000 (10:36 +0000)]
Merge \"MIPS64: Remove the workaround in VisitInvokeStaticOrDirect\"
am: d5d0c7b6ab

Change-Id: I6c720caaeee80704339c7022836707c65a4b9180

8 years agoMerge "Optimize away useless masking operations on shift amounts."
Treehugger Robot [Tue, 28 Jun 2016 10:33:35 +0000 (10:33 +0000)]
Merge "Optimize away useless masking operations on shift amounts."

8 years agoMerge "MIPS64: Remove the workaround in VisitInvokeStaticOrDirect"
Treehugger Robot [Tue, 28 Jun 2016 10:29:56 +0000 (10:29 +0000)]
Merge "MIPS64: Remove the workaround in VisitInvokeStaticOrDirect"

8 years agoMerge \\"Fix 004-ThreadStress.\\" am: 99376148af
Vladimir Marko [Tue, 28 Jun 2016 10:16:11 +0000 (10:16 +0000)]
Merge \\"Fix 004-ThreadStress.\\" am: 99376148af
am: 1171e22d7c

Change-Id: Id648563e739da8cf70acb1d2aead055eaac46582

8 years agoMerge \"Fix 004-ThreadStress.\"
Vladimir Marko [Tue, 28 Jun 2016 10:13:25 +0000 (10:13 +0000)]
Merge \"Fix 004-ThreadStress.\"
am: 99376148af

Change-Id: Ifc329644f6039a2563a8d49292f0d51faa12e2af

8 years agoMerge \\"Optimizing: Do not depend on sharpening in test 450\\" am: 3ce4f88d3c
Goran Jakovljevic [Tue, 28 Jun 2016 10:13:24 +0000 (10:13 +0000)]
Merge \\"Optimizing: Do not depend on sharpening in test 450\\" am: 3ce4f88d3c
am: 48abef53d2

Change-Id: I80eb681d9ac41452f06d9631078e6fbcc6784890

8 years agoMerge \"Optimizing: Do not depend on sharpening in test 450\"
Goran Jakovljevic [Tue, 28 Jun 2016 10:10:30 +0000 (10:10 +0000)]
Merge \"Optimizing: Do not depend on sharpening in test 450\"
am: 3ce4f88d3c

Change-Id: I511d3219d66d45afd80e3ae5da15a1b631964cda

8 years agoMerge "Fix 004-ThreadStress."
Vladimir Marko [Tue, 28 Jun 2016 10:07:38 +0000 (10:07 +0000)]
Merge "Fix 004-ThreadStress."

8 years agoARM64: Ensure stricter alignment when loading and storing register pairs
Anton Kirilov [Fri, 10 Jun 2016 16:46:12 +0000 (17:46 +0100)]
ARM64: Ensure stricter alignment when loading and storing register pairs

The impetus for this change is the fact that loads that cross a 64 byte
boundary and stores that cross a 16 byte boundary are a performance issue
on Cortex-A57 and A72.

Change-Id: I81263dc72272192ad2d190b741a955f175880461

8 years agoMerge "Optimizing: Do not depend on sharpening in test 450"
Treehugger Robot [Tue, 28 Jun 2016 10:05:42 +0000 (10:05 +0000)]
Merge "Optimizing: Do not depend on sharpening in test 450"

8 years agoMerge \\"MIPS32: Drop redundant moves in integer conversions\\" am: 47fe36d8de
Alexey Frunze [Tue, 28 Jun 2016 09:58:55 +0000 (09:58 +0000)]
Merge \\"MIPS32: Drop redundant moves in integer conversions\\" am: 47fe36d8de
am: c8305b4578

Change-Id: I404f23c318dcd7c2aafb878a65285b3cf4a3e7ea

8 years agoMerge \"MIPS32: Drop redundant moves in integer conversions\"
Alexey Frunze [Tue, 28 Jun 2016 09:56:12 +0000 (09:56 +0000)]
Merge \"MIPS32: Drop redundant moves in integer conversions\"
am: 47fe36d8de

Change-Id: I35818e12007d2e651c23154e9dd8229e9013a1e2

8 years agoMerge "MIPS32: Drop redundant moves in integer conversions"
Treehugger Robot [Tue, 28 Jun 2016 09:49:33 +0000 (09:49 +0000)]
Merge "MIPS32: Drop redundant moves in integer conversions"

8 years agoMerge \\"Clean up StringReferenceValueComparator and DexFile.\\" am: 05f0167cdd
Vladimir Marko [Tue, 28 Jun 2016 09:08:20 +0000 (09:08 +0000)]
Merge \\"Clean up StringReferenceValueComparator and DexFile.\\" am: 05f0167cdd
am: 38a7126105

Change-Id: Iccfa0b4c195216fa2c5de32aeb2bd66623336b89

8 years agoMerge \"Clean up StringReferenceValueComparator and DexFile.\"
Vladimir Marko [Tue, 28 Jun 2016 09:05:49 +0000 (09:05 +0000)]
Merge \"Clean up StringReferenceValueComparator and DexFile.\"
am: 05f0167cdd

Change-Id: I58076c6c5df6c5765d565505909f17499281950a

8 years agoMerge "Clean up StringReferenceValueComparator and DexFile."
Vladimir Marko [Tue, 28 Jun 2016 08:57:50 +0000 (08:57 +0000)]
Merge "Clean up StringReferenceValueComparator and DexFile."

8 years agoMerge \\"Revert \\"Gray only immune objects mutators access.\\"\\" am: 105683791e
Nicolas Geoffray [Tue, 28 Jun 2016 08:34:37 +0000 (08:34 +0000)]
Merge \\"Revert \\"Gray only immune objects mutators access.\\"\\" am: 105683791e
am: d3b2b36186

Change-Id: I317a09cbf2bfc5e431fca4e4d4a1a575a9c7516c

8 years agoOptimize away useless masking operations on shift amounts.
Alexandre Rames [Mon, 27 Jun 2016 10:39:19 +0000 (11:39 +0100)]
Optimize away useless masking operations on shift amounts.

Change-Id: I90d69757cc45312eda3d57cc2d32bfb4e47963f5

8 years agoMerge \"Revert \"Gray only immune objects mutators access.\"\"
Nicolas Geoffray [Tue, 28 Jun 2016 08:32:13 +0000 (08:32 +0000)]
Merge \"Revert \"Gray only immune objects mutators access.\"\"
am: 105683791e

Change-Id: I4e8861233e18706fc6a5cf4dfeb7c04288d73d16

8 years agoMerge "Revert "Gray only immune objects mutators access.""
Nicolas Geoffray [Tue, 28 Jun 2016 08:26:16 +0000 (08:26 +0000)]
Merge "Revert "Gray only immune objects mutators access.""

8 years agoRevert "Gray only immune objects mutators access."
Nicolas Geoffray [Tue, 28 Jun 2016 08:25:59 +0000 (08:25 +0000)]
Revert "Gray only immune objects mutators access."

Fails with:
    art F 11338 11338 art/runtime/gc/collector/concurrent_copying-inl.h:83] Check failed: !kGrayImmuneObject || updated_all_immune_objects_.LoadRelaxed() || gc_grays_immune_objects_

Bug: 29516465
Bug: 12687968

This reverts commit 16292fcc98f03690576d0739b2e5fb04b375933c.

Change-Id: I1d2d988b7707e03cc94f019cf8bef5b9a9099060

8 years agoMerge \\"Gray only immune objects mutators access.\\" am: 450ee8fe76
Hiroshi Yamauchi [Tue, 28 Jun 2016 01:30:08 +0000 (01:30 +0000)]
Merge \\"Gray only immune objects mutators access.\\" am: 450ee8fe76
am: 021a3dc9ee

Change-Id: Ib7b18a58f16bf14260921aac4c0cddbf0a2acb5c

8 years agoMerge \"Gray only immune objects mutators access.\"
Hiroshi Yamauchi [Tue, 28 Jun 2016 01:27:47 +0000 (01:27 +0000)]
Merge \"Gray only immune objects mutators access.\"
am: 450ee8fe76

Change-Id: I366757c58818264ce10f30cb6d6b7aacdd9e6be4

8 years agoMerge "Gray only immune objects mutators access."
Treehugger Robot [Tue, 28 Jun 2016 01:20:50 +0000 (01:20 +0000)]
Merge "Gray only immune objects mutators access."

8 years agoGray only immune objects mutators access.
Hiroshi Yamauchi [Tue, 21 Jun 2016 03:23:34 +0000 (20:23 -0700)]
Gray only immune objects mutators access.

To reduce image/zygote dirty pages.

GC doesn't gray immune space objects except when visiting the thread
GC roots of suspended threads during the thread flip. GC updates the
fields of immune space objects without pushing/popping them through
the mark stack. GC sets a bool flag after updating the fields of
immune space objects. After this point, mutators don't need gray to
immune space objects. Removed the mark bitmaps for immune spaces.

Bug: 29516465
Bug: 12687968
Test: art tests, libartd device boot, ritzperf.
Change-Id: Idfcffbdb94dfc8bfc89c30d6aff8888f04990a56

8 years agoART: Disable no-prebuild test for run-test 608
Andreas Gampe [Mon, 27 Jun 2016 23:04:02 +0000 (23:04 +0000)]
ART: Disable no-prebuild test for run-test 608
am: 0748ed9fcf

Change-Id: Iadcc7929cc22f4f5b1425b76cd5908ffed010e9c

8 years agoMerge \\"ART: Disable no-prebuild test for run-test 608\\" am: 6023704356
Andreas Gampe [Mon, 27 Jun 2016 23:01:32 +0000 (23:01 +0000)]
Merge \\"ART: Disable no-prebuild test for run-test 608\\" am: 6023704356
am: 77b5f1872e

Change-Id: Ib68392eebfeef1d0454ac66a8076508c94c6c097

8 years agoMerge \"ART: Disable no-prebuild test for run-test 608\"
Andreas Gampe [Mon, 27 Jun 2016 22:58:49 +0000 (22:58 +0000)]
Merge \"ART: Disable no-prebuild test for run-test 608\"
am: 6023704356

Change-Id: I4bea5c202a2dbe53f2f8409876da6eff03e0c066

8 years agoDo not remove loads/store with unresolved accesses.
Nicolas Geoffray [Mon, 27 Jun 2016 22:58:49 +0000 (22:58 +0000)]
Do not remove loads/store with unresolved accesses.
am: c2f1735e04

Change-Id: Iec193d6177f3b7a6115e6828aa83c73d3593dfc7

8 years agoART: Disable no-prebuild test for run-test 608
Andreas Gampe [Mon, 27 Jun 2016 21:55:02 +0000 (14:55 -0700)]
ART: Disable no-prebuild test for run-test 608

This test relies on unresolved types, which is not the case in a
no-prebuild setting (as all parts will be on the classpath).

Bug: 29433999
Change-Id: I11b1c6b446905aacd7a520796d0b2217319cefc7
Test: m ART_TEST_RUN_TEST_NO_PREBUILD=true test-art-host-run-test
(cherry picked from commit 06b7c4de44979f1cb51707d2236142bc733ebf75)

8 years agoMerge "ART: Disable no-prebuild test for run-test 608"
Andreas Gampe [Mon, 27 Jun 2016 22:52:38 +0000 (22:52 +0000)]
Merge "ART: Disable no-prebuild test for run-test 608"

8 years agoMIPS32: Drop redundant moves in integer conversions
Alexey Frunze [Mon, 27 Jun 2016 22:20:11 +0000 (15:20 -0700)]
MIPS32: Drop redundant moves in integer conversions

Change-Id: I0e3f393d87538eb9e35b3012ea36e81c8b7a225e

8 years agoART: Disable no-prebuild test for run-test 608
Andreas Gampe [Mon, 27 Jun 2016 21:55:02 +0000 (14:55 -0700)]
ART: Disable no-prebuild test for run-test 608

This test relies on unresolved types, which is not the case in a
no-prebuild setting (as all parts will be on the classpath).

Bug: 29433999
Change-Id: I11b1c6b446905aacd7a520796d0b2217319cefc7
Test: m ART_TEST_RUN_TEST_NO_PREBUILD=true test-art-host-run-test

8 years agoDo not remove loads/store with unresolved accesses.
Nicolas Geoffray [Mon, 27 Jun 2016 09:03:29 +0000 (10:03 +0100)]
Do not remove loads/store with unresolved accesses.

Due to AOT and compiling classes that are not ready yet
(eg missing a super class), we need to be conservative when
accessing fields and can end up in a situation where the same
field can be resolved and unresolved within the same method
(because of inlining). Therefore, disable removing loads and
stores in a method when there are unresolved accesses.

bug:29433999

(cherry picked from commit b93a16517dce12b83e9d5d3b599446e25fcc157a)

Change-Id: I8fcfb52c584222474a8220eb16c6581350b702e0

8 years agoMerge \\"Do not remove loads/store with unresolved accesses.\\" am: 779743a90d
Nicolas Geoffray [Mon, 27 Jun 2016 18:50:37 +0000 (18:50 +0000)]
Merge \\"Do not remove loads/store with unresolved accesses.\\" am: 779743a90d
am: d8331886e6

Change-Id: I7160d5123c0da9a66db2cd1fba892ad9b5aebd4c

8 years agoMerge \"Do not remove loads/store with unresolved accesses.\"
Nicolas Geoffray [Mon, 27 Jun 2016 18:46:46 +0000 (18:46 +0000)]
Merge \"Do not remove loads/store with unresolved accesses.\"
am: 779743a90d

Change-Id: I4e0048ef5043e86cb5cced5c2af5db4a1c78eb58

8 years agoMerge "Do not remove loads/store with unresolved accesses."
Treehugger Robot [Mon, 27 Jun 2016 18:36:47 +0000 (18:36 +0000)]
Merge "Do not remove loads/store with unresolved accesses."

8 years agoDo not remove loads/store with unresolved accesses.
Nicolas Geoffray [Mon, 27 Jun 2016 09:03:29 +0000 (10:03 +0100)]
Do not remove loads/store with unresolved accesses.

Due to AOT and compiling classes that are not ready yet
(eg missing a super class), we need to be conservative when
accessing fields and can end up in a situation where the same
field can be resolved and unresolved within the same method
(because of inlining). Therefore, disable removing loads and
stores in a method when there are unresolved accesses.

bug:29433999

Change-Id: I8fcfb52c584222474a8220eb16c6581350b702e0

8 years agoClean up StringReferenceValueComparator and DexFile.
Vladimir Marko [Mon, 27 Jun 2016 12:50:16 +0000 (13:50 +0100)]
Clean up StringReferenceValueComparator and DexFile.

Add a helper function to StringReference, so that the
StringReferenceValueComparator doesn't need to repeatedly
reference the same StringReference variable which led to
the bug 29602109.

Also clean up the DexFile, moving definitions of functions
that depend on the dex_file-inl.h from dex_file.h also to
the dex_file-inl.h.

Test: Run standard ART test suite on host and Nexus 5.
Bug: 29602109
Change-Id: I83e2aa67173c62b3432c26478e528bbb53b6d09f

8 years agoOptimizing: Do not depend on sharpening in test 450
Goran Jakovljevic [Mon, 27 Jun 2016 12:12:48 +0000 (14:12 +0200)]
Optimizing: Do not depend on sharpening in test 450

The sharpening may or may not remove the ArtMethod*
parameter, so the test must not depend on its absence.
This fixes the test 450 checker test on mips/mips64.

Change-Id: Ie62c5a7da5994c3b0c6f0452c9abb37575216806

8 years agoMerge \\"Fixes and cleaning for test/458-checker-instruction-simplification.\\" am...
Roland Levillain [Mon, 27 Jun 2016 12:40:18 +0000 (12:40 +0000)]
Merge \\"Fixes and cleaning for test/458-checker-instruction-simplification.\\" am: 337fcb78e2
am: 887537bc3a

Change-Id: If55a6b9246f964f43e75263937feec0475f4c9e1

8 years agoMerge \"Fixes and cleaning for test/458-checker-instruction-simplification.\"
Alexandre Rames [Mon, 27 Jun 2016 12:36:56 +0000 (12:36 +0000)]
Merge \"Fixes and cleaning for test/458-checker-instruction-simplification.\"
am: 337fcb78e2

Change-Id: I8aa22fc03dd4586c63487c9839a36399b87d3ce7

8 years agoMerge "Fixes and cleaning for test/458-checker-instruction-simplification."
Roland Levillain [Mon, 27 Jun 2016 12:29:37 +0000 (12:29 +0000)]
Merge "Fixes and cleaning for test/458-checker-instruction-simplification."

8 years agoFix 004-ThreadStress.
Vladimir Marko [Tue, 21 Jun 2016 17:21:53 +0000 (18:21 +0100)]
Fix 004-ThreadStress.

Synchronize the start of performing the tasks after all
threads have been created and runners reported their start.
This prevents a daemon thread from allocating all memory
before the main thread tries to allocate the next daemon
thread, which is the likely culprit of failing to print any
output whatsoever (the main thread exits due to an uncaught
OOME and printing the message also fails due to OOME).

Instead of repeating attempts to print "Finishing worker"
until it succeeds, print the message through JNI which does
not require any Java heap memory. Similarly, print caught
Throwables through JNI. Also make sure to preallocate
Strings that are used once we start running tasks to avoid
const-string throwing OOME. This also prevents a partial
success followed by a retry; we have seen a failure to
print the EOL, yielding "Finishing workerFinishing worker".

Change the "Thread exited..." message to be printed only in
DEBUG mode and compare the full output, ignoring different
numbers as the "Starting worker for <id>" may be reordered.

Test: "make -j 32 test-art-host-run-test-004-ThreadStress"
    (4 configs: with or without gcstress, 32-bit and 64-bit)
    100 times while also keeping the machine under load with
    "make -j 32" to repeatedly build another full AOSP tree.
Bug: 27371304
Change-Id: I28286d70a08be64c36d0e49dd5558686813ff264

8 years agoFixes and cleaning for test/458-checker-instruction-simplification.
Alexandre Rames [Mon, 27 Jun 2016 10:13:34 +0000 (11:13 +0100)]
Fixes and cleaning for test/458-checker-instruction-simplification.

- Use the `doThrow` trick to defeat inlining.
- Fix the order of `expected` and `found` arguments for a few tests.

Change-Id: Id8e5041993d72f61e75b4586b49180006cda4b5c

8 years agoMerge \\"ART: OneBit intrinsics should use 1ULL for 64-bit shift\\" am: 1e28d1e145
Pavel Vyssotski [Fri, 24 Jun 2016 19:11:02 +0000 (19:11 +0000)]
Merge \\"ART: OneBit intrinsics should use 1ULL for 64-bit shift\\" am: 1e28d1e145
am: 90685485df

Change-Id: Ie3269e263cb146a655217e348ae1cd5e146c7a91

8 years agoMerge \\"Adjust ART tests expectations after libcore changes.\\" am: 7caad2a084
Roland Levillain [Fri, 24 Jun 2016 19:11:02 +0000 (19:11 +0000)]
Merge \\"Adjust ART tests expectations after libcore changes.\\" am: 7caad2a084
am: f44e3d662a

Change-Id: I7b28ce4b8111d19db941d9fdee349b09efde15ca

8 years agoMerge \"ART: OneBit intrinsics should use 1ULL for 64-bit shift\"
Pavel Vyssotski [Fri, 24 Jun 2016 19:08:35 +0000 (19:08 +0000)]
Merge \"ART: OneBit intrinsics should use 1ULL for 64-bit shift\"
am: 1e28d1e145

Change-Id: Ifca8f91f444537704477824a52ae50309db93858

8 years agoMerge \"Adjust ART tests expectations after libcore changes.\"
Roland Levillain [Fri, 24 Jun 2016 19:08:34 +0000 (19:08 +0000)]
Merge \"Adjust ART tests expectations after libcore changes.\"
am: 7caad2a084

Change-Id: I0c2666a36e76c6faccbf0fb265d198c8dd77f431

8 years agoMerge "ART: OneBit intrinsics should use 1ULL for 64-bit shift"
Treehugger Robot [Fri, 24 Jun 2016 18:58:53 +0000 (18:58 +0000)]
Merge "ART: OneBit intrinsics should use 1ULL for 64-bit shift"

8 years agoMerge "Adjust ART tests expectations after libcore changes."
Treehugger Robot [Fri, 24 Jun 2016 18:53:48 +0000 (18:53 +0000)]
Merge "Adjust ART tests expectations after libcore changes."

8 years agoAdjust ART tests expectations after libcore changes.
Roland Levillain [Fri, 24 Jun 2016 17:44:36 +0000 (18:44 +0100)]
Adjust ART tests expectations after libcore changes.

Test: test/100-reflect2, test/201-built-in-exception-detail-messages
Change-Id: I0c13e37973d0b954cbafa15b049cb8934b88ebe5

8 years agoMerge \\"Fix StringReferenceValueComparator.\\" am: 8543d324d1
Vladimir Marko [Fri, 24 Jun 2016 16:01:01 +0000 (16:01 +0000)]
Merge \\"Fix StringReferenceValueComparator.\\" am: 8543d324d1
am: 88ca66a386

Change-Id: I82d33dece4ea64aed7ce428200b9cf7658bfcf8d

8 years agoMerge \"Fix StringReferenceValueComparator.\"
Vladimir Marko [Fri, 24 Jun 2016 15:56:33 +0000 (15:56 +0000)]
Merge \"Fix StringReferenceValueComparator.\"
am: 8543d324d1

Change-Id: Ie45f9019bf8189029efc74d1a09dce5e62c923d4

8 years agoMerge "Fix StringReferenceValueComparator."
Vladimir Marko [Fri, 24 Jun 2016 15:48:31 +0000 (15:48 +0000)]
Merge "Fix StringReferenceValueComparator."

8 years agoFix StringReferenceValueComparator.
Vladimir Marko [Fri, 24 Jun 2016 10:56:59 +0000 (11:56 +0100)]
Fix StringReferenceValueComparator.

Test: Added a regression test in string_reference_test.cc,
run the standard ART test suite on host and Nexus 5.

Bug: 29602109
Change-Id: Idcc059a07df048a0e3ece257b16b6556f242243e

8 years agoMerge changes I4d8da7ce,I4da5be01,Idfbead82 am: 31167a5785
Roland Levillain [Fri, 24 Jun 2016 13:17:01 +0000 (13:17 +0000)]
Merge changes I4d8da7ce,I4da5be01,Idfbead82 am: 31167a5785
am: f7511ac497

Change-Id: I0bc49fd2385ef240f5fc477c01495148b4de319b

8 years agoMerge changes I4d8da7ce,I4da5be01,Idfbead82
Roland Levillain [Fri, 24 Jun 2016 13:12:47 +0000 (13:12 +0000)]
Merge changes I4d8da7ce,I4da5be01,Idfbead82
am: 31167a5785

Change-Id: Id0131ff628a47b611e39c026243cf5f11ce9bc49

8 years agoMerge changes I4d8da7ce,I4da5be01,Idfbead82
Roland Levillain [Fri, 24 Jun 2016 13:04:36 +0000 (13:04 +0000)]
Merge changes I4d8da7ce,I4da5be01,Idfbead82

* changes:
  Re-enable most intrinsics with read barriers.
  Fix ARM & ARM64 UnsafeGetObject intrinsics with read barriers.
  Fix x86 & x86-64 UnsafeGetObject intrinsics with read barriers.

8 years agoMerge \\"Track libcore change 694e617f54a7bfbdad24913ce96f5d56f1a1960a\\" am: bad21cb538
Przemyslaw Szczepaniak [Fri, 24 Jun 2016 11:33:14 +0000 (11:33 +0000)]
Merge \\"Track libcore change 694e617f54a7bfbdad24913ce96f5d56f1a1960a\\" am: bad21cb538
am: a5364b014b

Change-Id: I9a5755da3aba9b370b35bac17e184de58f7a27be