OSDN Git Service

android-x86/art.git
8 years agoMerge "Improve gethostbyname_r use in art::JDWP::JdwpSocketState::Establish."
Roland Levillain [Tue, 26 Jan 2016 10:05:29 +0000 (10:05 +0000)]
Merge "Improve gethostbyname_r use in art::JDWP::JdwpSocketState::Establish."

8 years agoMerge "Reduce app image log spam"
Mathieu Chartier [Tue, 26 Jan 2016 04:32:06 +0000 (04:32 +0000)]
Merge "Reduce app image log spam"

8 years agoReduce app image log spam
Mathieu Chartier [Tue, 26 Jan 2016 04:11:28 +0000 (20:11 -0800)]
Reduce app image log spam

Change to VLOG or file exists.

Bug: 26782386
Bug: 22858531
Change-Id: Ic73d110d44216c2846e4ea789070bea2af8043a3

8 years agoMerge "Revert "Revert "Load app images"""
Mathieu Chartier [Mon, 25 Jan 2016 22:29:54 +0000 (22:29 +0000)]
Merge "Revert "Revert "Load app images"""

8 years agoRevert "Revert "Load app images""
Mathieu Chartier [Sun, 24 Jan 2016 19:59:56 +0000 (11:59 -0800)]
Revert "Revert "Load app images""

This reverts commit 1bc977cf2f8199311a97f2ba9431a184540e3e9c.

Bug: 22858531

Change-Id: Ide00bf3a73a02cba3bb364177204ad1b13f70295

8 years agoMerge "Only create non-moving space at fixed address if zygote"
Mathieu Chartier [Mon, 25 Jan 2016 21:07:07 +0000 (21:07 +0000)]
Merge "Only create non-moving space at fixed address if zygote"

8 years agoOnly create non-moving space at fixed address if zygote
Mathieu Chartier [Mon, 25 Jan 2016 20:53:03 +0000 (12:53 -0800)]
Only create non-moving space at fixed address if zygote

Pulled from app image CL, hopefully fixes dex2oat asan failure.

Change-Id: I022f7509b534679e5a4ef99ec7a0c622472cf740

8 years agoImprove gethostbyname_r use in art::JDWP::JdwpSocketState::Establish.
Roland Levillain [Mon, 25 Jan 2016 19:17:14 +0000 (19:17 +0000)]
Improve gethostbyname_r use in art::JDWP::JdwpSocketState::Establish.

Try a range of values for the work buffer size, instead of
using a fixed size.

Also, turn a couple of constants defined as macros into
constexprs.

Change-Id: I2354bfb51935bb0cad775c13d6cae06902b4a934

8 years agoMerge "Use dlmalloc from external/dlmalloc instead of bionic/."
Josh Gao [Mon, 25 Jan 2016 18:42:55 +0000 (18:42 +0000)]
Merge "Use dlmalloc from external/dlmalloc instead of bionic/."

8 years agoMerge "Revert "Add option to generate compressed backtrace info.""
David Srbecky [Mon, 25 Jan 2016 17:32:28 +0000 (17:32 +0000)]
Merge "Revert "Add option to generate compressed backtrace info.""

8 years agoRevert "Add option to generate compressed backtrace info."
David Srbecky [Mon, 25 Jan 2016 17:31:49 +0000 (17:31 +0000)]
Revert "Add option to generate compressed backtrace info."

This reverts commit 5fdcc3c931b70204fd8c491afa66f57f8428490f.

Change-Id: I9c1f5aad6933a46af6717e3a90a51f76111f9c8a

8 years agoMerge "Fix MIPS64 booting problem"
Vladimir Marko [Mon, 25 Jan 2016 15:39:05 +0000 (15:39 +0000)]
Merge "Fix MIPS64 booting problem"

8 years agoMerge "Add option to generate compressed backtrace info."
David Srbecky [Mon, 25 Jan 2016 13:33:52 +0000 (13:33 +0000)]
Merge "Add option to generate compressed backtrace info."

8 years agoMerge "Revert "Optimizing: double-negated bitwise operations simplifications""
Nicolas Geoffray [Mon, 25 Jan 2016 10:18:17 +0000 (10:18 +0000)]
Merge "Revert "Optimizing: double-negated bitwise operations simplifications""

