OSDN Git Service

android-x86/art.git
7 years agoMerge "Revert "Revert "Fix debugger calling new String().""" am: edbfb68895 am: cf205...
Jeff Hao [Thu, 25 Aug 2016 06:02:42 +0000 (06:02 +0000)]
Merge "Revert "Revert "Fix debugger calling new String().""" am: edbfb68895 am: cf20574ab0
am: a12d38d121

Change-Id: I5a3ffc0ef634293db66a74175307b0b362713fe0

7 years agoMerge "Revert "Revert "Fix debugger calling new String().""" am: edbfb68895
Jeff Hao [Thu, 25 Aug 2016 05:59:41 +0000 (05:59 +0000)]
Merge "Revert "Revert "Fix debugger calling new String().""" am: edbfb68895
am: cf20574ab0

Change-Id: I46ba5376de8b5bd2fc05a525d16fb58e333c65f1

7 years agoMerge "Revert "Revert "Fix debugger calling new String()."""
Jeff Hao [Thu, 25 Aug 2016 05:56:42 +0000 (05:56 +0000)]
Merge "Revert "Revert "Fix debugger calling new String()."""
am: edbfb68895

Change-Id: I5fda25dda83504316c8577826ddfbde853902ae3

7 years agoMerge "Revert "Revert "Fix debugger calling new String()."""
Treehugger Robot [Thu, 25 Aug 2016 05:51:36 +0000 (05:51 +0000)]
Merge "Revert "Revert "Fix debugger calling new String()."""

7 years agoRevert "Revert "Fix debugger calling new String().""
Jeff Hao [Thu, 25 Aug 2016 03:52:40 +0000 (03:52 +0000)]
Revert "Revert "Fix debugger calling new String().""

Bug: 30951794
Test: mm -j24 run-jdwp-tests-host

This reverts commit 6f48d4c72e7b4011a6d9652734bd1cb0c389790b.
This also includes the reversion of commit
528954f55e3173b02df2822c1fc680873d6a91c8.

Change-Id: If0b2ae39cb2a9db80b567bb8d5761d504433632d

7 years agoMerge "Revert "Convert libart and dependencies to Android.bp"" am: 2851ce0ca2 am...
Colin Cross [Thu, 25 Aug 2016 01:18:38 +0000 (01:18 +0000)]
Merge "Revert "Convert libart and dependencies to Android.bp"" am: 2851ce0ca2 am: 8f505123cf
am: 5b8ed18937

Change-Id: Ieb09a1b98a07f16f8e314d401e17a07b0d24e055

7 years agoMerge "Revert "Convert libart and dependencies to Android.bp"" am: 2851ce0ca2
Colin Cross [Thu, 25 Aug 2016 01:15:23 +0000 (01:15 +0000)]
Merge "Revert "Convert libart and dependencies to Android.bp"" am: 2851ce0ca2
am: 8f505123cf

Change-Id: I995edf661ea65cfc7745c97e0c853f4cd42983af

7 years agoMerge "Revert "Convert libart and dependencies to Android.bp""
Colin Cross [Thu, 25 Aug 2016 01:12:54 +0000 (01:12 +0000)]
Merge "Revert "Convert libart and dependencies to Android.bp""
am: 2851ce0ca2

Change-Id: I54900bb21d11e7d93be66790a6b3f13e96786c73

7 years agoMerge "Revert "Convert libart and dependencies to Android.bp""
Colin Cross [Thu, 25 Aug 2016 01:05:27 +0000 (01:05 +0000)]
Merge "Revert "Convert libart and dependencies to Android.bp""

7 years agoRevert "Convert libart and dependencies to Android.bp"
Colin Cross [Thu, 25 Aug 2016 01:03:42 +0000 (01:03 +0000)]
Revert "Convert libart and dependencies to Android.bp"

This reverts commit 4ea3a22f0ccfb0f746c63c274b2655545e759e1f.

Change-Id: I3ac4397b4d6be038e5b863b7a24231c0736e84f3

7 years agoMerge "Convert libart and dependencies to Android.bp" am: 8d0e8840df am: 392b2634a7
Colin Cross [Thu, 25 Aug 2016 00:44:53 +0000 (00:44 +0000)]
Merge "Convert libart and dependencies to Android.bp" am: 8d0e8840df am: 392b2634a7
am: 1000f149f5

Change-Id: Ifc54e71788d212c97c5645e2a2684871538ff145

7 years agoMerge "Convert libart and dependencies to Android.bp" am: 8d0e8840df
Colin Cross [Thu, 25 Aug 2016 00:41:51 +0000 (00:41 +0000)]
Merge "Convert libart and dependencies to Android.bp" am: 8d0e8840df
am: 392b2634a7

Change-Id: I4568ce87d8219e0b65bfbe15eccc8273dfc6280b

7 years agoMerge "Convert libart and dependencies to Android.bp"
Colin Cross [Thu, 25 Aug 2016 00:38:51 +0000 (00:38 +0000)]
Merge "Convert libart and dependencies to Android.bp"
am: 8d0e8840df

