OSDN Git Service

android-x86/art.git
8 years agoMerge "Show registered native allocations in ahat."
Richard Uhler [Wed, 27 Jan 2016 17:57:10 +0000 (17:57 +0000)]
Merge "Show registered native allocations in ahat."

8 years agoMerge "Cast method pointer to uintptr_t before uint64_t"
Mathieu Chartier [Wed, 27 Jan 2016 17:47:57 +0000 (17:47 +0000)]
Merge "Cast method pointer to uintptr_t before uint64_t"

8 years agoMerge "Change the order of functions in .debug_frame to save space."
David Srbecky [Wed, 27 Jan 2016 16:31:44 +0000 (16:31 +0000)]
Merge "Change the order of functions in .debug_frame to save space."

8 years agoMerge "Do not write full method signature in mini-debug-info."
David Srbecky [Wed, 27 Jan 2016 16:31:36 +0000 (16:31 +0000)]
Merge "Do not write full method signature in mini-debug-info."

8 years agoMerge "Revert "Revert "Add option to generate compressed backtrace info."""
David Srbecky [Wed, 27 Jan 2016 16:31:02 +0000 (16:31 +0000)]
Merge "Revert "Revert "Add option to generate compressed backtrace info."""

8 years agoMerge "Add option to never interpret."
Tamas Berghammer [Wed, 27 Jan 2016 16:02:10 +0000 (16:02 +0000)]
Merge "Add option to never interpret."

8 years agoAdd option to never interpret.
Siva Chandra [Wed, 6 Jan 2016 01:43:17 +0000 (17:43 -0800)]
Add option to never interpret.

Change-Id: Ib6d6170fa60c77c2e6a8844964f14fa0de4c9e7b

8 years agoMerge "Optimizing: Lazy creation of Handle<>s in RTP."
Vladimir Marko [Wed, 27 Jan 2016 14:22:37 +0000 (14:22 +0000)]
Merge "Optimizing: Lazy creation of Handle<>s in RTP."

8 years agoOptimizing: Lazy creation of Handle<>s in RTP.
Vladimir Marko [Tue, 26 Jan 2016 15:01:12 +0000 (15:01 +0000)]
Optimizing: Lazy creation of Handle<>s in RTP.

This reduces the number of StackHandleScope<>s that we
allocate, especially when we're inlining many methods.
Previously, each RTP would create 4 handles in the ctor
which is actually the same as kNumReferencesPerScope.

Change-Id: Ib6767993b1e89913a91275f0ef66dac786bccb6c

8 years agoCast method pointer to uintptr_t before uint64_t
Mathieu Chartier [Wed, 27 Jan 2016 04:11:06 +0000 (20:11 -0800)]
Cast method pointer to uintptr_t before uint64_t

Previously we were casting a pointer to uint64_t. This sign extends.
This change fixes 64 bit app image crashes on angler.

Bug: 22858531
Change-Id: I03e973a0c5a1d74db7e8db0f13f5b1825d8d8ab5

8 years agoMerge "Remove GetImageRoots read barrier for image relocation"
Mathieu Chartier [Wed, 27 Jan 2016 01:53:45 +0000 (01:53 +0000)]
Merge "Remove GetImageRoots read barrier for image relocation"

8 years agoRemove GetImageRoots read barrier for image relocation
Mathieu Chartier [Tue, 26 Jan 2016 22:26:18 +0000 (14:26 -0800)]
Remove GetImageRoots read barrier for image relocation

Fixes CC assertion that failed if an app image was loaded when the GC
was running.

Bug: 26786304
Change-Id: I47bea7b4b947332b57be2e2db604c2c25d92b7e2

8 years agoMerge "Convert to UTF8 before doing dex file location comparison"
Mathieu Chartier [Wed, 27 Jan 2016 01:38:05 +0000 (01:38 +0000)]
Merge "Convert to UTF8 before doing dex file location comparison"

8 years agoConvert to UTF8 before doing dex file location comparison
Mathieu Chartier [Tue, 26 Jan 2016 22:54:06 +0000 (14:54 -0800)]
Convert to UTF8 before doing dex file location comparison

Need to have strings in the same format or else the lengths
might not match due to UTF8 conversion.

Added regression test.

Bug: 26799552

(cherry picked from commit 3776db4e51ab61a6e535772417c2adf95920b569)