8 years agoRevert "Optimizing: double-negated bitwise operations simplifications"
Nicolas Geoffray [Mon, 25 Jan 2016 10:17:57 +0000 (10:17 +0000)]
Revert "Optimizing: double-negated bitwise operations simplifications"

Fails compiling the Wallet.apk with:

dex2oatd F 40736 41007 art/compiler/optimizing/optimizing_compiler.cc:194] Error after instruction_simplifier: art::SSAChecker: Instruction Add:59 in block 4 does not dominate use Or:153 in block 4.

This reverts commit 96798493170521691d709be50dd2102ead47b083.

Change-Id: Ia4b02e62e6133aa104f5db12ba82d5561b6fc090

8 years agoMerge "Revert "X86: Use the constant area for more operations.""
Nicolas Geoffray [Mon, 25 Jan 2016 09:44:00 +0000 (09:44 +0000)]
Merge "Revert "X86: Use the constant area for more operations.""

8 years agoRevert "X86: Use the constant area for more operations."
Nicolas Geoffray [Mon, 25 Jan 2016 09:43:30 +0000 (09:43 +0000)]
Revert "X86: Use the constant area for more operations."

Hits a DCHECK:

dex2oatd F 19461 20411 art/compiler/optimizing/pc_relative_fixups_x86.cc:196] Check failed: !invoke_static_or_direct->HasCurrentMethodInput()

This reverts commit dc00454f0b9a134f01f79b419200f4044c2af5c6.

Change-Id: Idfcacf12eb9e1dd7e68d95e880fda0f76f90e9ed

8 years agoMerge "Optimizing: double-negated bitwise operations simplifications"
Nicolas Geoffray [Mon, 25 Jan 2016 09:11:39 +0000 (09:11 +0000)]
Merge "Optimizing: double-negated bitwise operations simplifications"

8 years agoMerge "X86: Use the constant area for more operations."
Nicolas Geoffray [Mon, 25 Jan 2016 08:45:40 +0000 (08:45 +0000)]
Merge "X86: Use the constant area for more operations."

8 years agoMerge "Revert "Load app images""
Nicolas Geoffray [Sat, 23 Jan 2016 14:16:58 +0000 (14:16 +0000)]
Merge "Revert "Load app images""

8 years agoRevert "Load app images"
Nicolas Geoffray [Sat, 23 Jan 2016 14:15:49 +0000 (14:15 +0000)]
Revert "Load app images"

Fails when a method is duplicated (see test 097-duplicate-method)

Bug: 22858531

This reverts commit f7fd970244f143b1abb956e29794c446e4d57f46.

Change-Id: Ib30ae5be00cc568e799290be6b3c8f29cbbe4c20

8 years agoMerge "Disable the CC collector verbose log."
Hiroshi Yamauchi [Sat, 23 Jan 2016 01:26:23 +0000 (01:26 +0000)]
Merge "Disable the CC collector verbose log."

8 years agoMerge "Temporarily disable some libcore tests for the CC collector."
Hiroshi Yamauchi [Sat, 23 Jan 2016 01:26:12 +0000 (01:26 +0000)]
Merge "Temporarily disable some libcore tests for the CC collector."

8 years agoDisable the CC collector verbose log.
Hiroshi Yamauchi [Sat, 23 Jan 2016 00:26:50 +0000 (16:26 -0800)]
Disable the CC collector verbose log.

To reduce the amount of buildbot libcore test logs.

Bug: 12687968
Change-Id: Idadca6622c745ef12629ccb26dcbdc9ebc379a00

8 years agoTemporarily disable some libcore tests for the CC collector.
Hiroshi Yamauchi [Sat, 23 Jan 2016 00:18:21 +0000 (16:18 -0800)]
Temporarily disable some libcore tests for the CC collector.

Bug: 26711853
Bug: 12687968
Change-Id: Id791ac14afd7aff74f92aff88adefe4dcad7a20f

8 years agoMerge "Bump image version"
Mathieu Chartier [Fri, 22 Jan 2016 23:24:19 +0000 (23:24 +0000)]
Merge "Bump image version"

8 years agoBump image version
Mathieu Chartier [Fri, 22 Jan 2016 23:20:23 +0000 (15:20 -0800)]
Bump image version

Version bump in previous CL was rebased out.

Change-Id: Ifcd76b852716cc2a6c08287e83b9861621df7605