Change-Id: I95bac807d16a68d65cfd28ddaf932cc722dbb3e1

7 years agoMerge "Convert libart and dependencies to Android.bp"
Treehugger Robot [Thu, 25 Aug 2016 00:31:20 +0000 (00:31 +0000)]
Merge "Convert libart and dependencies to Android.bp"

7 years agoConvert libart and dependencies to Android.bp
Colin Cross [Wed, 27 Jul 2016 17:12:38 +0000 (10:12 -0700)]
Convert libart and dependencies to Android.bp

Test: mma -j, m -j test-art-host
Change-Id: I73839046a5a53eb34cd28eea53149911c568e411

7 years agoMerge "Avoid CAS for marking region space bitmap for baker" am: 770e31af96 am: 1fcc34f67f
Mathieu Chartier [Wed, 24 Aug 2016 22:05:09 +0000 (22:05 +0000)]
Merge "Avoid CAS for marking region space bitmap for baker" am: 770e31af96 am: 1fcc34f67f
am: d5d76fcc79

Change-Id: I4c75706b88f3757422a5ae16466d46968ddeb68a

7 years agoMerge "Avoid CAS for marking region space bitmap for baker" am: 770e31af96
Mathieu Chartier [Wed, 24 Aug 2016 22:02:35 +0000 (22:02 +0000)]
Merge "Avoid CAS for marking region space bitmap for baker" am: 770e31af96
am: 1fcc34f67f

Change-Id: I591120b18febd86f5c66b040cd02322c44f7fba0

7 years agoMerge "Avoid CAS for marking region space bitmap for baker"
Mathieu Chartier [Wed, 24 Aug 2016 21:59:36 +0000 (21:59 +0000)]
Merge "Avoid CAS for marking region space bitmap for baker"
am: 770e31af96

Change-Id: I050dd383e6bf5062c41021de6a667423037ce009

7 years agoMerge "Avoid CAS for marking region space bitmap for baker"
Treehugger Robot [Wed, 24 Aug 2016 21:53:50 +0000 (21:53 +0000)]
Merge "Avoid CAS for marking region space bitmap for baker"

7 years agoAvoid CAS for marking region space bitmap for baker
Mathieu Chartier [Tue, 23 Aug 2016 20:27:53 +0000 (13:27 -0700)]
Avoid CAS for marking region space bitmap for baker

Only have the GC thread mark it. This occurs when popping from the
mark stack. The race where an object may be pushed to the mark
stack twice is handled by not scanning if it is already marked.

Also avoid checking is_active when marking from the GC.

EAAC: 1263 -> 1253 (average of 30 runs)
GC time: 7.21s -> 6.83s (average of 18 runs)

Timings on 960 mhz N6P.

Bug: 12687968

Change-Id: I47e98c3e258829d2ba0babd803a219c82a36168c
Test: test-art-host, debug N6P booting with baker CC.

7 years agoMerge "ART: Remove vestiges of GCC" am: 8aea8dbca6 am: 897b8f5da9
Andreas Gampe [Wed, 24 Aug 2016 17:28:16 +0000 (17:28 +0000)]
Merge "ART: Remove vestiges of GCC" am: 8aea8dbca6 am: 897b8f5da9
am: 5775f988b0

Change-Id: I6a722e202cc6ab7b79486b6b42eb702a140b0bdd

7 years agoMerge "ART: Remove vestiges of GCC" am: 8aea8dbca6
Andreas Gampe [Wed, 24 Aug 2016 17:25:15 +0000 (17:25 +0000)]
Merge "ART: Remove vestiges of GCC" am: 8aea8dbca6
am: 897b8f5da9

Change-Id: I0120a0b4a5ab20e5b185171c2ca3dcb481dc6ad7

7 years agoMerge "ART: Remove vestiges of GCC"
Andreas Gampe [Wed, 24 Aug 2016 17:21:18 +0000 (17:21 +0000)]
Merge "ART: Remove vestiges of GCC"
am: 8aea8dbca6

Change-Id: I6bf7a971949ccbc0aa2d008a1264c7f3c880b9fb

7 years agoMerge "ART: Remove vestiges of GCC"
Treehugger Robot [Wed, 24 Aug 2016 17:09:42 +0000 (17:09 +0000)]
Merge "ART: Remove vestiges of GCC"

7 years agoRevert "Revert "Use try lock to fix class resolution race"" am: 23da026ec7
Mathieu Chartier [Wed, 24 Aug 2016 16:50:03 +0000 (16:50 +0000)]
Revert "Revert "Use try lock to fix class resolution race"" am: 23da026ec7
am: 4d6ad96cc0

Change-Id: I4e3d9b874d7eb3aef2bdbfc85ed8712601938519

7 years agoRevert "Use try lock to fix class resolution race" am: adc538a57a
Mathieu Chartier [Wed, 24 Aug 2016 16:49:43 +0000 (16:49 +0000)]
Revert "Use try lock to fix class resolution race" am: adc538a57a
am: 1f678c0b95  -s ours

