OSDN Git Service
Nicolas Geoffray [Wed, 18 Jan 2017 12:40:59 +0000 (12:40 +0000)]
Merge "Entrypoints cleanup."
Treehugger Robot [Wed, 18 Jan 2017 12:28:27 +0000 (12:28 +0000)]
Merge "Blacklist tests for flaky no-image."
Nicolas Geoffray [Fri, 13 Jan 2017 16:04:53 +0000 (16:04 +0000)]
Entrypoints cleanup.
Remove unused ones to facilitate the transition to compressed
dex caches.
test: test-art-host, test-art-target
Change-Id: I1d1cb0daffa86dd9dda2eaa3c1ea3650a5c8d9d0
Nicolas Geoffray [Wed, 18 Jan 2017 11:08:02 +0000 (11:08 +0000)]
Blacklist tests for flaky no-image.
bug:
34369284
Change-Id: I09db432db8d99223f4f41e2d7bda7927ad5af9d5
Vladimir Marko [Wed, 18 Jan 2017 10:52:20 +0000 (10:52 +0000)]
Merge "Reduce using ArtMethod's dex_cache_resolved_types_."
Vladimir Marko [Wed, 18 Jan 2017 10:25:54 +0000 (10:25 +0000)]
Merge "MIPS: Fix polymorphic invokes."
Alexey Frunze [Tue, 17 Jan 2017 03:03:21 +0000 (19:03 -0800)]
MIPS: Fix polymorphic invokes.
This fixes MIPS-specific optimizing compiler bugs introduced in
commit
ac141397dc29189ad2b2df41f8d4312246beec60.
The below tests still fail in interpreter mode and this will be
addressed separately.
Test: booted MIPS32R2 in QEMU
Test: ./run-test --optimizing 953-invoke-polymorphic-compiler
Test: ./run-test --optimizing 955-methodhandles-smali
Test: ./run-test --optimizing 956-methodhandles
Test: ./run-test --optimizing 957-methodhandle-transforms
Test: ./run-test --optimizing 958-methodhandle-emulated-stackframe
Test: ./run-test --optimizing 959-invoke-polymorphic-accessors
Test: booted MIPS64 (with 2nd arch MIPS32R6) in QEMU
Test: same tests as above and
Test: ./run-test --optimizing --64 953-invoke-polymorphic-compiler
Test: ./run-test --optimizing --64 955-methodhandles-smali
Test: ./run-test --optimizing --64 956-methodhandles
Test: ./run-test --optimizing --64 957-methodhandle-transforms
Test: ./run-test --optimizing --64 958-methodhandle-emulated-stackframe
Test: ./run-test --optimizing --64 959-invoke-polymorphic-accessors
Change-Id: I6119e8b86448e022f68b10cd3a8912a2bd1976c5
Andreas Gampe [Wed, 18 Jan 2017 02:51:15 +0000 (02:51 +0000)]
Merge "Revert "Revert "ART: Add ThreadGroup API support"""
Mathieu Chartier [Wed, 18 Jan 2017 00:39:08 +0000 (00:39 +0000)]
Merge "Do test_getStackTraces last for test 129"
Andreas Gampe [Tue, 17 Jan 2017 23:44:38 +0000 (23:44 +0000)]
Merge "ART: Disable app images for test 912"
Andreas Gampe [Tue, 17 Jan 2017 23:18:05 +0000 (23:18 +0000)]
Merge "ART: Fix missing CLOCK_MONOTONIC on Mac"
Andreas Gampe [Mon, 16 Jan 2017 16:08:45 +0000 (16:08 +0000)]
Revert "Revert "ART: Add ThreadGroup API support""
This reverts commit
87071bfb6c1b708bdfa2a5f91d4744667b3a0443.
Add an ObjectLock, which corresponds to the synchronized(this)
implementation on the Java side. Wait for the expected five
child threads in the root group before running the actual
child test.
Bug:
31455788
Change-Id: Ib7a065d6a11f06f0325e3a8db040629f3ca69407
Test: m test-art-host-run-test-925-threadgroups
Aart Bik [Tue, 17 Jan 2017 22:10:25 +0000 (22:10 +0000)]
Merge "Introduce a number of SIMD extensions for x86/x86_64 (SSE)."
Andreas Gampe [Tue, 17 Jan 2017 22:01:50 +0000 (14:01 -0800)]
ART: Disable app images for test 912
To have precise info for actually loaded classes.
Bug:
31684578
Test: m ART_TEST_INTERPRETER=true test-art-host-run-test-912-classes
Change-Id: I06a9303befab40c619f9d1e3d677024c8f3b0ba3
Andreas Gampe [Tue, 17 Jan 2017 21:32:52 +0000 (13:32 -0800)]
ART: Fix missing CLOCK_MONOTONIC on Mac
Fix the Mac build.
Bug:
31455788
Test: m
Change-Id: I03e927c28fe62abc1b14ea799190d00a081f33f7
Treehugger Robot [Tue, 17 Jan 2017 21:23:15 +0000 (21:23 +0000)]
Merge "Revert "Revert "Try really hard for JIT in test 916"""
Nicolas Geoffray [Tue, 17 Jan 2017 21:19:02 +0000 (21:19 +0000)]
Merge "Revert "Remove unused code for patching oat files.""
Nicolas Geoffray [Tue, 17 Jan 2017 21:18:34 +0000 (21:18 +0000)]
Revert "Remove unused code for patching oat files."
oat_file_assistant_test fails on target.
Bug:
33192586
This reverts commit
c9f76628ce1dc54f852b689ed1722b7e154b2a9d.
Change-Id: Ie3b8900ed16d0f4033a76c7eb60ac8e9ad13f089
Mathieu Chartier [Tue, 17 Jan 2017 19:05:20 +0000 (11:05 -0800)]
Do test_getStackTraces last for test 129
Doing this check last leaves time for the heap task daemon to call
TaskProcessor::RunAllTasks. This should hopefully fix the flakiness
of test 129 during startup.
Test: test-art-host-run-test
Bug:
34342857
Change-Id: I85f8d78083092df802728c59a4c86f63be8d949a
Treehugger Robot [Tue, 17 Jan 2017 20:32:42 +0000 (20:32 +0000)]
Merge "ART: Add three Timer functions"
Andreas Gampe [Sat, 14 Jan 2017 00:24:17 +0000 (16:24 -0800)]
ART: Add three Timer functions
Add support for GetAvailableProcessors, GetTimerInfo and GetTime.
Add tests.
Bug:
31455788
Test: m test-art-host-run-test-926-timers
Change-Id: I9629654349787e27dee686284567b5de70e138f2
Treehugger Robot [Tue, 17 Jan 2017 18:15:57 +0000 (18:15 +0000)]
Merge "ART: Add GetClassLoaderClasses"
Treehugger Robot [Tue, 17 Jan 2017 18:15:44 +0000 (18:15 +0000)]
Merge "ART: Add SetVerboseFlags"
Alex Light [Sat, 14 Jan 2017 01:48:01 +0000 (01:48 +0000)]
Revert "Revert "Try really hard for JIT in test 916""
We were looping forever waiting for the entrypoint to be switched
despite the JIT being disabled by the tracing instrumentation.
This reverts commit
ca4feac9484464a858990ca588398fceead55354.
Reason for revert: Problem with ensureJitCompiled fixed
Test: ART_TEST_TRACE=true \
ART_TEST_OPTIMIZING=false \
ART_TEST_INTERPRETER=true \
ART_USE_READ_BARRIER=false \
mma -j40 test-art-host-run-test-916-obsolete-jit
Change-Id: I11f1e3f6cf65f90509a1ba66625a7988f3d94af6
Narayan Kamath [Tue, 17 Jan 2017 17:05:33 +0000 (17:05 +0000)]
Merge "MethodHandles: Remove experimental flag."
Narayan Kamath [Tue, 17 Jan 2017 13:20:55 +0000 (13:20 +0000)]
MethodHandles: Remove experimental flag.
Runtime::IsMethodHandlesEnabled now always returns true.
This change also removes the (now unnecessary) run scripts
for method handle tests.
Note that the --experimental=method-handles flag is left in
place for the test build steps (etc/default-build) because it's still a
convenient way to supply arguments to jack / smali.
Test: make test-art-host
Change-Id: I8475c7b8ac2615ac382a06ce54be39dce3cc7713
Vladimir Marko [Mon, 16 Jan 2017 20:52:19 +0000 (20:52 +0000)]
Reduce using ArtMethod's dex_cache_resolved_types_.
Avoid using the ArtMethod's dex cache type array shortcut
in runtime, preparing for its removal. We do not completely
remove the shortcut yet because it is still used by array
allocation entrypoints.
Fix ArgArray::BuildArgArrayFromObjectArray in reflection.cc
to not ask for the parameter type to be resolved. It should
have been previously resolved when retrieving the Method.
Also partially revert
https://android-review.googlesource.com/310717
because it relied on the removed AIOOBE check in the removed
ArtMethod::GetDexCacheResolvedType(). The removed check was
simply defensive but it could not be triggered without some
memory corruption.
Test: m test-art-host
Bug:
30627598
Change-Id: Ic45a5ff8c66b79429e440cbc08d67bf22a083682
Nicolas Geoffray [Tue, 17 Jan 2017 15:48:00 +0000 (15:48 +0000)]
Merge "Acquire the mutator lock before comparing classes/strings."
Treehugger Robot [Tue, 17 Jan 2017 15:07:48 +0000 (15:07 +0000)]
Merge "Move some fields in art::Thread to reduce maintenance burden."
Nicolas Geoffray [Mon, 16 Jan 2017 22:57:39 +0000 (22:57 +0000)]
Acquire the mutator lock before comparing classes/strings.
Scratch my initial thought we woudldn't need it because the
handlescope is visited during the pause: as the compiler thread
is in state native, the GC can concurrently update the handlescope,
leading to false negatives when doing class/string equality.
bug:
34240874
test: test-art-host gcstress
Change-Id: Icda0722fb49300a7de57e1c5d1efaa9e8dbda83f
Roland Levillain [Mon, 16 Jan 2017 14:58:23 +0000 (14:58 +0000)]
Move some fields in art::Thread to reduce maintenance burden.
Move fields `thread_local_start`, `thread_local_pos`,
`thread_local_end` and `thread_local_objects` before fields
`jni_entrypoints` and `quick_entrypoints` within
art::Thread, to avoid repetitive art::Thread field moves in
future CLs caused by the addition or deletion of entry
points.
Test: m test-art-host
test: m test-art-target (on ARM)
Change-Id: Ib67842e44a7f21a871ca4d1bb95dc6f7cfedc829
Treehugger Robot [Tue, 17 Jan 2017 11:50:17 +0000 (11:50 +0000)]
Merge "Remove unused code for patching oat files."
Nicolas Geoffray [Tue, 17 Jan 2017 10:25:57 +0000 (10:25 +0000)]
Merge "Put the resolved class in HLoadClass."
Narayan Kamath [Tue, 17 Jan 2017 10:24:03 +0000 (10:24 +0000)]
Merge "MethodHandles: Implement invoker / exactInvoker."
Nicolas Geoffray [Tue, 17 Jan 2017 10:22:01 +0000 (10:22 +0000)]
Merge "Handle verify-profile and bootclasspath classes in vdex."
Vladimir Marko [Tue, 17 Jan 2017 10:04:27 +0000 (10:04 +0000)]
Merge "Fix missing OOME check in reflection."
Richard Uhler [Thu, 12 Jan 2017 15:27:45 +0000 (15:27 +0000)]
Remove unused code for patching oat files.
patchoat is now only used for patching images. It no longer needs to
support patching of non-PIC oat files. This change removes code from
patchoat that was specific to patching of non-PIC oat files.
Bug:
33192586
Test: m test-art-host
Test: device boots
Change-Id: I8918a708e441493a21f25d537ed0b74748bb9641
Narayan Kamath [Tue, 17 Jan 2017 09:24:18 +0000 (09:24 +0000)]
Merge "MethodHandles: Add tests for MethodHandles.Lookup.bind"
Nicolas Geoffray [Tue, 17 Jan 2017 09:16:31 +0000 (09:16 +0000)]
Merge "Put inlined ArtMethod pointer in stack maps."
Nicolas Geoffray [Tue, 17 Jan 2017 09:02:44 +0000 (09:02 +0000)]
Merge "Fix braino in RTP."
Andreas Gampe [Mon, 16 Jan 2017 22:20:10 +0000 (14:20 -0800)]
ART: Add GetClassLoaderClasses
Add support for GetClassLoaderClasses, extracting all classes a
given classloader initiated. Add test.
Bug:
31684578
Test: m test-art-host-run-test-912-classes
Change-Id: I0aba27fb1674baf1263c0a19dc2dcce7af013760
Nicolas Geoffray [Fri, 13 Jan 2017 14:17:29 +0000 (14:17 +0000)]
Put the resolved class in HLoadClass.
To avoid repeated lookups in sharpening/rtp/inlining.
Test: test-art-host test-art-target
Change-Id: I08d0da36a4bb061cdaa490ea2af3a3217a875bbe
Vladimir Marko [Mon, 16 Jan 2017 22:42:09 +0000 (22:42 +0000)]
Fix missing OOME check in reflection.
Test: 080-oom-throw
Change-Id: I5f18ea756e815978bf8682555470505959a8fad5
Nicolas Geoffray [Thu, 12 Jan 2017 13:25:19 +0000 (13:25 +0000)]
Put inlined ArtMethod pointer in stack maps.
Currently done for JIT. Can be extended for AOT and inlined boot
image methods.
Also refactor the lookup of a inlined method at runtime to not
rely on the dex cache, but look at the class loader tables.
bug:
30933338
test: test-art-host, test-art-target
Change-Id: I58bd4d763b82ab8ca3023742835ac388671d1794
Nicolas Geoffray [Mon, 16 Jan 2017 17:54:09 +0000 (17:54 +0000)]
Handle verify-profile and bootclasspath classes in vdex.
Two problems:
1) An apk might define a class twice, or define a class that
is already in the bootclasspath, or define a class that
in the future happens to be in the bootclasspath.
2) verify-profile does not make classes that were not verified
as verify-at-runtime for vdex.
Fixes:
1) Check that the resolved class is part of the dex file that
we are currently looking into. If not, don't update its
verification status.
2) Make unverified classes as such when they are not in the profile.
bug:
34108532
Test: 634-vdex-duplicate
Change-Id: I77c5e417c16c91af257b88b6456d07c0e4c2ca93
Treehugger Robot [Mon, 16 Jan 2017 18:58:33 +0000 (18:58 +0000)]
Merge "ART: Add Thread TLS support"
Narayan Kamath [Mon, 16 Jan 2017 17:48:28 +0000 (17:48 +0000)]
MethodHandles: Implement invoker / exactInvoker.
Accompanies libcore commit
0a72753297b45d08ca33cf7e87888f5fee87f69e.
- Adds callsiteType field to mirror::EmulatedStackFrame.
- Adds unit tests for MethodHandles.invoker /
MethodHandles.exactInvoker.
Test: art/test/run-test --host 957
Change-Id: Ia27742c80de560a5b38f792bfa97664678cec8ae
Nicolas Geoffray [Mon, 16 Jan 2017 15:08:56 +0000 (15:08 +0000)]
Fix braino in RTP.
We should use the `compare` instruction, and not the `check`
instruction.
Test: test-art-host, 633-checker-rtp-getclass
bug:
34273618
Change-Id: I388ec92974202da3a318921097a14462f3f3f8b6
Andreas Gampe [Sat, 14 Jan 2017 00:47:14 +0000 (16:47 -0800)]
ART: Add Thread TLS support
Add support for GetThreadLocalStorage and SetThreadLocalStorage.
Add test.
Bug:
31684593
Test: m test-art-host-run-test-924-threads
Change-Id: Ia2e567a832716b076a61664809ab29290fffcb70
Treehugger Robot [Mon, 16 Jan 2017 16:07:49 +0000 (16:07 +0000)]
Merge "ART: Add GetAllThreads"
Treehugger Robot [Mon, 16 Jan 2017 15:50:46 +0000 (15:50 +0000)]
Merge changes I168f24de,I8ec60a98,I3c426ed7,Ic809b0f3
* changes:
Implement HLoadClass/kBssEntry for boot image.
Store resolved types for AOT code in .bss.
Make runtime call on main for HLoadClass/kDexCacheViaMethod.
Remove HLoadClass::LoadKind::kDexCachePcRelative.
Narayan Kamath [Mon, 16 Jan 2017 14:56:19 +0000 (14:56 +0000)]
MethodHandles: Add tests for MethodHandles.Lookup.bind
Test: art/test/run-test --host 956
Change-Id: I76f1fb69e7213dfcfadcc64641fe2afce46ed6cb
Orion Hodson [Mon, 16 Jan 2017 14:45:28 +0000 (14:45 +0000)]
Merge "ART: Fix artInvokePolymorphic."
Treehugger Robot [Mon, 16 Jan 2017 14:39:03 +0000 (14:39 +0000)]
Merge "MIPS64: Make GetFeatureString() returns default instead of empty string"
Orion Hodson [Mon, 16 Jan 2017 13:52:20 +0000 (13:52 +0000)]
ART: Fix artInvokePolymorphic.
artInvokePolymorphic called the wrong visit method on
RememberForGcArgumentVisitor. It should have called VisitArguments()
rather than Visit().
Bug:
30550796,
33191393
Test: art/test/run-test 953
Test: m test-art-run-test
Change-Id: I46442203e8dc7000efd2cd64b2dcd5ed83163be6
Vladimir Marko [Fri, 13 Jan 2017 13:02:58 +0000 (13:02 +0000)]
Implement HLoadClass/kBssEntry for boot image.
Test: m test-art-host
Test: m test-art-host with CC
Test: m test-art-target on Nexus 9
Test: Nexus 9 boots.
Test: Build aosp_mips64-eng
Bug:
30627598
Change-Id: I168f24dedd5fb54a1e4215ecafb947ffb0dc3280
Treehugger Robot [Mon, 16 Jan 2017 12:39:37 +0000 (12:39 +0000)]
Merge "Revert "ART: Add ThreadGroup API support""
Vladimir Marko [Mon, 9 Jan 2017 15:03:12 +0000 (15:03 +0000)]
Store resolved types for AOT code in .bss.
Test: m test-art-host
Test: m test-art-target on Nexus 9.
Test: Nexus 9 boots.
Test: Build aosp_mips64-eng.
Bug:
30627598
Bug:
34193123
Change-Id: I8ec60a98eb488cb46ae3ea56341f5709dad4f623
Vladimir Marko [Fri, 6 Jan 2017 14:04:23 +0000 (14:04 +0000)]
Make runtime call on main for HLoadClass/kDexCacheViaMethod.
Remove dependency of the compiled code on types dex cache
array in preparation for changing to a hash-based array.
Test: m test-art-host
Test: m test-art-target on Nexus 9
Bug:
30627598
Change-Id: I3c426ed762c12eb9eb4bb61ea9a23a0659abf0a2
Vladimir Marko [Fri, 6 Jan 2017 11:45:47 +0000 (11:45 +0000)]
Remove HLoadClass::LoadKind::kDexCachePcRelative.
Test: m test-art-host
Test: m test-art-target-run-test-552-checker-sharpening
Bug:
30627598
Change-Id: Ic809b0f3a8ed0bd4dc7ab67aa64866f9cdff9bdb
Orion Hodson [Mon, 16 Jan 2017 12:05:10 +0000 (12:05 +0000)]
Merge "Revert "Revert "ART: Compiler support for invoke-polymorphic."""
Nicolas Geoffray [Mon, 16 Jan 2017 10:27:16 +0000 (10:27 +0000)]
Revert "ART: Add ThreadGroup API support"
Test fails
Bug:
31455788
This reverts commit
02afcde4132070d925838bc09c0f24d1bd45273d.
Change-Id: I470becb29fda54db0db6f764a83efc926badb555
Goran Jakovljevic [Mon, 16 Jan 2017 09:22:29 +0000 (10:22 +0100)]
MIPS64: Make GetFeatureString() returns default instead of empty string
Since there isn't any feature left for MIPS64 (smp was recently
removed), GetFeatureString() returns an empty string. This causes
failures when running run-tests. dex2oat fails with following message:
Error parsing '--instruction-set-features=': No instruction set
features specified
Also change expectations in instruction_set_features_mips64_test.
Test: mma test-art-host-gtest
Test: mma test-art-target-gtest-instruction_set_features_mips64_test
Change-Id: Icc60a676a1b2fb10f89c888fa8a0d21fd0a105b5
Orion Hodson [Fri, 13 Jan 2017 11:53:47 +0000 (11:53 +0000)]
Revert "Revert "ART: Compiler support for invoke-polymorphic.""
This reverts commit
0fb5af1c8287b1ec85c55c306a1c43820c38a337.
This takes us back to the original change and attempts to fix the
issues encountered:
- Adds transition record push/pop around artInvokePolymorphic.
- Changes X86/X64 relocations for MacSDK.
- Implements MIPS entrypoint for art_quick_invoke_polymorphic.
- Corrects size of returned reference in art_quick_invoke_polymorphic
on ARM.
Bug:
30550796,
33191393
Test: art/test/run-test 953
Test: m test-art-run-test
Change-Id: Ib6b93e00b37b9d4ab743a3470ab3d77fe857cda8
Andreas Gampe [Sat, 14 Jan 2017 01:54:46 +0000 (17:54 -0800)]
ART: Add SetVerboseFlags
Add support for SetVerboseFlags. Add test.
Bug:
31455788
Test: m test-art-host-run-test-901-hello-ti-agent
Change-Id: Iff8ae558c6003d3844b45bb4d7c8ec90998ab810
Alex Light [Sat, 14 Jan 2017 01:46:28 +0000 (01:46 +0000)]
Merge "Revert "Try really hard for JIT in test 916""
Alex Light [Sat, 14 Jan 2017 01:44:56 +0000 (01:44 +0000)]
Merge "Implement RedefineClasses, also redefine multiple classes atomically."
Aart Bik [Sat, 14 Jan 2017 00:20:08 +0000 (16:20 -0800)]
Introduce a number of SIMD extensions for x86/x86_64 (SSE).
Rationale:
As a first step exploring how useful an ART vectorizer may be,
introducing a number of floating-point SIMD instructions.
Test: assembler_x86[_64]_test
Bug:
34083438
Change-Id: I0285dd9fca51f31875a6bbe728f873c48089940d
Andreas Gampe [Sat, 14 Jan 2017 00:52:22 +0000 (00:52 +0000)]
Merge "ART: Add GetFrameCount and GetFrameLocation"
Andreas Gampe [Fri, 13 Jan 2017 22:40:58 +0000 (14:40 -0800)]
ART: Add GetAllThreads
Add support for GetAllThreads. Add a test.
Bug:
31684593
Test: m test-art-host-run-test-924-threads
Change-Id: I7068dd4d3700a32a87a44d38590e53df0bd238c7
Andreas Gampe [Fri, 13 Jan 2017 17:21:42 +0000 (09:21 -0800)]
ART: Add GetFrameCount and GetFrameLocation
Add support for GetFrameCount and GetFrameLocation. Add tests.
Bug:
31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: I7656e243f614eb0ceb5fcd6841128119fad89968
Alex Light [Fri, 13 Jan 2017 22:47:50 +0000 (22:47 +0000)]
Revert "Try really hard for JIT in test 916"
This reverts commit
a64fa43345124eb7891b9d6a6258f6ed0cbd1504.
Reason for revert: makes test-art-host-run-test-debug-prebuild-interpreter-relocate-trace-cms-checkjni-picimage-npictest-ndebuggable-916-obsolete-jit fail
Test: Treehugger
Change-Id: Idce6fc9310fe85ae62dd19da1e978299951c19ee
Alex Light [Tue, 10 Jan 2017 23:00:05 +0000 (15:00 -0800)]
Implement RedefineClasses, also redefine multiple classes atomically.
We need to be able to redefine multiple classes atomically for JVMTI.
This implements that behavior. It also implements RedefineClasses
since until we have class transformation it is trivial.
Test: mma -j40 test-art-host
Change-Id: I80784f919a4366c465b93fede94f4bf763c0ee70
Treehugger Robot [Fri, 13 Jan 2017 20:40:29 +0000 (20:40 +0000)]
Merge "ART: Remove suspension from AttachAgent"
Treehugger Robot [Fri, 13 Jan 2017 20:01:49 +0000 (20:01 +0000)]
Merge "Make our jvmti run-tests work with the RI again."
Treehugger Robot [Fri, 13 Jan 2017 19:56:51 +0000 (19:56 +0000)]
Merge "ART: Add ThreadGroup API support"
Treehugger Robot [Fri, 13 Jan 2017 19:53:13 +0000 (19:53 +0000)]
Merge "Try really hard for JIT in test 916"
Treehugger Robot [Fri, 13 Jan 2017 19:48:20 +0000 (19:48 +0000)]
Merge "Complete unrolling of loops with small body and trip count one."
Andreas Gampe [Fri, 13 Jan 2017 18:46:01 +0000 (10:46 -0800)]
ART: Remove suspension from AttachAgent
It conflicts with calls later. Every plugin needs to do local
protections for itself.
Follow-up to commit
ad2dc875ce29c3fafc1129a2a25184df28b66a10.
Bug:
31682382
Bug:
34275017
Test: m test-art-host-run-test-909-attach-agent
Change-Id: Ib698d880feb774a00c819ef14c27a48501ca1f13
Aart Bik [Wed, 11 Jan 2017 18:20:43 +0000 (10:20 -0800)]
Complete unrolling of loops with small body and trip count one.
Rationale:
Avoids the unnecessary loop control overhead, suspend check,
and exposes more opportunities for constant folding in the
resulting loop body. Fully unrolls loop in execute() of
the Dhrystone benchmark (3% to 8% improvements).
Test: test-art-host
Change-Id: If30f38caea9e9f87a929df041dfb7ed1c227aba3
Treehugger Robot [Fri, 13 Jan 2017 16:54:30 +0000 (16:54 +0000)]
Merge "ART: Add GetThreadListStackTraces"
Treehugger Robot [Fri, 13 Jan 2017 16:52:52 +0000 (16:52 +0000)]
Merge "ART: Refactor test 911"
Andreas Gampe [Fri, 13 Jan 2017 01:34:39 +0000 (17:34 -0800)]
ART: Add ThreadGroup API support
Add support for GetThreadGroupInfo, GetThreadGroupChildren and
GetTopThreadGroups. Add tests.
Bug:
31455788
Test: m test-art-host-run-test-925-threadgroups
Change-Id: I56809c95dfd2666c2e18769a8960d6b1604274b4
Alex Light [Mon, 9 Jan 2017 21:31:06 +0000 (13:31 -0800)]
Try really hard for JIT in test 916
Sometimes we would fail to jit stuff due to high load. This makes us
try even harder to JIT so we won't fail in these scenarios.
Test: mma -j40 test-art-host
Test: stress --cpu 60 &; while ./test/run-test --host 916; do ; done
Change-Id: Ic944582bf021f119b8bc3f135af508ed8a8586c4
Nicolas Geoffray [Fri, 13 Jan 2017 16:03:05 +0000 (16:03 +0000)]
Merge "Make 129-ThreadGetId more robust."
Nicolas Geoffray [Fri, 13 Jan 2017 15:10:45 +0000 (15:10 +0000)]
Merge "ART tests: do not retrieve OatQuickMethodHeader for bridge methods"
Treehugger Robot [Fri, 13 Jan 2017 15:03:01 +0000 (15:03 +0000)]
Merge "MIPS32: Refined comment in java.lang.Math.abs(float/double) intrinsics"
Sebastien Hertz [Fri, 13 Jan 2017 14:41:56 +0000 (14:41 +0000)]
Merge "Revert "Update ART run-tests for new Jack optimizations""
Sebastien Hertz [Fri, 13 Jan 2017 14:27:26 +0000 (14:27 +0000)]
Revert "Update ART run-tests for new Jack optimizations"
This reverts commit
8960b0ba78a70948810f0e178f51b0a6d201985d.
Bug:
34066768
Test: make -j32 test-art-host
Change-Id: Ifeb22d1e909d31ac6dd31bc0a66bab41ccb53425
Nicolas Geoffray [Fri, 13 Jan 2017 11:29:41 +0000 (11:29 +0000)]
Make 129-ThreadGetId more robust.
Make sure we get the heap task daemon, to avoid a race with the runtime
creating the stack trace, and then updating the peer.
test: 129-ThreadGetId
bug:
28261069
Change-Id: I739ab6cd0180e2be07b7cecac6ad8a905a7c9cd0
Goran Jakovljevic [Fri, 13 Jan 2017 11:13:39 +0000 (12:13 +0100)]
MIPS32: Refined comment in java.lang.Math.abs(float/double) intrinsics
Bug:
30758343
Test: ./run-test 631-checker-fp-abs on CI20
Change-Id: Id7270c40887a0b904af59d6034b6867033c7dba3
Sebastien Hertz [Fri, 13 Jan 2017 10:23:47 +0000 (10:23 +0000)]
Merge "Update ART run-tests for new Jack optimizations"
Nicolas Geoffray [Fri, 13 Jan 2017 09:28:47 +0000 (09:28 +0000)]
Merge "Revert "Revert "Make object allocation entrypoints only take a class."""
Nicolas Geoffray [Fri, 13 Jan 2017 09:28:20 +0000 (09:28 +0000)]
Merge "Dont keep around scoped allocated ArtMethod after thread suspension."
Nicolas Geoffray [Thu, 12 Jan 2017 15:15:45 +0000 (15:15 +0000)]
Dont keep around scoped allocated ArtMethod after thread suspension.
Those methods are used after thread suspension, and their eg
declaring class is read. Because the GC does not see these methods,
the declaring class can move and the code will then access a stalled
pointer.
Test: test-art-host, ART_TEST_GC_STRESS=true/false
Test: 690-default-smali
Change-Id: I632197bc51f0da1dcf33b08195e8cfa4ccd73188
Nicolas Geoffray [Fri, 13 Jan 2017 09:22:08 +0000 (09:22 +0000)]
Merge "Revert "Revert "Refactor ClassLinker::LinkInterfaceMethods()."""
Andreas Gampe [Fri, 13 Jan 2017 05:16:14 +0000 (05:16 +0000)]
Merge "ART: Add GetThreadState"
Andreas Gampe [Fri, 13 Jan 2017 01:40:05 +0000 (17:40 -0800)]
ART: Add GetThreadListStackTraces
Add support for GetThreadListStackTraces. Add a test.
Bug:
31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: I958d02306d515f7ac03fddf4371805b133330d26
Andreas Gampe [Fri, 13 Jan 2017 04:51:02 +0000 (20:51 -0800)]
ART: Refactor test 911
Break out the different test cases. As the stack traces print line
numbers, this will reduce the amount of expected.txt churn when
new tests are added.
Bug:
31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: I3b4cb80ec5dd851ebbdf25fd660038d20a9daa9e
Andreas Gampe [Fri, 13 Jan 2017 03:35:49 +0000 (03:35 +0000)]
Merge "ART: Fix GetAllStackTraces"