8 years agoMerge "Load app images"
Mathieu Chartier [Fri, 22 Jan 2016 23:18:18 +0000 (23:18 +0000)]
Merge "Load app images"

8 years agoLoad app images
Mathieu Chartier [Mon, 9 Nov 2015 19:16:49 +0000 (11:16 -0800)]
Load app images

Support in-place patching of the app image based on boot image
location and app oat location. Only loads for art run test so far
since we do not automatically generate app images for app installs.

N5 maps launch time (~200 runs):
Before: 930ms
After: 878.18ms
After + image class table: 864.57ms

TODO:
Oatdump support.
Store class loaders as class roots in image.

Bug: 22858531

Change-Id: I9cbc645645e62ea2ed1ad8e139e91af7d88514c1

8 years agoX86: Use the constant area for more operations.
Mark Mendell [Fri, 30 Oct 2015 13:45:03 +0000 (09:45 -0400)]
X86: Use the constant area for more operations.

Allow FP HNeg to use the constant area to hold the constant to flip the
sign bit.

Enhance some math intrinsics to allow the use of the constant
area: Abs{Float,Double}, {Min,Max}{FloatFloat,DoubleDouble}.

Allow compares of floats/doubles to constants using the constant area.

These eliminate almost all uses of loading constants from the stack.

Change-Id: Ic4b831565825cbe9f0801b1b53c1013be7c87ae4
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
8 years agoMerge "Raise ulimit for run-test 961."
Alex Light [Fri, 22 Jan 2016 19:12:18 +0000 (19:12 +0000)]
Merge "Raise ulimit for run-test 961."

8 years agoUse dlmalloc from external/dlmalloc instead of bionic/.
Josh Gao [Fri, 22 Jan 2016 19:00:27 +0000 (11:00 -0800)]
Use dlmalloc from external/dlmalloc instead of bionic/.

Bug: http://b/17207577
Change-Id: I86d731e5236947c2cc21cbd17de29bd310a60a5b

8 years agoRaise ulimit for run-test 961.
Alex Light [Fri, 22 Jan 2016 18:09:40 +0000 (10:09 -0800)]
Raise ulimit for run-test 961.

Run-test 961 was rubbing against the ulimit, causing spurious
failures. This raises the ulimit the test runs under.

Bug: 26733951

Change-Id: I43f7c5f8e5e9e23ed139bd1fcc6bf24c526c546b

8 years agoAdd option to generate compressed backtrace info.
David Srbecky [Tue, 19 Jan 2016 14:33:43 +0000 (14:33 +0000)]
Add option to generate compressed backtrace info.

Add flag --generate-mini-debug-info which generates
LZMA compressed .symtab and .debug_frame, which are
sufficient to print java backtraces in libunwind.

If enabled, it increases the size of boot.oat by about 3.5%.

Change-Id: Ic3c2ef7704c05fa328720c6781ca2a9b8e3935a3

8 years agoMerge "Improve documentation and assertions of read barrier instrumentation."
Roland Levillain [Fri, 22 Jan 2016 17:34:14 +0000 (17:34 +0000)]
Merge "Improve documentation and assertions of read barrier instrumentation."

8 years agoMerge "Allow x86 memory operands for 64-bit popcnt on x86."
Aart Bik [Fri, 22 Jan 2016 17:21:31 +0000 (17:21 +0000)]
Merge "Allow x86 memory operands for 64-bit popcnt on x86."

8 years agoMerge "Generate unique ID for each type during native debugging."
David Srbecky [Fri, 22 Jan 2016 15:04:21 +0000 (15:04 +0000)]
Merge "Generate unique ID for each type during native debugging."

8 years agoGenerate unique ID for each type during native debugging.
David Srbecky [Thu, 14 Jan 2016 18:15:54 +0000 (18:15 +0000)]
Generate unique ID for each type during native debugging.

This allows the native debugger to find dynamic types of variables.

Change-Id: I901022b7db7d3c1db9f4b678ebafcb4eefed4ba7

8 years agoMerge "Create helper class for DWARF expressions."
David Srbecky [Fri, 22 Jan 2016 15:02:12 +0000 (15:02 +0000)]
Merge "Create helper class for DWARF expressions."

8 years agoOptimizing: double-negated bitwise operations simplifications
Kevin Brodsky [Fri, 15 Jan 2016 09:49:20 +0000 (09:49 +0000)]
Optimizing: double-negated bitwise operations simplifications