Change-Id: Ifbc8c38418c9da307a0ff4446d18cea4fb5e71bc

8 years agoMerge "Blacklist new test due to so loading problems."
Nicolas Geoffray [Tue, 26 Jan 2016 23:05:11 +0000 (23:05 +0000)]
Merge "Blacklist new test due to so loading problems."

8 years agoBlacklist new test due to so loading problems.
Nicolas Geoffray [Tue, 26 Jan 2016 23:03:36 +0000 (23:03 +0000)]
Blacklist new test due to so loading problems.

Change-Id: I3f519cb2ab02afe3852f59a65de7d2ff2d4070fd

8 years agoMerge "Temporarily use -fstack-protector for the read barrier config."
Hiroshi Yamauchi [Tue, 26 Jan 2016 22:31:41 +0000 (22:31 +0000)]
Merge "Temporarily use -fstack-protector for the read barrier config."

8 years agoTemporarily use -fstack-protector for the read barrier config.
Hiroshi Yamauchi [Tue, 26 Jan 2016 22:06:14 +0000 (14:06 -0800)]
Temporarily use -fstack-protector for the read barrier config.

Instead of -fstack-protector-strong.

To avoid a major performance regression.

Bug: 26744236
Bug: 12687968

Change-Id: I299247589e2bb6939393d30bdc54c15ce0f04b2a

8 years agoMerge "Use mutator lock to guard adding and removing heap spaces"
Mathieu Chartier [Tue, 26 Jan 2016 20:25:54 +0000 (20:25 +0000)]
Merge "Use mutator lock to guard adding and removing heap spaces"

8 years agoUse mutator lock to guard adding and removing heap spaces
Mathieu Chartier [Tue, 26 Jan 2016 04:06:11 +0000 (20:06 -0800)]
Use mutator lock to guard adding and removing heap spaces

Too hard to add a new lock since dlmalloc ArtMoreCore requires
looping through the spaces while holding the allocator lock.

Bug: 22858531
Change-Id: Ieac2136da02c766b6795cd604a58798bee37ef2a

8 years agoMerge "Recognize common utilities as intrinsics."
Aart Bik [Tue, 26 Jan 2016 20:22:57 +0000 (20:22 +0000)]
Merge "Recognize common utilities as intrinsics."

8 years agoMerge "Some minor simplifications in code and tests."
Aart Bik [Tue, 26 Jan 2016 20:22:42 +0000 (20:22 +0000)]
Merge "Some minor simplifications in code and tests."

8 years agoMerge "Enable interface default methods by default."
Alex Light [Tue, 26 Jan 2016 19:53:18 +0000 (19:53 +0000)]
Merge "Enable interface default methods by default."

8 years agoEnable interface default methods by default.
Neil Fuller [Thu, 7 Jan 2016 15:42:47 +0000 (15:42 +0000)]
Enable interface default methods by default.

This also enables interface static methods.

This removes the -Xexperimental:default-methods flag and all places
where we explicitly check for its presence.

Bug: 24618811

Change-Id: Icd91e377bd6e1a45a1645f810d15de1b0312e31d

8 years agoRecognize common utilities as intrinsics.
Aart Bik [Mon, 25 Jan 2016 22:20:58 +0000 (14:20 -0800)]
Recognize common utilities as intrinsics.

Rationale:
Recognizing these method calls as intrinsics already has
major advantages (compiler knows about no-side-effects/no-throw
properties). Next step is, of course, to implement these
with native instructions on each architecture.

Change-Id: I06fd12973238caec00d67b31b195d7f8807a538e

8 years agoSome minor simplifications in code and tests.
Aart Bik [Sat, 23 Jan 2016 00:49:55 +0000 (16:49 -0800)]
Some minor simplifications in code and tests.

Background:
This is actually a resubmit of an earlier cl that was
reverted because was test was less robust against
inlining changes (it assumed a virtual call would
never be inlined).

original cl: If8ada79dfd70bea991c11d2b18661b951b6c4cd4
revert cl:   I739aaaccd0509d02a62ef01e797a6d45bfe941df

Change-Id: I952680d60ff488874907f066bfdf156a45b409ba

8 years agoMerge "Revert "Lift the spill at each irreducible loop block restriction.""
Bart Sears [Tue, 26 Jan 2016 17:39:16 +0000 (17:39 +0000)]
Merge "Revert "Lift the spill at each irreducible loop block restriction.""

