OSDN Git Service
Andreas Gampe [Thu, 24 Jul 2014 03:18:36 +0000 (20:18 -0700)]
ART: Allow arrays with erroneous component type
Array classes must tolerate having component type classes that are
erroneous. Change CreateArrayClass to use LookupClass when FindClass
failed.
Bug:
16019155
Change-Id: Id4868c5498431c85c199aa3cbecd23566dce3601
Andreas Gampe [Wed, 23 Jul 2014 18:07:50 +0000 (18:07 +0000)]
Merge "Add test-art-*-run-test-###-test-name32/64 test targets."
Alex Light [Wed, 23 Jul 2014 17:31:34 +0000 (10:31 -0700)]
Add test-art-*-run-test-###-test-name32/64 test targets.
This allows one to run only a single architecture for one of the run-tests.
Change-Id: Icb06c2b36074cbec7f7808a2fcaba97ec5501578
Andreas Gampe [Wed, 23 Jul 2014 17:51:24 +0000 (17:51 +0000)]
Merge "ART: Fix erroneous output"
Andreas Gampe [Wed, 23 Jul 2014 17:47:54 +0000 (10:47 -0700)]
ART: Fix erroneous output
Make run-tests quiet.
Change-Id: I80da9ac04fa95a4094dee874c8703ea563acc1ee
Andreas Gampe [Wed, 23 Jul 2014 17:03:23 +0000 (17:03 +0000)]
Merge "ART: Make run tests out of oat tests"
Andreas Gampe [Wed, 23 Jul 2014 01:52:29 +0000 (18:52 -0700)]
ART: Make run tests out of oat tests
Transforms all former oat tests into run tests.
Change-Id: I190dd39456454c36e5538a2c044d993965a67533
Ian Rogers [Wed, 23 Jul 2014 15:18:54 +0000 (15:18 +0000)]
Merge "Use the TMPDIR environment variable for test directory if set."
Ian Rogers [Wed, 23 Jul 2014 15:03:36 +0000 (08:03 -0700)]
Use the TMPDIR environment variable for test directory if set.
Bug:
16499668
Change-Id: I7da5559c13597d7bca4e4037a1e9335f0b6d8230
Nicolas Geoffray [Wed, 23 Jul 2014 12:26:17 +0000 (12:26 +0000)]
Merge "Fix implicit stack overflow check on optimizing/x86."
Nicolas Geoffray [Wed, 23 Jul 2014 11:57:19 +0000 (12:57 +0100)]
Fix implicit stack overflow check on optimizing/x86.
They need to happen before changing ESP, and require a suspend point.
Change-Id: Id41aa9c99714f7ab8591367ea5cb9ca105b17ce8
Vladimir Marko [Wed, 23 Jul 2014 12:12:24 +0000 (12:12 +0000)]
Merge "Rewrite topological sort order and improve GVN."
Vladimir Marko [Thu, 10 Jul 2014 11:42:52 +0000 (12:42 +0100)]
Rewrite topological sort order and improve GVN.
Rewrite the topological sort order to include a full loop
before the blocks that go after the loop. Add a new iterator
class LoopRepeatingTopologicalSortIterator that differs from
the RepeatingTopologicalSortIterator by repeating only loops
and repeating them early. It returns to the loop head if the
head needs recalculation when we reach the end of the loop.
In GVN, use the new loop-repeating topological sort iterator
and for a loop head merge only the preceding blocks' LVNs
if we're not currently recalculating this loop.
Also fix LocalValueNumbering::InPlaceIntersectMaps() which
was keeping only the last element of the intersection, avoid
some unnecessary processing during LVN merge and add some
missing braces to MIRGraph::InferTypeAndSize().
Bug:
16398693
Change-Id: I4e10d4acb626a5b8a28ec0de106a7b37f9cbca32
Nicolas Geoffray [Wed, 23 Jul 2014 12:07:12 +0000 (12:07 +0000)]
Merge "Use the correct HOST_ARCH for oat files."
Nicolas Geoffray [Wed, 23 Jul 2014 11:37:10 +0000 (12:37 +0100)]
Use the correct HOST_ARCH for oat files.
This typo explains why test-art-host-oat-optimizing-SignalTest32
would work on a 32bit host build and fail on a 64bit host build:
because dex2oat does not generate the code in the expected path
(x86_64 instead of x86), dalvikvm would re-generate it, with
the default settings (that is with quick compiler), and hence the
test would not fail.
Change-Id: I08b5ec316deb4d669fe76066d33a91fc3ed9e3f9
Vladimir Marko [Wed, 23 Jul 2014 12:05:26 +0000 (12:05 +0000)]
Merge "Fix null pointer check elimination for catch entries."
Nicolas Geoffray [Wed, 23 Jul 2014 09:12:11 +0000 (09:12 +0000)]
Merge "Rules depend on DEX2OATD, not DEX2OATD_DEPENDENCY."
Nicolas Geoffray [Wed, 23 Jul 2014 08:59:21 +0000 (09:59 +0100)]
Rules depend on DEX2OATD, not DEX2OATD_DEPENDENCY.
If dex2oatd changes, we need to re-run .oat/.art file generation.
Change-Id: I43487e024745b22b1681f4ff558bac6fd07d9881
Vladimir Marko [Fri, 11 Jul 2014 13:44:36 +0000 (14:44 +0100)]
Fix null pointer check elimination for catch entries.
Remove the special treatment of catch blocks for null
pointer check elimination and class initialization check
elimination. In both cases this can help optimizing
previously missed cases. In the null check case, this
avoids incorrect optimization as exposed by the new test.
Bug:
16230771
Change-Id: I834b7a1835d9ca8572f4f8d8516d93913c701ad1
Jeff Hao [Wed, 23 Jul 2014 01:50:09 +0000 (01:50 +0000)]
Merge "Fix x86 instrumentation exit entrypoint and trace size limit."
Jeff Hao [Wed, 23 Jul 2014 01:38:42 +0000 (18:38 -0700)]
Fix x86 instrumentation exit entrypoint and trace size limit.
The x86 instruction movd only copies a 32-bit value when used with a
memory location. movsd properly copies 64-bits.
Bug:
16386215
Change-Id: Ia59b2c2af72ce5202c7b62413687aedb48cfd25e
Mathieu Chartier [Wed, 23 Jul 2014 01:01:30 +0000 (01:01 +0000)]
Merge "Recycle mem-maps for collector transitions."
Mathieu Chartier [Wed, 16 Jul 2014 20:28:58 +0000 (13:28 -0700)]
Recycle mem-maps for collector transitions.
We now create spaces when we need them for collector transitions or
homogeneous compaction by recycling mem maps. Change the bump
pointer space size to be as large as the heap capacity instead of
1/2 heap capacity like it used to be. For GSS, bump pointer spaces
are set to 32MB currently.
Changed GSS to have main space == non moving space since we don't
need to copy from the main space.
Fixes GC stress tests 074, 096.
Fixed test 080 oom throw with -Xmx2m for GC stress test, this was
broken since it was allocating a 4 MB array before starting the
OOM process.
Bug:
14059466
Bug:
16406852
Change-Id: I62877cfa24ec944a6f34ffac30334f454a8002fd
Andreas Gampe [Wed, 23 Jul 2014 01:43:30 +0000 (01:43 +0000)]
Merge "Changed default non-full tests to be prebuild."
Alex Light [Wed, 23 Jul 2014 01:07:12 +0000 (18:07 -0700)]
Changed default non-full tests to be prebuild.
Also added ability to turn off non-prebuild manually.
Change-Id: I0315ac43703a9c7e79812658523013799fb5d5dd
Mingyao Yang [Wed, 23 Jul 2014 00:35:01 +0000 (00:35 +0000)]
Merge "Fix build, missing spaces around =/<."
Mingyao Yang [Wed, 23 Jul 2014 00:33:25 +0000 (17:33 -0700)]
Fix build, missing spaces around =/<.
Change-Id: I2e7824075626a07eccb0a5eb77ef157214fe70fb
Ian Rogers [Tue, 22 Jul 2014 22:05:57 +0000 (22:05 +0000)]
Merge "Put oat test output on stderr."
Ian Rogers [Tue, 22 Jul 2014 21:22:22 +0000 (14:22 -0700)]
Put oat test output on stderr.
Change-Id: Iad318f63263dc5d264d8a84eacedf5065a4e5248
Andreas Gampe [Tue, 22 Jul 2014 21:09:07 +0000 (21:09 +0000)]
Merge "ART: Fix checks for relocation delta"
Andreas Gampe [Tue, 22 Jul 2014 21:04:34 +0000 (14:04 -0700)]
ART: Fix checks for relocation delta
Change < to <= and > to >=.
Change-Id: I7579e3c13dc1b33801ace3a0f8d85cadaee41e6e
Andreas Gampe [Tue, 22 Jul 2014 20:57:39 +0000 (20:57 +0000)]
Merge "ART: Blacklist relocate option in oat tests"
Andreas Gampe [Tue, 22 Jul 2014 18:46:28 +0000 (11:46 -0700)]
ART: Blacklist relocate option in oat tests
To avoid overwriting issues when running the relocate option for
oat tests, blacklist them.
Change-Id: I37685a761fd0949502da134690d88ba2a399ea44
Mingyao Yang [Tue, 22 Jul 2014 22:05:50 +0000 (22:05 +0000)]
Merge "Set vtable in class object to null after linking."
Mingyao Yang [Wed, 16 Jul 2014 17:44:41 +0000 (10:44 -0700)]
Set vtable in class object to null after linking.
This is follow-up work of embedding imt and vtable for
faster interface/virtual call dispatching.
Once vtable becomes embedded, the original vtable is nulled.
Change-Id: I307696657d1e283654169dbecb8f7815c42bbabc
Andreas Gampe [Tue, 22 Jul 2014 21:40:47 +0000 (21:40 +0000)]
Merge "Made sync-test actually wait for first thread to start."
Alex Light [Tue, 22 Jul 2014 21:04:31 +0000 (14:04 -0700)]
Made sync-test actually wait for first thread to start.
This makes sure that the threads execute in the order we expect.
Change-Id: I0c4976e72ef2eb9e5fd66184eb1cd4821ea1e42b
Andreas Gampe [Tue, 22 Jul 2014 15:25:28 +0000 (15:25 +0000)]
Merge "Runtime can now be set to require relocation"
Alex Light [Wed, 2 Jul 2014 23:28:08 +0000 (16:28 -0700)]
Runtime can now be set to require relocation
Add a pair of runtime flags -Xrelocate and -Xnorelocate that can force
the runtime to require that all files that are run are relocated, to
prevent attacks based on the known art base address.
Add support for running patchoat on oat files compiled without an image.
Change run-test to have new --prebuild and --relocate flags.
Bug:
15358152
Change-Id: I91166c62dd1ab80e5cbcb7883a2cd0d56afca32d
Hiroshi Yamauchi [Mon, 21 Jul 2014 18:01:22 +0000 (18:01 +0000)]
Merge "Add read barriers for the GC roots in Instrumentation."
Hiroshi Yamauchi [Fri, 18 Jul 2014 22:38:17 +0000 (15:38 -0700)]
Add read barriers for the GC roots in Instrumentation.
Bug:
12687968
Change-Id: I324e2f950ce4500b0e00722044af3a9c82487b23
Ian Rogers [Mon, 21 Jul 2014 16:37:48 +0000 (16:37 +0000)]
Merge "Fix erroneous behaviors with OOME present."
Ian Rogers [Mon, 21 Jul 2014 15:55:01 +0000 (08:55 -0700)]
Fix erroneous behaviors with OOME present.
Bug:
16454510
Change-Id: I757088a7b82ff73f58aba8d357080028b56442e6
Nicolas Geoffray [Tue, 22 Jul 2014 16:57:58 +0000 (16:57 +0000)]
Merge "Make unit test tell if a method is a leaf."
Nicolas Geoffray [Tue, 22 Jul 2014 16:47:56 +0000 (17:47 +0100)]
Make unit test tell if a method is a leaf.
The runtime is not initialized completely in gtests, so we
cannot run code (such as explicit stack overflow checks) that
look at tls values.
Change-Id: I74a4449b01eb203f1b411dda700e9459878d0d55
Nicolas Geoffray [Tue, 22 Jul 2014 15:12:37 +0000 (15:12 +0000)]
Merge "Stack overflow checks and NPE checks for optimizing."
Nicolas Geoffray [Thu, 17 Jul 2014 17:32:41 +0000 (18:32 +0100)]
Stack overflow checks and NPE checks for optimizing.
Change-Id: I59e97448bf29778769b79b51ee4ea43f43493d96
Ian Rogers [Tue, 22 Jul 2014 08:01:10 +0000 (08:01 +0000)]
Merge "Avoid marking erroneous classes as erroneous twice."
Ian Rogers [Tue, 22 Jul 2014 07:59:52 +0000 (00:59 -0700)]
Avoid marking erroneous classes as erroneous twice.
Change-Id: I1f340a6054cf36f6b4ba7d85cfd05b1c677dced7
Andreas Gampe [Tue, 22 Jul 2014 06:51:47 +0000 (06:51 +0000)]
Merge "ART: Throw StackOverflowError in native code"
Andreas Gampe [Mon, 14 Jul 2014 23:21:44 +0000 (16:21 -0700)]
ART: Throw StackOverflowError in native code
Initialize stack-overflow errors in native code to be able to reduce
the preserved area size of the stack.
Includes a refactoring away from constexpr in instruction_set.h to allow
for easy changing of the values.
Change-Id: I117cc8485f43da5f0a470f0f5e5b3dc3b5a06246
Ian Rogers [Tue, 22 Jul 2014 03:39:52 +0000 (03:39 +0000)]
Merge "Redirect failing test output to stderr."
Ian Rogers [Tue, 22 Jul 2014 03:28:31 +0000 (20:28 -0700)]
Redirect failing test output to stderr.
Change-Id: I8feeeef569854476d33fdc613182dbe16f7ba53c
Ian Rogers [Tue, 22 Jul 2014 02:58:25 +0000 (02:58 +0000)]
Merge "ART: Increase command buffer size in assembler_thumb_test"
Andreas Gampe [Tue, 22 Jul 2014 01:32:59 +0000 (18:32 -0700)]
ART: Increase command buffer size in assembler_thumb_test
Change-Id: I5fe0014a2928772650bdb120a877eb9624bf7651
Mathieu Chartier [Mon, 21 Jul 2014 20:54:24 +0000 (20:54 +0000)]
Merge "Add detection of zygote vs app vs image objects in hprof"
Mathieu Chartier [Sat, 19 Jul 2014 00:58:22 +0000 (17:58 -0700)]
Add detection of zygote vs app vs image objects in hprof
Bug:
16406673
Change-Id: Ic3e4a809c00b8379e42b074f9032ac106138be67
Andreas Gampe [Tue, 22 Jul 2014 05:32:12 +0000 (05:32 +0000)]
Merge "ART: Check high part of dalvik register pairs on put-wide"
Andreas Gampe [Tue, 22 Jul 2014 05:11:42 +0000 (22:11 -0700)]
ART: Check high part of dalvik register pairs on put-wide
When verifying a put-wide, it is necessary to check the lo and the hi
register for the right type.
Bug:
16018242
Change-Id: I9e661951d592e155e0f281ea959e778d8f4a67ab
Nicolas Geoffray [Mon, 21 Jul 2014 12:40:53 +0000 (12:40 +0000)]
Merge "Fix sizeof -> strlen to get the test to run on build servers."
Nicolas Geoffray [Mon, 21 Jul 2014 10:51:32 +0000 (11:51 +0100)]
Fix sizeof -> strlen to get the test to run on build servers.
Change-Id: I8501d02a9bc5f84a769a80d46d0ec5754c972e5d
Nicolas Geoffray [Mon, 21 Jul 2014 10:14:31 +0000 (10:14 +0000)]
Merge "Add write barriers to optimizing compiler."
Nicolas Geoffray [Thu, 17 Jul 2014 14:15:34 +0000 (15:15 +0100)]
Add write barriers to optimizing compiler.
Change-Id: I43a40954757f51d49782e70bc28f7c314d6dbe17
Nicolas Geoffray [Mon, 21 Jul 2014 09:10:54 +0000 (09:10 +0000)]
Merge "Add assembly operations with constants in optimizing compiler."
Nicolas Geoffray [Fri, 11 Jul 2014 09:57:49 +0000 (10:57 +0100)]
Add assembly operations with constants in optimizing compiler.
Change-Id: I5bcc35ab50d4457186effef5592a75d7f4e5b65f
Nicolas Geoffray [Tue, 22 Jul 2014 15:18:57 +0000 (15:18 +0000)]
Merge "Interpreter can kick in even when implicit checks are enabled."
Nicolas Geoffray [Tue, 22 Jul 2014 14:17:38 +0000 (15:17 +0100)]
Interpreter can kick in even when implicit checks are enabled.
Add a GetStackEndForInterpreter for its stack overfow check.
Change-Id: I2d4fc229a8eb727fda509ff778e16d60d96ecc28
Vladimir Marko [Tue, 22 Jul 2014 14:34:40 +0000 (14:34 +0000)]
Merge "Use vabs/fabs on arm/arm64 for intrinsic abs()."
Vladimir Marko [Thu, 17 Jul 2014 09:43:08 +0000 (10:43 +0100)]
Use vabs/fabs on arm/arm64 for intrinsic abs().
Bug:
11579369
Change-Id: If09da85e22786faa13a2d74f62cee68ea67bd087
Hiroshi Yamauchi [Fri, 18 Jul 2014 00:16:30 +0000 (00:16 +0000)]
Merge "Fix two read barrier bugs introduced in CL 97882."
Hiroshi Yamauchi [Thu, 17 Jul 2014 23:16:31 +0000 (16:16 -0700)]
Fix two read barrier bugs introduced in CL 97882.
Bug:
12687968
Change-Id: Ib28da4c33977cc58b09913ef5b738dec75365714
Ian Rogers [Sat, 19 Jul 2014 05:41:18 +0000 (05:41 +0000)]
Merge "Fix the name of a black listed run-test."
Ian Rogers [Sat, 19 Jul 2014 05:38:56 +0000 (22:38 -0700)]
Fix the name of a black listed run-test.
Change-Id: I1ac4d28bd959b33066cce32812613c2e27d40f7e
Ian Rogers [Sat, 19 Jul 2014 03:56:27 +0000 (20:56 -0700)]
Black list timing sensitive tests from gcverify and gcstress
but only when run on build servers.
Change-Id: Icb3b125142d75bd4cc140c9f8ef7abf1d6451c5a
Ian Rogers [Sat, 19 Jul 2014 02:52:07 +0000 (19:52 -0700)]
Black list more trace tests.
Bug:
16386215
Change-Id: Ieda8306f9419669935f5452a1765c09ff898ff7f
Ian Rogers [Sat, 19 Jul 2014 03:59:07 +0000 (03:59 +0000)]
Merge "Black list timing sensitive tests from gcverify and gcstress"
Ian Rogers [Fri, 18 Jul 2014 23:09:06 +0000 (23:09 +0000)]
Merge "Run-test fix."
Ian Rogers [Fri, 18 Jul 2014 22:55:59 +0000 (15:55 -0700)]
Run-test fix.
Change-Id: I601d425582a69f77786a76d625079f3ca5974428
Ian Rogers [Fri, 18 Jul 2014 22:13:37 +0000 (22:13 +0000)]
Merge "Add a GC stress run that uses a moving collector and small heap sizes."
Ian Rogers [Fri, 18 Jul 2014 22:06:53 +0000 (15:06 -0700)]
Add a GC stress run that uses a moving collector and small heap sizes.
Disable 3 run-tests for this configuration that fail for reasons relating to
OOME handling.
Add 012-math to the failing trace tests, it fails due to hitting a file size
limit when running in the interpreter.
Change-Id: Ia58f4c245d9d2d14caf5f2f2f3dcbfa40d4ccadb
Andreas Gampe [Fri, 18 Jul 2014 19:17:01 +0000 (19:17 +0000)]
Merge "ART: Improve overflow detection in dex file verifier"
Andreas Gampe [Fri, 18 Jul 2014 04:49:24 +0000 (21:49 -0700)]
ART: Improve overflow detection in dex file verifier
Overflows were hidden by the design of the checks. Push all range
checks as lists, so we can explicitly check against the count.
Bug:
16017886
Change-Id: I0083f83006ef1e55518b0919dff319004b66dcb8
Ian Rogers [Fri, 18 Jul 2014 18:50:37 +0000 (18:50 +0000)]
Merge "Add GC verification test rules."
Ian Rogers [Fri, 18 Jul 2014 18:38:13 +0000 (11:38 -0700)]
Add GC verification test rules.
Change-Id: I7469ecaf98f680e7e642035f3536b00bdd97b486
Ian Rogers [Fri, 18 Jul 2014 18:02:19 +0000 (11:02 -0700)]
Allow optimizing and trace tests to be not run.
Make it so that optimizing and trace tests can be chosen to be not run.
mm -j32 test-art
will run all optimizing and trace tests.
mm -j32 test-art ART_TEST_FULL=false
will not run optimizing and trace tests.
mm -j32 test-art ART_TEST_FULL=false ART_TEST_OPTIMIZING=true
will not run trace tests but will run optimizing tests.
Change-Id: I9c04d9489f08fb837da5561d9496c97aee7c4a4a
Ian Rogers [Fri, 18 Jul 2014 18:17:41 +0000 (18:17 +0000)]
Merge "Allow optimizing and trace tests to be not run."
Ian Rogers [Fri, 18 Jul 2014 15:39:41 +0000 (15:39 +0000)]
Merge "Improved implementation of inline of String.indexOf"
nikolay serdjuk [Fri, 18 Jul 2014 05:35:46 +0000 (12:35 +0700)]
Improved implementation of inline of String.indexOf
This version pushes EDI only once and only in 32-bit mode.
Change-Id: I4e871d3531ac539536f8f53ec09ffb664409c9cc
Ian Rogers [Fri, 18 Jul 2014 15:21:35 +0000 (15:21 +0000)]
Merge "Add optimized assembler implementation of __memcmp16 for x86."
Andreas Gampe [Fri, 18 Jul 2014 17:39:47 +0000 (17:39 +0000)]
Merge "ART: Do not attempt to compile a method with too many registers"
Andreas Gampe [Fri, 18 Jul 2014 01:04:32 +0000 (18:04 -0700)]
ART: Do not attempt to compile a method with too many registers
The mir_graph has a hard limit on how many ssa registers it can
handle, and will silently fail or fatal out in debug builds when
more SSA registers are necessary. This adds a check in the frontend
that tries to catch some of these cases, and makes the DCHECK a
CHECK to not silently fail.
Bug:
16018097
Change-Id: Iad82178945a8f8c34943cc7573fd73d2b4decade
Ian Rogers [Sat, 19 Jul 2014 03:12:33 +0000 (03:12 +0000)]
Merge "Black list more trace tests."
Andreas Gampe [Fri, 18 Jul 2014 23:40:02 +0000 (23:40 +0000)]
Merge "ART: Also accept java.lang.Throwable as a catch-all handler."
Andreas Gampe [Fri, 18 Jul 2014 22:41:00 +0000 (15:41 -0700)]
ART: Also accept java.lang.Throwable as a catch-all handler.
Accept catch handlers with catch type of java.lang.Throwable as
catch-all handlers.
Bug:
16308310
Change-Id: Ie9b9582ee71c94c82b7695dc6f9c2c6df3d869d8
Ian Rogers [Fri, 18 Jul 2014 15:08:14 +0000 (15:08 +0000)]
Merge "ART: inline Math.Max/Min (float and double)"
Calin Juravle [Fri, 18 Jul 2014 13:25:27 +0000 (13:25 +0000)]
Merge "Fix bad comment in class_linker"
Vladimir Marko [Fri, 18 Jul 2014 09:52:54 +0000 (09:52 +0000)]
Merge "Fix GVN to handle normal paths leading to catch entry."
Nicolas Geoffray [Fri, 18 Jul 2014 09:32:24 +0000 (09:32 +0000)]
Merge "We can also run the linear scan register allocator on thumb."
Nicolas Geoffray [Fri, 18 Jul 2014 09:23:59 +0000 (10:23 +0100)]
We can also run the linear scan register allocator on thumb.
Change-Id: I5d21b5cbcdd93ff36342111de4ebcaab172034dd
Andreas Gampe [Fri, 18 Jul 2014 03:53:31 +0000 (03:53 +0000)]
Merge "ART: Fail dex file verification on invalid access flags"