Generic instruction simplifications applying to bitwise operations when
both inputs are Not's. And and Or are handled by De Morgan's laws,
removing one instruction:
~a & ~b -> ~(a | b)
~a | ~b -> ~(a & b)
Xor is handled by this trivial relation, removing two instructions:
~a ^ ~b = a ^ b

The simplifications only happen when neither Not is used by other
instructions.

Change-Id: I5d5187af2f625c475c3e49466af6bc3e87595f8f

8 years agoCreate helper class for DWARF expressions.
David Srbecky [Fri, 15 Jan 2016 13:47:59 +0000 (13:47 +0000)]
Create helper class for DWARF expressions.

This ensures we generate valid DWARF opcodes and
it slightly simplifies the debug info writer.

Change-Id: I2ef8a9222c9a129c58f500741acd209b67e2ecff

8 years agoMerge "Revert "Revert "ARM64 Baker's read barrier fast path implementation."""
Roland Levillain [Fri, 22 Jan 2016 14:20:37 +0000 (14:20 +0000)]
Merge "Revert "Revert "ARM64 Baker's read barrier fast path implementation."""

8 years agoFix MIPS64 booting problem
Goran Jakovljevic [Fri, 22 Jan 2016 12:01:00 +0000 (13:01 +0100)]
Fix MIPS64 booting problem

Add missing MarkGCCard in compareAndSwapObject intinsic.

Additionaly, don't do a null test in MarkGCCard if the value
cannot be null for MIPS64.

Change-Id: Iad50f9e6be8cd27fedb31abb00d5829498941696

8 years agoMerge "Revert "Revert "Fast ART x86 interpreter"""
Bill Buzbee [Fri, 22 Jan 2016 14:18:14 +0000 (14:18 +0000)]
Merge "Revert "Revert "Fast ART x86 interpreter"""

8 years agoMerge "Revert "Revert "Inline methods with loops."""
Nicolas Geoffray [Fri, 22 Jan 2016 13:35:19 +0000 (13:35 +0000)]
Merge "Revert "Revert "Inline methods with loops."""

8 years agoRevert "Revert "Inline methods with loops.""
Nicolas Geoffray [Fri, 22 Jan 2016 12:41:38 +0000 (12:41 +0000)]
Revert "Revert "Inline methods with loops.""

Bug: 26689526

This reverts commit 451ad8d1be9a1949ea3c3e3a713a9e76198a8b2d.

Change-Id: If484fe4c0744254dd7568fd5006e574d621a1855

8 years agoMerge "Revert "Revert "Revert "Change condition to opposite if lhs is constant""""
Nicolas Geoffray [Fri, 22 Jan 2016 12:36:39 +0000 (12:36 +0000)]
Merge "Revert "Revert "Revert "Change condition to opposite if lhs is constant""""

8 years agoRevert "Revert "Revert "Change condition to opposite if lhs is constant"""
Nicolas Geoffray [Fri, 22 Jan 2016 12:35:26 +0000 (12:35 +0000)]
Revert "Revert "Revert "Change condition to opposite if lhs is constant"""

Fails two checker tests:

458-checker-instruction-simplification
537-checker-jump-over-jump

This reverts commit 884e54c8a45e49b58cb1127c8ed890f79f382601.

Change-Id: I22553e4e77662736b8b453d911a2f4e601f3a27e

8 years agoImprove documentation and assertions of read barrier instrumentation.
Roland Levillain [Fri, 22 Jan 2016 11:57:25 +0000 (11:57 +0000)]
Improve documentation and assertions of read barrier instrumentation.

For ARM, x86, x86-64 back ends.  The case of the ARM64 back
end is already handled in
https://android-review.googlesource.com/#/c/197870/.

Bug: 12687968
Change-Id: I6df1128cc100cbdb89020876e1a54de719508be3

8 years agoRevert "Revert "ARM64 Baker's read barrier fast path implementation.""
Roland Levillain [Fri, 22 Jan 2016 11:47:17 +0000 (11:47 +0000)]
Revert "Revert "ARM64 Baker's read barrier fast path implementation.""

This reverts commit 28a2ff0bd6c30549f3f6465d8316f5707b1d072f.

Bug: 12687968
Change-Id: I6e25c70f303368629cdb1084f1d7039261cbb79a