Change-Id: Ieae39f6019669a0a5c17e2714261ab54a4e2aab6

7 years agoUse try lock to fix class resolution race am: 1386f8619b
Mathieu Chartier [Wed, 24 Aug 2016 16:44:12 +0000 (16:44 +0000)]
Use try lock to fix class resolution race am: 1386f8619b
am: 43f36646a9  -s ours

Change-Id: Ifd4182a3b0dd2f95edf0d745e7be9d7e390b93f6

7 years agoRevert "Revert "Use try lock to fix class resolution race""
Mathieu Chartier [Wed, 24 Aug 2016 16:36:42 +0000 (16:36 +0000)]
Revert "Revert "Use try lock to fix class resolution race""
am: 23da026ec7

Change-Id: Icc27f56679886cddbacdd2fcb198bdeeafdd1904

7 years agoRevert "Use try lock to fix class resolution race"
Mathieu Chartier [Wed, 24 Aug 2016 16:36:37 +0000 (16:36 +0000)]
Revert "Use try lock to fix class resolution race"
am: adc538a57a

Change-Id: I5dc4f5291800c124beed080e46bfee437b40669b

7 years agoUse try lock to fix class resolution race
Mathieu Chartier [Wed, 24 Aug 2016 16:36:32 +0000 (16:36 +0000)]
Use try lock to fix class resolution race
am: 1386f8619b

Change-Id: Ic196684640f2bad1b24837bdefd902305b4eb785

7 years agoMerge "Revert "Revert "x86/x86-64: Avoid temporary for read barrier field load."...
Vladimir Marko [Wed, 24 Aug 2016 14:03:35 +0000 (14:03 +0000)]
Merge "Revert "Revert "x86/x86-64: Avoid temporary for read barrier field load.""" am: 7c95b4e228 am: 95492ed21e
am: aa26911e4c

Change-Id: I885418a2c1c0956e3eae9280c9a39369e082f633

7 years agoMerge "Revert "Fix debugger calling new String()."" am: f91b5f3372 am: 431432dade
Nicolas Geoffray [Wed, 24 Aug 2016 14:03:34 +0000 (14:03 +0000)]
Merge "Revert "Fix debugger calling new String()."" am: f91b5f3372 am: 431432dade
am: f0cf72f7c9

Change-Id: I96f9b1f1f7fa6de618af1c423555a4f22c790e8b

7 years agoMerge "Revert "Fix debugger missing handle between adding and tagging object."" am...
Nicolas Geoffray [Wed, 24 Aug 2016 14:03:32 +0000 (14:03 +0000)]
Merge "Revert "Fix debugger missing handle between adding and tagging object."" am: 85f692bc43 am: 7c075399f1
am: 435a144c54

Change-Id: I7df4305556b4f9331e60d35c2dc70f423c9a1b0b

7 years agoMerge "Revert "Revert "x86/x86-64: Avoid temporary for read barrier field load."...
Vladimir Marko [Wed, 24 Aug 2016 14:01:06 +0000 (14:01 +0000)]
Merge "Revert "Revert "x86/x86-64: Avoid temporary for read barrier field load.""" am: 7c95b4e228
am: 95492ed21e

Change-Id: I75a889dfad9bd754a428c8813047aedffeab2474

7 years agoMerge "Revert "Fix debugger calling new String()."" am: f91b5f3372
Nicolas Geoffray [Wed, 24 Aug 2016 14:01:04 +0000 (14:01 +0000)]
Merge "Revert "Fix debugger calling new String()."" am: f91b5f3372
am: 431432dade

Change-Id: Ic040b381e7a031b1f5651b12fd8b96f9f1ebc958

7 years agoMerge "Revert "Fix debugger missing handle between adding and tagging object."" am...
Nicolas Geoffray [Wed, 24 Aug 2016 14:01:02 +0000 (14:01 +0000)]
Merge "Revert "Fix debugger missing handle between adding and tagging object."" am: 85f692bc43
am: 7c075399f1

Change-Id: Ideef0df1c6ff3fdc824d896a9a6f791d75736578

7 years agoMerge "Revert "Revert "x86/x86-64: Avoid temporary for read barrier field load."""
Vladimir Marko [Wed, 24 Aug 2016 13:56:50 +0000 (13:56 +0000)]
Merge "Revert "Revert "x86/x86-64: Avoid temporary for read barrier field load."""
am: 7c95b4e228

Change-Id: I190029aa010e53193f2212bd539462664bddbe4d

7 years agoMerge "Revert "Fix debugger calling new String().""
Nicolas Geoffray [Wed, 24 Aug 2016 13:56:33 +0000 (13:56 +0000)]
Merge "Revert "Fix debugger calling new String().""
am: f91b5f3372

Change-Id: Ie1103da43144d9bfadbd56dcb6f83b219ea0d012

7 years agoMerge "Revert "Fix debugger missing handle between adding and tagging object.""
Nicolas Geoffray [Wed, 24 Aug 2016 13:56:29 +0000 (13:56 +0000)]
Merge "Revert "Fix debugger missing handle between adding and tagging object.""
am: 85f692bc43