8 years agoRevert "Lift the spill at each irreducible loop block restriction."
Bart Sears [Tue, 26 Jan 2016 17:38:19 +0000 (17:38 +0000)]
Revert "Lift the spill at each irreducible loop block restriction."

This reverts commit 79e9f43951c3cfa9ab3b0fea93e5bfdfa7aa5950.

Change-Id: I0670618b4076e06bd3f6bf8c385abfd1b651393c

8 years agoMerge "Lift the spill at each irreducible loop block restriction."
Nicolas Geoffray [Tue, 26 Jan 2016 16:36:44 +0000 (16:36 +0000)]
Merge "Lift the spill at each irreducible loop block restriction."

8 years agoMerge "ART: Remove another unnecessary mutator lock annotation."
Vladimir Marko [Tue, 26 Jan 2016 15:50:51 +0000 (15:50 +0000)]
Merge "ART: Remove another unnecessary mutator lock annotation."

8 years agoART: Remove another unnecessary mutator lock annotation.
Vladimir Marko [Tue, 26 Jan 2016 15:06:15 +0000 (15:06 +0000)]
ART: Remove another unnecessary mutator lock annotation.

Missed in https://android-review.googlesource.com/198690 .

Change-Id: I56a6dfe1126315957658962d51290e3bfa873c79

8 years agoMerge "Disable interpreter run-tests occasionally failing with CC."
Roland Levillain [Tue, 26 Jan 2016 14:25:31 +0000 (14:25 +0000)]
Merge "Disable interpreter run-tests occasionally failing with CC."

8 years agoMerge "ART: Remove some unnecessary mutator lock annotations."
Vladimir Marko [Tue, 26 Jan 2016 14:21:47 +0000 (14:21 +0000)]
Merge "ART: Remove some unnecessary mutator lock annotations."

8 years agoDisable interpreter run-tests occasionally failing with CC.
Roland Levillain [Tue, 26 Jan 2016 14:05:42 +0000 (14:05 +0000)]
Disable interpreter run-tests occasionally failing with CC.

These tests sometimes fail on the concurrent collector
configurations:
- 004-ThreadStress
- 141-class-unload

Disable them while we investigate.

Also adjust the list of Quick run-tests failing with CC.

Bug: 26786154
Bug: 25866001
Bug: 12687968
Change-Id: I7a37184888b7c992ab636bba44760c1aeab51aad

8 years agoMerge "Add profile support for apps with shared runtime."
Calin Juravle [Tue, 26 Jan 2016 13:46:06 +0000 (13:46 +0000)]
Merge "Add profile support for apps with shared runtime."

8 years agoAdd profile support for apps with shared runtime.
Calin Juravle [Wed, 13 Jan 2016 23:52:33 +0000 (15:52 -0800)]
Add profile support for apps with shared runtime.

- extend ProfileSaver to track different dex locations to different
profile files.
- allow repeated calls to Runtime::RegisterAppInfo() which will
register a new pair <profile_file, locations_to_track> with the profile
saver.

Bug: 26080105
Change-Id: I58c4587d5f462c557411ad7126a00c29cd7db3a6

8 years agoMerge "Add dependency on liblzma."
David Srbecky [Tue, 26 Jan 2016 13:44:18 +0000 (13:44 +0000)]
Merge "Add dependency on liblzma."

8 years agoLift the spill at each irreducible loop block restriction.
Nicolas Geoffray [Sat, 23 Jan 2016 23:00:45 +0000 (23:00 +0000)]
Lift the spill at each irreducible loop block restriction.

It was not intended to have it this way anyway. This also
required to fix GetSiblingAt, to take into account interval
holes, and ConnectSplitSibling to re-materialize a constant
or a method.

Change-Id: Ia5534a93a5413cd0458a251c022d0b655369502b

8 years agoChange the order of functions in .debug_frame to save space.
David Srbecky [Fri, 22 Jan 2016 14:25:03 +0000 (14:25 +0000)]
Change the order of functions in .debug_frame to save space.

Order the methods to help the compression of mini-debug-info.
This reduces the overhead of mini-debug-info from 3% to 2.5%.

Also remove oat_patches from the mini-debug-info since it is
does not make sense there.

Change-Id: I5077f664c3b01f07047b251489d2e9b05c8c9379

8 years agoDo not write full method signature in mini-debug-info.
David Srbecky [Fri, 22 Jan 2016 13:56:47 +0000 (13:56 +0000)]
Do not write full method signature in mini-debug-info.