8 years agoMerge "With irreducible loops, we can have a null destination."
Nicolas Geoffray [Fri, 22 Jan 2016 11:46:50 +0000 (11:46 +0000)]
Merge "With irreducible loops, we can have a null destination."

8 years agoWith irreducible loops, we can have a null destination.
Nicolas Geoffray [Thu, 21 Jan 2016 18:22:23 +0000 (18:22 +0000)]
With irreducible loops, we can have a null destination.

bug:26684047
Change-Id: I23d1c74caec4aaebc05362a588f6cfec2132bdc8

8 years agoMerge "Disable flaky test."
Nicolas Geoffray [Fri, 22 Jan 2016 10:59:20 +0000 (10:59 +0000)]
Merge "Disable flaky test."

8 years agoDisable flaky test.
Nicolas Geoffray [Fri, 22 Jan 2016 10:57:59 +0000 (10:57 +0000)]
Disable flaky test.

Change-Id: I003c2ab9ed0b0629a4b44c42a2139a99b05f40ae

8 years agoMerge "Revert "Revert "Change condition to opposite if lhs is constant"""
Nicolas Geoffray [Fri, 22 Jan 2016 10:44:39 +0000 (10:44 +0000)]
Merge "Revert "Revert "Change condition to opposite if lhs is constant"""

8 years agoMerge "Revert "Some minor simplifications in code and tests.""
Nicolas Geoffray [Fri, 22 Jan 2016 10:43:57 +0000 (10:43 +0000)]
Merge "Revert "Some minor simplifications in code and tests.""

8 years agoRevert "Some minor simplifications in code and tests."
Nicolas Geoffray [Fri, 22 Jan 2016 10:43:39 +0000 (10:43 +0000)]
Revert "Some minor simplifications in code and tests."

Fails 530-checker-loops on arm

This reverts commit bf03fcd10a3ffa15468d335f26697b0473e45b36.

Change-Id: I739aaaccd0509d02a62ef01e797a6d45bfe941df

8 years agoMerge "Revert "ARM/ARM64: Extend support of instruction combining.""
Nicolas Geoffray [Fri, 22 Jan 2016 09:32:30 +0000 (09:32 +0000)]
Merge "Revert "ARM/ARM64: Extend support of instruction combining.""

8 years agoRevert "ARM/ARM64: Extend support of instruction combining."
Nicolas Geoffray [Fri, 22 Jan 2016 09:31:52 +0000 (09:31 +0000)]
Revert "ARM/ARM64: Extend support of instruction combining."

The test fails its checker parts.

This reverts commit debeb98aaa8950caf1a19df490f2ac9bf563075b.

Change-Id: I49929e15950c7814da6c411ecd2b640d12de80df

8 years agoRevert "Revert "Change condition to opposite if lhs is constant""
Nicolas Geoffray [Fri, 22 Jan 2016 08:59:04 +0000 (08:59 +0000)]
Revert "Revert "Change condition to opposite if lhs is constant""

This reverts commit a05cacc11fa075246c38497c01b949745fadc54b.

Change-Id: Ifdc261fd4dfb2c538017fe1d69af723aafd4afef

8 years agoMerge "Update to INFO to not confuse adb logcat readers."
Nicolas Geoffray [Fri, 22 Jan 2016 08:53:31 +0000 (08:53 +0000)]
Merge "Update to INFO to not confuse adb logcat readers."

8 years agoMerge "Fix cpu-info/cpp-defines mismatch."
Aart Bik [Fri, 22 Jan 2016 00:45:31 +0000 (00:45 +0000)]
Merge "Fix cpu-info/cpp-defines mismatch."

8 years agoFix cpu-info/cpp-defines mismatch.
Aart Bik [Thu, 21 Jan 2016 23:52:58 +0000 (15:52 -0800)]
Fix cpu-info/cpp-defines mismatch.

Rationale:
__POPCNT__ is the right way to cpp-test for popcnt support

Change-Id: I3dac215f862701e04519e89ca97c159b1e4385c8

8 years agoMerge "Disable Homogeneous space for dex2oat"
Mathieu Chartier [Thu, 21 Jan 2016 22:35:05 +0000 (22:35 +0000)]
Merge "Disable Homogeneous space for dex2oat"