Change-Id: I25274033c55726076f6507b1a5405b847b675e88

7 years agoMerge "Revert "Revert "x86/x86-64: Avoid temporary for read barrier field load."""
Treehugger Robot [Wed, 24 Aug 2016 13:49:04 +0000 (13:49 +0000)]
Merge "Revert "Revert "x86/x86-64: Avoid temporary for read barrier field load."""

7 years agoMerge "Revert "Fix debugger calling new String().""
Nicolas Geoffray [Wed, 24 Aug 2016 13:48:47 +0000 (13:48 +0000)]
Merge "Revert "Fix debugger calling new String().""

7 years agoMerge "Revert "Fix debugger missing handle between adding and tagging object.""
Nicolas Geoffray [Wed, 24 Aug 2016 13:48:08 +0000 (13:48 +0000)]
Merge "Revert "Fix debugger missing handle between adding and tagging object.""

7 years agoRevert "Fix debugger missing handle between adding and tagging object."
Nicolas Geoffray [Wed, 24 Aug 2016 13:40:41 +0000 (13:40 +0000)]
Revert "Fix debugger missing handle between adding and tagging object."

Bug: 30951794

This reverts commit 9e0878494cdacd0877a1614041efc38ebb053017.

Change-Id: I3fe1c7e466ae25a81cd37ee5a4aacb40b55686a1

7 years agoRevert "Fix debugger calling new String()."
Nicolas Geoffray [Wed, 24 Aug 2016 13:39:08 +0000 (13:39 +0000)]
Revert "Fix debugger calling new String()."

Bug: 30951794

This reverts commit f15ec05896ddc5fec1f224ef97bdfebb72b5a855.

Change-Id: Ie7fc565159a19a19a269099f21db833d470aef7c

7 years agoMerge "Fix for package name test break in ART" am: 66e7ba24b7 am: e7af3cd604
Neil Fuller [Wed, 24 Aug 2016 13:28:29 +0000 (13:28 +0000)]
Merge "Fix for package name test break in ART" am: 66e7ba24b7 am: e7af3cd604
am: 12b5de59c0

Change-Id: I1eb5bdc1914efd3c50da404cfebd41c0ff3588bf

7 years agoMerge "Fix for package name test break in ART" am: 66e7ba24b7
Neil Fuller [Wed, 24 Aug 2016 13:25:29 +0000 (13:25 +0000)]
Merge "Fix for package name test break in ART" am: 66e7ba24b7
am: e7af3cd604

Change-Id: I9eb2c4e7e185f6468d06d7d6d4bc363b42a283ca

7 years agoMerge "Fix for package name test break in ART"
Neil Fuller [Wed, 24 Aug 2016 13:23:27 +0000 (13:23 +0000)]
Merge "Fix for package name test break in ART"
am: 66e7ba24b7

Change-Id: I2e68378a2be69da62a717026515b6fbc5cfab615

7 years agoMerge "Fix for package name test break in ART"
Neil Fuller [Wed, 24 Aug 2016 13:14:19 +0000 (13:14 +0000)]
Merge "Fix for package name test break in ART"

7 years agoFix for package name test break in ART
Neil Fuller [Wed, 24 Aug 2016 12:57:23 +0000 (13:57 +0100)]
Fix for package name test break in ART

Modifying the hard-coded string in test 031.

Bug: 28131225
Test: run-test --host 031-class-attributes
Change-Id: Ifffaebd5b8595075fcde295a6e3921af99871f9d

7 years agoRevert "Revert "x86/x86-64: Avoid temporary for read barrier field load.""
Vladimir Marko [Wed, 24 Aug 2016 08:30:46 +0000 (08:30 +0000)]
Revert "Revert "x86/x86-64: Avoid temporary for read barrier field load.""

Fixed the fault handler recognizing the TEST instruction and
fault address within the lock word. Added tests to 439-npe.

Bug: 29966877
Bug: 12687968
Test: Tested with ART_USE_READ_BARRIER=true on host.
Test: Tested with ART_USE_READ_BARRIER=true ART_HEAP_POISONING=true on host.

This reverts commit ccf15bca330f9a23337b1a4b5850f7fcc6c1bf15.

Change-Id: I8990def5f719c9205bf6e5fdba32027fa82bec50

7 years agoMerge "ART: unblock compiler tests on MIPS" am: c31ba109d5 am: dcb970b788
Alexey Frunze [Wed, 24 Aug 2016 10:16:16 +0000 (10:16 +0000)]
Merge "ART: unblock compiler tests on MIPS" am: c31ba109d5 am: dcb970b788
am: b16e5e554c

Change-Id: Idaf5b944b5764d91b1f08a29f2169c135cac0576

7 years agoMerge "ART: unblock compiler tests on MIPS" am: c31ba109d5
Alexey Frunze [Wed, 24 Aug 2016 10:13:46 +0000 (10:13 +0000)]
Merge "ART: unblock compiler tests on MIPS" am: c31ba109d5
am: dcb970b788