Write only fully qualified method name to reduce the size.
This approximately halves the amount of string data which
in turn reduces the overhead of mini-debug-info from 3.5% to 3%.

Change-Id: Iba9b1d5af77bd90a6c93912ff10bded243d716ce

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

This reverts commit 8546cc9aeb05e866e1fb6a9e4130d53ea330baa8.

Change-Id: I676fdf9af27fa3b16fa8921778ff8832ab8c437d

8 years agoMerge "[WIP] ART Mterp: fix for hidden gc roots"
Bill Buzbee [Tue, 26 Jan 2016 12:47:51 +0000 (12:47 +0000)]
Merge "[WIP] ART Mterp: fix for hidden gc roots"

8 years agoART: Remove some unnecessary mutator lock annotations.
Vladimir Marko [Tue, 26 Jan 2016 12:16:55 +0000 (12:16 +0000)]
ART: Remove some unnecessary mutator lock annotations.

The StackReference<> pointer held by a Handle<> can be used
without holding the mutator lock. We already do that when
we copy Handle<>s around. Only accessing the actual content
of the pointed-to StackReference<> needs to be done while
holding the mutator lock.

Change-Id: I5f93bd7e277383192f1f16dff6883ecb26387414

8 years agoMerge "Generate DWARF line numbers only for points with dex register map."
David Srbecky [Tue, 26 Jan 2016 11:54:46 +0000 (11:54 +0000)]
Merge "Generate DWARF line numbers only for points with dex register map."

8 years agoAdd dependency on liblzma.
David Srbecky [Mon, 25 Jan 2016 18:03:16 +0000 (18:03 +0000)]
Add dependency on liblzma.

It will be needed for compression of debug information.

Change-Id: I77340a3b328aae08d82018f611615af9aebc5aca

8 years agoMerge "Disable run-tests causing occasional timeouts with CC."
Roland Levillain [Tue, 26 Jan 2016 11:40:41 +0000 (11:40 +0000)]
Merge "Disable run-tests causing occasional timeouts with CC."

8 years agoDisable run-tests causing occasional timeouts with CC.
Roland Levillain [Tue, 26 Jan 2016 10:47:42 +0000 (10:47 +0000)]
Disable run-tests causing occasional timeouts with CC.

These tests sometimes time out on the concurrent collector
configurations:
- 004-ThreadStress
- 496-checker-inlining-and-class-loader

Disable them while we investigate.

Bug: 26786154
Bug: 26786304
Bug: 12687968
Change-Id: I169766eac656cd1281a169337c2205a9592c32a1

8 years agoMerge "Fix non-Linux builds."
Roland Levillain [Tue, 26 Jan 2016 10:27:20 +0000 (10:27 +0000)]
Merge "Fix non-Linux builds."

8 years agoFix non-Linux builds.
Roland Levillain [Tue, 26 Jan 2016 10:22:14 +0000 (10:22 +0000)]
Fix non-Linux builds.

Do no expose a constant only used in Linux builds in
runtime/jdwp/jdwp_socket.cc.

Change-Id: I0f1de4fd36a9013b46b1393ea0cded41bae2b751

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 ago[WIP] ART Mterp: fix for hidden gc roots
buzbee [Mon, 25 Jan 2016 23:41:24 +0000 (15:41 -0800)]
[WIP] ART Mterp: fix for hidden gc roots

To support moving gc, we must not hold onto any references solely
in registers across potential gc points.  This was happening during
returns, instance-of and check-cast.

[testing in progress]

Change-Id: I367750658c5716960737f0666e46800240fd392d

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 agoGenerate DWARF line numbers only for points with dex register map.
David Srbecky [Mon, 25 Jan 2016 17:00:24 +0000 (17:00 +0000)]
Generate DWARF line numbers only for points with dex register map.

Stackmaps without dex register map are useful to the runtime,
but they are not a reasonable stopping point for the debugger.

Change-Id: I393d2d293e6faf339c7560b250bcf3dad39d54cd

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 agoShow registered native allocations in ahat.
Richard Uhler [Mon, 21 Dec 2015 20:47:26 +0000 (12:47 -0800)]
Show registered native allocations in ahat.

Bug: 23130675
Change-Id: I1d7f41a47a956b30611429b9bd395ec5f9580209

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