8 years agoMerge "Revert "Revert "run-test: Add tests for 1.8 reflection implementations"""
Alex Light [Thu, 21 Jan 2016 22:22:39 +0000 (22:22 +0000)]
Merge "Revert "Revert "run-test: Add tests for 1.8 reflection implementations"""

8 years agoMerge "Use current pid not tid to create a backtrace map."
Christopher Ferris [Thu, 21 Jan 2016 21:01:29 +0000 (21:01 +0000)]
Merge "Use current pid not tid to create a backtrace map."

8 years agoAllow x86 memory operands for 64-bit popcnt on x86.
Aart Bik [Thu, 21 Jan 2016 20:49:00 +0000 (12:49 -0800)]
Allow x86 memory operands for 64-bit popcnt on x86.

By Mark's request.
This allows:

 popcnt edx, [esp + 16]
 popcnt ebx, [esp + 20]
 add ebx, edx
 .....

instead of the more elaborate

 mov edx, [ecx + 16]
 mov ebx, [ecx + 20]
 popcnt eax, edx
 popcnt ebp, ebx
 add ebp, eax

Change-Id: Iea30ad7b9a1aba8591e3dbb72e24ef12e81cc2ce

8 years agoMerge "Support for x86 popcnt."
Aart Bik [Thu, 21 Jan 2016 19:46:20 +0000 (19:46 +0000)]
Merge "Support for x86 popcnt."

8 years agoRevert "Revert "Fast ART x86 interpreter""
Bill Buzbee [Wed, 20 Jan 2016 20:46:01 +0000 (20:46 +0000)]
Revert "Revert "Fast ART x86 interpreter""

This reverts commit 2d093a1213cc2f85b5e5e02782332657c479eb94.

Disable x86 mterp compilation on Mac host builds (but keep enabled
for all target builds).

Change-Id: Ie355279f166d2964a786646ee53f065b7e0f5ede

8 years agoSupport for x86 popcnt.
Aart Bik [Thu, 21 Jan 2016 16:59:48 +0000 (08:59 -0800)]
Support for x86 popcnt.

Change-Id: I0fc4e745764f1749a6437a199a594f3d8ea53eef

8 years agoMerge "Add a METHOD_SUPER to the MethodType enum."
Alex Light [Thu, 21 Jan 2016 18:48:12 +0000 (18:48 +0000)]
Merge "Add a METHOD_SUPER to the MethodType enum."

8 years agoMerge "Revert "ARM64 Baker's read barrier fast path implementation.""
Mathieu Chartier [Thu, 21 Jan 2016 18:24:58 +0000 (18:24 +0000)]
Merge "Revert "ARM64 Baker's read barrier fast path implementation.""

8 years agoRevert "ARM64 Baker's read barrier fast path implementation."
Mathieu Chartier [Thu, 21 Jan 2016 18:21:59 +0000 (18:21 +0000)]
Revert "ARM64 Baker's read barrier fast path implementation."

This reverts commit c8f1df9965ca7f97ba9e6289f8c7a717765a59a9.

This breaks master.

Change-Id: Ic07f602af8732e2835bd11f65e3b9e766d3349c7

8 years agoRevert "Revert "run-test: Add tests for 1.8 reflection implementations""
Alex Light [Thu, 21 Jan 2016 18:10:03 +0000 (10:10 -0800)]
Revert "Revert "run-test: Add tests for 1.8 reflection implementations""

This reverts commit 6a52d29eadb9d0a882439202303e8eae9f13bd26.

Change-Id: I05310a6e07ddcc9b2777b7df8f23e02498775256

8 years agoMerge "Implemented BitCount as an intrinsic. With unit test."
Aart Bik [Thu, 21 Jan 2016 16:11:17 +0000 (16:11 +0000)]
Merge "Implemented BitCount as an intrinsic. With unit test."

8 years agoMerge "Some minor simplifications in code and tests."
Aart Bik [Thu, 21 Jan 2016 16:10:43 +0000 (16:10 +0000)]
Merge "Some minor simplifications in code and tests."

8 years agoMerge "Add attribute to fix build."
Nicolas Geoffray [Thu, 21 Jan 2016 15:50:01 +0000 (15:50 +0000)]
Merge "Add attribute to fix build."

8 years agoAdd attribute to fix build.
Nicolas Geoffray [Thu, 21 Jan 2016 15:47:37 +0000 (15:47 +0000)]
Add attribute to fix build.

Change-Id: I833b2e55ae7cc312404bd07b98ddf89a357bc786