Change-Id: I15fcf33bcd15d79babad9b5519877aacaebf5658

7 years agoMerge "ART: unblock compiler tests on MIPS"
Alexey Frunze [Wed, 24 Aug 2016 10:11:43 +0000 (10:11 +0000)]
Merge "ART: unblock compiler tests on MIPS"
am: c31ba109d5

Change-Id: I72ec401ed09c411c3933137a901a9aa24ca3c730

7 years agoMerge "ART: unblock compiler tests on MIPS"
Treehugger Robot [Wed, 24 Aug 2016 09:58:59 +0000 (09:58 +0000)]
Merge "ART: unblock compiler tests on MIPS"

7 years agoART: unblock compiler tests on MIPS
Alexey Frunze [Wed, 24 Aug 2016 06:42:54 +0000 (23:42 -0700)]
ART: unblock compiler tests on MIPS

The DCHECK() that's removed here causes most of compiler tests to
fail on MIPS. The issue is introduced with the recent changes in
the string dex cache.

Test: booted MIPS32 in QEMU
Test: test-art-target-run-test-optimizing on CI20

Change-Id: I7fd45fa0b6d64fbc553f6aeaa6dac7345c885fe4

7 years agoMerge "ART: Remove -std=gnu++11" am: c67d22ac6d am: b1da09c40b
Andreas Gampe [Wed, 24 Aug 2016 05:17:27 +0000 (05:17 +0000)]
Merge "ART: Remove -std=gnu++11" am: c67d22ac6d am: b1da09c40b
am: d9733a9a67

Change-Id: Ic7e7b9068b5c7df951132f5fb5472918661dd1ce

7 years agoMerge "ART: Remove -std=gnu++11" am: c67d22ac6d
Andreas Gampe [Wed, 24 Aug 2016 05:14:57 +0000 (05:14 +0000)]
Merge "ART: Remove -std=gnu++11" am: c67d22ac6d
am: b1da09c40b

Change-Id: I681c0336bd30c2086f6be5c91b9eaa3d33fc4503

7 years agoMerge "ART: Remove -std=gnu++11"
Andreas Gampe [Wed, 24 Aug 2016 05:10:23 +0000 (05:10 +0000)]
Merge "ART: Remove -std=gnu++11"
am: c67d22ac6d

Change-Id: I2f25500995f5338ffaa593afc1f278bdcf0305b9

7 years agoMerge "ART: Remove -std=gnu++11"
Treehugger Robot [Wed, 24 Aug 2016 05:04:32 +0000 (05:04 +0000)]
Merge "ART: Remove -std=gnu++11"

7 years agoART: Remove -std=gnu++11
Andreas Gampe [Wed, 24 Aug 2016 03:24:11 +0000 (20:24 -0700)]
ART: Remove -std=gnu++11

We no longer have to restrict ourselves, with GCC gone. Pick up
the default from the build system (which is at least as good).

Change-Id: I98b4a82944b7e16a80fbeac1d43c9e7ed0d17a6a
Test: m test-art-host

7 years agoMerge "Revert "Make dchecked_vector C++11 compatible."" am: 9f98286cf2 am: 285b2b6998
Andreas Gampe [Wed, 24 Aug 2016 03:14:20 +0000 (03:14 +0000)]
Merge "Revert "Make dchecked_vector C++11 compatible."" am: 9f98286cf2 am: 285b2b6998
am: c55d1aec1f

Change-Id: I59ab9a16478eb5ccb534fffcfe42fe2a7d697814

7 years agoMerge "ART: Improve art_quick_resolve_string for x86." am: 2ccdfbbf78 am: c5817d4703
Christina Wadsworth [Wed, 24 Aug 2016 03:14:19 +0000 (03:14 +0000)]
Merge "ART: Improve art_quick_resolve_string for x86." am: 2ccdfbbf78 am: c5817d4703
am: ea71105ea3

Change-Id: I3f9a20c5ec71c7af533c169b254c8e07fabfa745

7 years agoMerge "Revert "Make dchecked_vector C++11 compatible."" am: 9f98286cf2
Andreas Gampe [Wed, 24 Aug 2016 03:11:20 +0000 (03:11 +0000)]
Merge "Revert "Make dchecked_vector C++11 compatible."" am: 9f98286cf2
am: 285b2b6998

Change-Id: I9f42b3d3731a6754d8991ababe8aa634efd0a578

7 years agoMerge "ART: Improve art_quick_resolve_string for x86." am: 2ccdfbbf78
Christina Wadsworth [Wed, 24 Aug 2016 03:11:20 +0000 (03:11 +0000)]
Merge "ART: Improve art_quick_resolve_string for x86." am: 2ccdfbbf78
am: c5817d4703

Change-Id: I5353b748733a722538f739f1b036fe6d1fb09fb2

7 years agoMerge "Revert "Make dchecked_vector C++11 compatible.""
Andreas Gampe [Wed, 24 Aug 2016 03:07:22 +0000 (03:07 +0000)]
Merge "Revert "Make dchecked_vector C++11 compatible.""
am: 9f98286cf2