8 years agoMerge "Move backward branch instrumentation to all branch."
Nicolas Geoffray [Thu, 21 Jan 2016 15:23:29 +0000 (15:23 +0000)]
Merge "Move backward branch instrumentation to all branch."

8 years agoMerge "ARM64 Baker's read barrier fast path implementation."
Roland Levillain [Thu, 21 Jan 2016 15:19:05 +0000 (15:19 +0000)]
Merge "ARM64 Baker's read barrier fast path implementation."

8 years agoMerge "Improves recent changes to art::JDWP::JdwpSocketState::Establish."
Roland Levillain [Thu, 21 Jan 2016 15:16:47 +0000 (15:16 +0000)]
Merge "Improves recent changes to art::JDWP::JdwpSocketState::Establish."

8 years agoMerge "ARM/ARM64: Extend support of instruction combining."
Nicolas Geoffray [Thu, 21 Jan 2016 14:48:12 +0000 (14:48 +0000)]
Merge "ARM/ARM64: Extend support of instruction combining."

8 years agoMove backward branch instrumentation to all branch.
Nicolas Geoffray [Wed, 20 Jan 2016 16:25:19 +0000 (16:25 +0000)]
Move backward branch instrumentation to all branch.

This is in preparation for osr, and later dead branch profiling.

Change-Id: I4597c0784c894c310f295dd534967d67dcefa419

8 years agoImproves recent changes to art::JDWP::JdwpSocketState::Establish.
Roland Levillain [Thu, 21 Jan 2016 14:01:10 +0000 (14:01 +0000)]
Improves recent changes to art::JDWP::JdwpSocketState::Establish.

(This is a follow-up CL to
https://android-review.googlesource.com/#/c/197630.)

Capture the size of the work buffer passed to
gethostbyname_r in a constant and document it.

Also wrap long lines in runtime/jdwp/jdwp_socket.cc.

Change-Id: Ieb0694c56611a491c5f949ce8ed22ab3795f1883

8 years agoMerge "Revert "Revert "Write dex files to oat file early."""
Vladimir Marko [Thu, 21 Jan 2016 13:53:02 +0000 (13:53 +0000)]
Merge "Revert "Revert "Write dex files to oat file early."""

8 years agoMerge "Revert "run-test: Add tests for 1.8 reflection implementations""
Nicolas Geoffray [Thu, 21 Jan 2016 13:26:29 +0000 (13:26 +0000)]
Merge "Revert "run-test: Add tests for 1.8 reflection implementations""

8 years agoRevert "run-test: Add tests for 1.8 reflection implementations"
Nicolas Geoffray [Thu, 21 Jan 2016 13:26:08 +0000 (13:26 +0000)]
Revert "run-test: Add tests for 1.8 reflection implementations"

Bug: 24618811

Too many failures on goto/ab

This reverts commit 54c4e0d7adbf9179df04f5ed5d8d5a3ff69add84.

Change-Id: Ic6305c14d78b38e5c13ea42e1777ad197ff2f45c

8 years agoRevert "Revert "Write dex files to oat file early.""
Vladimir Marko [Thu, 21 Jan 2016 12:15:52 +0000 (12:15 +0000)]
Revert "Revert "Write dex files to oat file early.""

This reverts commit 919f5536182890d2e03f59b961acf8f7c836ff61.

Fix linker error (Mac build):
Replace inline definition of art::ZipArchive::~ZipArchive()
with an out-of-line definition in zip_archive.cc to avoid
direct reference to CloseArchive() from libart-compiler due
to inlining. Note that libart is linked against -lziparchive
but libart-compiler is not.

Change-Id: I92620ea0200282ca7ba9b7f61a592cb6468d90d8

8 years agoMerge "Fix JDWP host tests on Trusty."
Roland Levillain [Thu, 21 Jan 2016 12:07:50 +0000 (12:07 +0000)]
Merge "Fix JDWP host tests on Trusty."

8 years agoFix JDWP host tests on Trusty.
Roland Levillain [Thu, 21 Jan 2016 11:19:51 +0000 (11:19 +0000)]
Fix JDWP host tests on Trusty.

The buffer passed by art::JDWP::JdwpSocketState::Establish
to gethostbyname_r on Trusty was too small, leading to the
following error message during JDWP host testing:

art/runtime/jdwp/jdwp_socket.cc:283] gethostbyname_r('localhost') failed: Resolver internal error