Change-Id: I949f452b4958e7a7d731746fb87f29dacd257cbb

7 years agoMerge "ART: Improve art_quick_resolve_string for x86."
Christina Wadsworth [Wed, 24 Aug 2016 03:07:18 +0000 (03:07 +0000)]
Merge "ART: Improve art_quick_resolve_string for x86."
am: 2ccdfbbf78

Change-Id: If03a4d9a70b55794a50e4348e4bb50f90f6f13cd

7 years agoMerge "Revert "Make dchecked_vector C++11 compatible.""
Treehugger Robot [Wed, 24 Aug 2016 03:01:49 +0000 (03:01 +0000)]
Merge "Revert "Make dchecked_vector C++11 compatible.""

7 years agoMerge "ART: Improve art_quick_resolve_string for x86."
Treehugger Robot [Wed, 24 Aug 2016 02:57:47 +0000 (02:57 +0000)]
Merge "ART: Improve art_quick_resolve_string for x86."

7 years agoMerge "ART: Improve art_quick_resolve_string for x86_64." am: 47ec97259f am: c92baefd48
Christina Wadsworth [Wed, 24 Aug 2016 01:39:12 +0000 (01:39 +0000)]
Merge "ART: Improve art_quick_resolve_string for x86_64." am: 47ec97259f am: c92baefd48
am: 5ba6cfe46c

Change-Id: Ib808859912e344606129bf18da7b54077ac378ff

7 years agoMerge "ART: Improve art_quick_resolve_string for x86_64." am: 47ec97259f
Christina Wadsworth [Wed, 24 Aug 2016 01:35:42 +0000 (01:35 +0000)]
Merge "ART: Improve art_quick_resolve_string for x86_64." am: 47ec97259f
am: c92baefd48

Change-Id: I36f2e819947cfd616d22145e945ac2b8a4c19fcc

7 years agoMerge "ART: Improve art_quick_resolve_string for x86_64."
Christina Wadsworth [Wed, 24 Aug 2016 01:31:38 +0000 (01:31 +0000)]
Merge "ART: Improve art_quick_resolve_string for x86_64."
am: 47ec97259f

Change-Id: I6326ea542984ad7d5f93d4eaadef3793f07ac87a

7 years agoRevert "Make dchecked_vector C++11 compatible."
Andreas Gampe [Wed, 24 Aug 2016 01:24:51 +0000 (01:24 +0000)]
Revert "Make dchecked_vector C++11 compatible."

We no longer support GCC in ART.

This reverts commit 05ff5a4ad666d9eb583ff343c1cbba886d7621b1.

Bug: 25022512
Change-Id: Ie0aee5ce3f8b5bb5023fba90c39d96ae01e3e256
Test: m test-art-host

7 years agoMerge "ART: Improve art_quick_resolve_string for x86_64."
Treehugger Robot [Wed, 24 Aug 2016 01:22:01 +0000 (01:22 +0000)]
Merge "ART: Improve art_quick_resolve_string for x86_64."

7 years agoART: Remove vestiges of GCC
Andreas Gampe [Wed, 24 Aug 2016 00:35:19 +0000 (17:35 -0700)]
ART: Remove vestiges of GCC

We no longer support GCC.

Change-Id: I869ac6e5dcb166747e45236a0d313c7672bbf2de
Test: m test-art-host

7 years agoRevert "Revert "Use try lock to fix class resolution race""
Mathieu Chartier [Fri, 29 Jul 2016 23:26:01 +0000 (16:26 -0700)]
Revert "Revert "Use try lock to fix class resolution race""

Fix possible deadlock in EnsureResolved caused by interaction with
GC. Since we were sleeping while holding the mutator lock, it could
block thread suspension. This would deadlock if the thread that
had locked h_class is already suspended since we would spin forever
and not make progress.

Bug: 27417671
Bug: 30500547

Test: test-art-host ART_TEST_GC_STRESS=true

This reverts commit 69bf969c055c31a75d17ea92aeee756042678114.

(cherry picked from commit 4b0ef1c980a1f3b0201d77e33bdb2f7df12c9114)

Change-Id: If5766c2c3c8a130cbb83735cdb9970038570dafd

7 years agoRevert "Use try lock to fix class resolution race"
Mathieu Chartier [Fri, 29 Jul 2016 20:06:45 +0000 (20:06 +0000)]
Revert "Use try lock to fix class resolution race"

This reverts commit a704eda0078989a73cac111ed309aca50d2e289b.

Bug: 27417671
Bug: 30500547

(cherry picked from commit 69bf969c055c31a75d17ea92aeee756042678114)

Change-Id: I4354d1c9f1c554f054e99efd7aa52d8a2c5d402c

7 years agoUse try lock to fix class resolution race
Mathieu Chartier [Wed, 13 Jul 2016 16:53:35 +0000 (09:53 -0700)]
Use try lock to fix class resolution race

There was some possible deadlocks related to EnsureResolved caused by
acquiring an object lock.