This CL doubles the size of this buffer to avoid this
failure.

Change-Id: Ie7bb1ea8c755d869f2cc50cc2f6cc82828499706

8 years agoMerge "Let Art tests use the default jack version"
Yohann Roussel [Thu, 21 Jan 2016 08:54:26 +0000 (08:54 +0000)]
Merge "Let Art tests use the default jack version"

8 years agoARM/ARM64: Extend support of instruction combining.
Ilmir Usmanov [Fri, 11 Dec 2015 08:39:44 +0000 (11:39 +0300)]
ARM/ARM64: Extend support of instruction combining.

Combine multiply instructions in the following way:
ARM64:
MUL/NEG -> MNEG
ARM32 (32-bit integers only):
MUL/ADD -> MLA
MUL/SUB -> MLS

Change-Id: If20f2d8fb060145ab6fbceeb5a8f1a3d02e0ecdb

8 years agoImplemented BitCount as an intrinsic. With unit test.
Aart Bik [Fri, 15 Jan 2016 22:35:12 +0000 (14:35 -0800)]
Implemented BitCount as an intrinsic. With unit test.

Rationale:
Recognizing this important operation as an intrinsic has
various advantages:
(1) having the no-side-effects/no-throw allows for
    much more GVN/LICM/BCE.
(2) Some architectures, like x86_64, provide direct
    support for this operation.

Performance improvements on X86_64:
CheckersEvalBench (32-bit bitboard): 27,210KNS -> 36,798KNS  =  + 35%
ReversiEvalBench  (64-bit bitboard): 52,562KNS -> 89,086KNS  =  + 69%

Change-Id: I65d549b0469b7909b12c6611cdc34a8640a5751f

8 years agoMerge "Fix missing case in ARM64 codegen."
Aart Bik [Thu, 21 Jan 2016 03:25:10 +0000 (03:25 +0000)]
Merge "Fix missing case in ARM64 codegen."

8 years agoFix missing case in ARM64 codegen.
Aart Bik [Thu, 21 Jan 2016 01:02:00 +0000 (17:02 -0800)]
Fix missing case in ARM64 codegen.

Rationale:
Rather than excluding conditions that are not handled,
changed the right-hand-side is zero optimized code
to list handled conditions explicitly instead.

bug=26689526

Change-Id: I636e01548659c579d9e318f07bda2c24a12371e5

8 years agoMerge "Add stack trace info to hprof completion message"
Mathieu Chartier [Thu, 21 Jan 2016 00:46:20 +0000 (00:46 +0000)]
Merge "Add stack trace info to hprof completion message"

8 years agoSome minor simplifications in code and tests.
Aart Bik [Mon, 4 Jan 2016 20:32:24 +0000 (12:32 -0800)]
Some minor simplifications in code and tests.

Rationale: fell through the cracks of previous "intrinsics" CL.

Change-Id: If8ada79dfd70bea991c11d2b18661b951b6c4cd4

8 years agoAdd a METHOD_SUPER to the MethodType enum.
Alex Light [Wed, 20 Jan 2016 23:50:01 +0000 (15:50 -0800)]
Add a METHOD_SUPER to the MethodType enum.

This makes some of the code simpler by disambiguating between regular
invoke-virtual and invoke-super, which have slightly different
requirements.

Change-Id: I50e86e681bb63c617c043367feb5b89e2ddbfc00

8 years agoUse current pid not tid to create a backtrace map.
tony.ys_liu [Wed, 20 Jan 2016 10:05:31 +0000 (18:05 +0800)]
Use current pid not tid to create a backtrace map.

The BacktraceMap::Create() function assumes that the passed in
parameter is the current pid not tid. If a tid is passed in, then
the logic that creates the local map in libunwind is not used
and can bypass all of the special handling of local maps. The result
can be crashes if this map data gets out of sync with the real maps
found in the process.

Bug: 26676205
Bug: https://code.google.com/p/android/issues/detail?id=199219
Change-Id: Ibab9f7a7b99648a2cdaa185958bf6ffc368079ce

8 years agoMerge "JIT: Fix incorrect CHECK"
Aart Bik [Wed, 20 Jan 2016 23:13:23 +0000 (23:13 +0000)]
Merge "JIT: Fix incorrect CHECK"