Scenario:
Thread 1 acquires lock on obj1
Thread 1 begins to resolve / initialize class1
Thread 1 blocks since it sees that class1 is already being resolved and
gets preempted before it can acquire the object lock on class1
Thread 2 finishes resolving and initializing class1 and locks class1
Thread 2 blocks attempting to lock obj1
Thread 1 blocks attempting to lock class1
Deadlock

Fixed the deadlock by changing EnsureResolved to use a try lock for the
unresolved case.

Added a test.

Test: Device boot, test-art-host, monitor_test

Bug: 27417671

(cherry picked from commit a704eda0078989a73cac111ed309aca50d2e289b)

Change-Id: I1150b19bdc1a5cc87ae95eda4f2b6b4bca215a60

7 years agoMerge "creating workflow for mirror::String compression" am: 51a0c4fe2d am: ade3a384cc
jessicahandojo [Wed, 24 Aug 2016 01:03:43 +0000 (01:03 +0000)]
Merge "creating workflow for mirror::String compression" am: 51a0c4fe2d am: ade3a384cc
am: e182aa3843

Change-Id: Ie5235345968fd432471743d42d78c841558565fd

7 years agoMerge "creating workflow for mirror::String compression" am: 51a0c4fe2d
jessicahandojo [Wed, 24 Aug 2016 01:00:43 +0000 (01:00 +0000)]
Merge "creating workflow for mirror::String compression" am: 51a0c4fe2d
am: ade3a384cc

Change-Id: I3f2a52671a0862a65c4e72c93164c81aab9cc340

7 years agoMerge "creating workflow for mirror::String compression"
jessicahandojo [Wed, 24 Aug 2016 00:56:11 +0000 (00:56 +0000)]
Merge "creating workflow for mirror::String compression"
am: 51a0c4fe2d

Change-Id: I55512bf99146756d18733c75972362dc1bb6ad0c

7 years agoMerge "creating workflow for mirror::String compression"
Treehugger Robot [Wed, 24 Aug 2016 00:50:38 +0000 (00:50 +0000)]
Merge "creating workflow for mirror::String compression"

7 years agoMerge "ART: Validate oat file for cache-only images" am: e99331f7a4 am: f47f9574b8
Andreas Gampe [Wed, 24 Aug 2016 00:11:06 +0000 (00:11 +0000)]
Merge "ART: Validate oat file for cache-only images" am: e99331f7a4 am: f47f9574b8
am: 1ea537f405

Change-Id: I8f557e1065eebf30918f1e47a8e6db2d42472abe

7 years agoMerge "ART: Validate oat file for cache-only images" am: e99331f7a4
Andreas Gampe [Wed, 24 Aug 2016 00:08:06 +0000 (00:08 +0000)]
Merge "ART: Validate oat file for cache-only images" am: e99331f7a4
am: f47f9574b8

Change-Id: I44a0f0eaa8e006d174a38346121470cf74d980ed

7 years agoMerge "ART: Validate oat file for cache-only images"
Andreas Gampe [Wed, 24 Aug 2016 00:05:48 +0000 (00:05 +0000)]
Merge "ART: Validate oat file for cache-only images"
am: e99331f7a4

Change-Id: I53696ee4ad5b600688ee6f9666aed40047e60f8f

7 years agoMerge "ART: Validate oat file for cache-only images"
Treehugger Robot [Tue, 23 Aug 2016 23:55:41 +0000 (23:55 +0000)]
Merge "ART: Validate oat file for cache-only images"

7 years agoART: Improve art_quick_resolve_string for x86.
Christina Wadsworth [Tue, 23 Aug 2016 21:13:43 +0000 (14:13 -0700)]
ART: Improve art_quick_resolve_string for x86.

Check gc_is_marking instead of the mark bit first, this makes it that we
don't go slow path if the GC is not running.

Test: test-art-host

Bug: 20323084
Change-Id: I8ae37cf17db266462688c1b1c3a904ba740d769c

7 years agoMerge "ART: Improve art_quick_resolve_string for arm." am: 6fe5941077 am: cd5e6d18eb
Christina Wadsworth [Tue, 23 Aug 2016 23:30:04 +0000 (23:30 +0000)]
Merge "ART: Improve art_quick_resolve_string for arm." am: 6fe5941077 am: cd5e6d18eb
am: 6dfe5276c9

Change-Id: Ief2fd3b2e63c578dfd7e3707588f77b02694215e

7 years agoMerge "ART: Improve art_quick_resolve_string for arm." am: 6fe5941077
Christina Wadsworth [Tue, 23 Aug 2016 23:27:33 +0000 (23:27 +0000)]
Merge "ART: Improve art_quick_resolve_string for arm." am: 6fe5941077
am: cd5e6d18eb

Change-Id: I2de5fdda11881736145c18ef97def665592e45e5

7 years agoMerge "ART: Improve art_quick_resolve_string for arm."
Christina Wadsworth [Tue, 23 Aug 2016 23:24:32 +0000 (23:24 +0000)]
Merge "ART: Improve art_quick_resolve_string for arm."
am: 6fe5941077

Change-Id: I450903c4b8f20498c2a6a81937afedfda5f5db1d

7 years agoMerge "ART: Improve art_quick_resolve_string for arm."
Treehugger Robot [Tue, 23 Aug 2016 23:07:36 +0000 (23:07 +0000)]
Merge "ART: Improve art_quick_resolve_string for arm."

7 years agoART: Improve art_quick_resolve_string for x86_64.
Christina Wadsworth [Tue, 23 Aug 2016 00:33:59 +0000 (17:33 -0700)]
ART: Improve art_quick_resolve_string for x86_64.

Check gc_is_marking instead of the mark bit first, this makes it that we
don't go slow path if the GC is not running.

Test: test-art-host

Bug: 20323084
Change-Id: I5394dee49f721536857552fbc3e15d80a71213f4

7 years agocreating workflow for mirror::String compression
jessicahandojo [Fri, 29 Jul 2016 21:46:37 +0000 (14:46 -0700)]
creating workflow for mirror::String compression

All-ASCII String characters are stored in 8-bit blocks
instead of 16-bit. The compression has not taken place, but all
workflow are in the code already (changing kUseStringCompression in
string.h file to TRUE will enable the feature)

Notes: Feature works on interpreter only without optimizing

Test art: m ART_TEST_INTERPRETER=true ART_TEST_OPTIMIZING=false
          test-art-host

Also tested with String tests from libcore/:
1. libcore.java.lang.StringTest
2. libcore.java.lang.StringBufferTest
3. libcore.java.lang.StringBuilderTest
4. libcore.java.lang.OldStringTest
5. libcore.java.lang.OldStringBufferTest

Memory improvement is 33% (from 6.03% to 4.03%, total String memory
from all apps per total memory of all apps) measured on Angler
with Hprof tools

Bug: 31040547
Change-Id: I9cc92c265ebf1305fc06b5fc33efd83797660cce

7 years agoMerge "ART: Separate out Realloc reuse and alignment tests" am: 8bd13610ca am: baef02b4d9
Andreas Gampe [Tue, 23 Aug 2016 21:40:55 +0000 (21:40 +0000)]
Merge "ART: Separate out Realloc reuse and alignment tests" am: 8bd13610ca am: baef02b4d9
am: 72e17a2078

Change-Id: I3ce7b76e487fb929bf4ed49e4b0c27e140e0a9b6

7 years agoMerge "ART: Separate out Realloc reuse and alignment tests" am: 8bd13610ca
Andreas Gampe [Tue, 23 Aug 2016 21:38:25 +0000 (21:38 +0000)]
Merge "ART: Separate out Realloc reuse and alignment tests" am: 8bd13610ca
am: baef02b4d9

Change-Id: I4e29f3fd18f5c816c44288c07dc4d66917a7cde0

7 years agoMerge "ART: Separate out Realloc reuse and alignment tests"
Andreas Gampe [Tue, 23 Aug 2016 21:35:55 +0000 (21:35 +0000)]
Merge "ART: Separate out Realloc reuse and alignment tests"
am: 8bd13610ca

Change-Id: I8e38ef572c5d5c48e08250055e7f6224511268af

7 years agoMerge "ART: Separate out Realloc reuse and alignment tests"
Treehugger Robot [Tue, 23 Aug 2016 21:21:00 +0000 (21:21 +0000)]
Merge "ART: Separate out Realloc reuse and alignment tests"

7 years agoMerge "Ongoing improvements in java fuzz testing" am: ebb5d0f3bc am: e98546d04c
Aart Bik [Tue, 23 Aug 2016 18:50:26 +0000 (18:50 +0000)]
Merge "Ongoing improvements in java fuzz testing" am: ebb5d0f3bc am: e98546d04c
am: f16198c0cd

Change-Id: I3e555bb3c063f36f9ab4010c18a8077e2e8a5fe8

7 years agoMerge "Ongoing improvements in java fuzz testing" am: ebb5d0f3bc
Aart Bik [Tue, 23 Aug 2016 18:46:57 +0000 (18:46 +0000)]
Merge "Ongoing improvements in java fuzz testing" am: ebb5d0f3bc
am: e98546d04c

Change-Id: I51a24c4c4a5fced79092b7e9f22c78755ff81285

7 years agoMerge "Revert "Save environment snapshot and use at fork/exec"" into nyc-mr1-dev...
David Sehr [Tue, 23 Aug 2016 18:42:51 +0000 (18:42 +0000)]
Merge "Revert "Save environment snapshot and use at fork/exec"" into nyc-mr1-dev am: 7ae0862d40
am: a0168cb803

Change-Id: I3a8944f793ca7ef75178b4194620c5146480a186

7 years agoMerge "Ongoing improvements in java fuzz testing"
Aart Bik [Tue, 23 Aug 2016 18:41:13 +0000 (18:41 +0000)]
Merge "Ongoing improvements in java fuzz testing"
am: ebb5d0f3bc

Change-Id: I93c227e2b33cea9d58647dd97754459be8152422