OSDN Git Service

android-x86/art.git
7 years agoMerge "ART: Add SetVerboseFlags" am: c5603b7daa
Andreas Gampe [Tue, 17 Jan 2017 19:05:23 +0000 (19:05 +0000)]
Merge "ART: Add SetVerboseFlags" am: c5603b7daa
am: 5715993f4a

Change-Id: If66cb7956ba99f53a5580603b671f4d2ad9aefa1

7 years agoMerge "ART: Add SetVerboseFlags"
Andreas Gampe [Tue, 17 Jan 2017 18:45:32 +0000 (18:45 +0000)]
Merge "ART: Add SetVerboseFlags"
am: c5603b7daa

Change-Id: I40b2777fabc8c02ad14b6628189fa4719e1f257e

7 years agoMerge "ART: Add SetVerboseFlags"
Treehugger Robot [Tue, 17 Jan 2017 18:15:44 +0000 (18:15 +0000)]
Merge "ART: Add SetVerboseFlags"

7 years agoMerge "MethodHandles: Remove experimental flag." am: 49a694b84b
Narayan Kamath [Tue, 17 Jan 2017 17:46:30 +0000 (17:46 +0000)]
Merge "MethodHandles: Remove experimental flag." am: 49a694b84b
am: ee9fe277b6

Change-Id: Id11b33758243e0ce83297af9dd5fb93563feb95c

7 years agoMerge "MethodHandles: Remove experimental flag."
Narayan Kamath [Tue, 17 Jan 2017 17:26:27 +0000 (17:26 +0000)]
Merge "MethodHandles: Remove experimental flag."
am: 49a694b84b

Change-Id: I944ec7dec6b4924aa2122ba26f2e671a1afb792e

7 years agoMerge "MethodHandles: Remove experimental flag."
Narayan Kamath [Tue, 17 Jan 2017 17:05:33 +0000 (17:05 +0000)]
Merge "MethodHandles: Remove experimental flag."

7 years agoMethodHandles: 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

7 years agoMerge "Acquire the mutator lock before comparing classes/strings." am: 0a384f5beb
Nicolas Geoffray [Tue, 17 Jan 2017 16:27:24 +0000 (16:27 +0000)]
Merge "Acquire the mutator lock before comparing classes/strings." am: 0a384f5beb
am: 82bf0a2e43

Change-Id: Ia69cca66b278726fce605d8d718caec9f280471f

7 years agoMerge "Acquire the mutator lock before comparing classes/strings."
Nicolas Geoffray [Tue, 17 Jan 2017 16:07:23 +0000 (16:07 +0000)]
Merge "Acquire the mutator lock before comparing classes/strings."
am: 0a384f5beb

Change-Id: I69a0d6cab86d22aa6a2181cb4c8db7a4041adc29

7 years agoMerge "Acquire the mutator lock before comparing classes/strings."
Nicolas Geoffray [Tue, 17 Jan 2017 15:48:00 +0000 (15:48 +0000)]
Merge "Acquire the mutator lock before comparing classes/strings."

7 years agoMerge "Move some fields in art::Thread to reduce maintenance burden." am: 041043021e
Roland Levillain [Tue, 17 Jan 2017 15:47:53 +0000 (15:47 +0000)]
Merge "Move some fields in art::Thread to reduce maintenance burden." am: 041043021e
am: e5ab4b19ef

Change-Id: I4262e547ee02061e3b95a53d1e44c85d04bfed82

7 years agoMerge "Move some fields in art::Thread to reduce maintenance burden."
Roland Levillain [Tue, 17 Jan 2017 15:28:21 +0000 (15:28 +0000)]
Merge "Move some fields in art::Thread to reduce maintenance burden."
am: 041043021e

Change-Id: I74f2ea210589a882a04303cf8cee73b0445410be

7 years agoMerge "Move some fields in art::Thread to reduce maintenance burden."
Treehugger Robot [Tue, 17 Jan 2017 15:07:48 +0000 (15:07 +0000)]
Merge "Move some fields in art::Thread to reduce maintenance burden."

7 years agoAcquire the mutator lock before comparing classes/strings.
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

7 years agoMerge "Remove unused code for patching oat files." am: 8bd59a0fd4
Richard Uhler [Tue, 17 Jan 2017 12:33:08 +0000 (12:33 +0000)]
Merge "Remove unused code for patching oat files." am: 8bd59a0fd4
am: da7e01f9a7

Change-Id: I2e81a479ae9860a81b190a42687f42adbb1d7bb5

7 years agoMerge "Remove unused code for patching oat files."
Richard Uhler [Tue, 17 Jan 2017 12:13:37 +0000 (12:13 +0000)]
Merge "Remove unused code for patching oat files."
am: 8bd59a0fd4

Change-Id: I431625fa1e278b37395db462ef7b5744fdb40f48

7 years agoMove some fields in art::Thread to reduce maintenance burden.
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

7 years agoMerge "Remove unused code for patching oat files."
Treehugger Robot [Tue, 17 Jan 2017 11:50:17 +0000 (11:50 +0000)]
Merge "Remove unused code for patching oat files."

7 years agoMerge "Put the resolved class in HLoadClass." am: dcc7ab628c
Nicolas Geoffray [Tue, 17 Jan 2017 10:50:55 +0000 (10:50 +0000)]
Merge "Put the resolved class in HLoadClass." am: dcc7ab628c
am: 5a04263c1e

Change-Id: Ia4778f8282d93e952182e12e137b30a66a8fcb80

7 years agoMerge "MethodHandles: Implement invoker / exactInvoker." am: 9748d3d209
Narayan Kamath [Tue, 17 Jan 2017 10:50:21 +0000 (10:50 +0000)]
Merge "MethodHandles: Implement invoker / exactInvoker." am: 9748d3d209
am: 7bf8b2ffdb

Change-Id: I17199c3bdb2f16fe13ccfffd5e0f2ae2328e89df

7 years agoMerge "Handle verify-profile and bootclasspath classes in vdex." am: e9e43e93a7
Nicolas Geoffray [Tue, 17 Jan 2017 10:50:03 +0000 (10:50 +0000)]
Merge "Handle verify-profile and bootclasspath classes in vdex." am: e9e43e93a7
am: e65a340e00

Change-Id: I2268d059873513083e7cff5c527d42c816c73200

7 years agoMerge "Put the resolved class in HLoadClass."
Nicolas Geoffray [Tue, 17 Jan 2017 10:37:29 +0000 (10:37 +0000)]
Merge "Put the resolved class in HLoadClass."
am: dcc7ab628c

Change-Id: Iabc1bd05ff2bab7977f5290e202f3d09050a80a5

7 years agoMerge "MethodHandles: Implement invoker / exactInvoker."
Narayan Kamath [Tue, 17 Jan 2017 10:36:52 +0000 (10:36 +0000)]
Merge "MethodHandles: Implement invoker / exactInvoker."
am: 9748d3d209

Change-Id: I23b81dee0a15515bd43e4276e8d831967f560753

7 years agoMerge "Handle verify-profile and bootclasspath classes in vdex."
Nicolas Geoffray [Tue, 17 Jan 2017 10:36:35 +0000 (10:36 +0000)]
Merge "Handle verify-profile and bootclasspath classes in vdex."
am: e9e43e93a7

Change-Id: Iaee159194336648d2c72539e722dd2e737a96515

7 years agoMerge "Fix missing OOME check in reflection." am: c1b02c5ea7
Vladimir Marko [Tue, 17 Jan 2017 10:36:33 +0000 (10:36 +0000)]
Merge "Fix missing OOME check in reflection." am: c1b02c5ea7
am: ea39d23c20

Change-Id: If6d54bf8d4c3af23c91fab96d50c02d94fa6fb23

7 years agoMerge "Put the resolved class in HLoadClass."
Nicolas Geoffray [Tue, 17 Jan 2017 10:25:57 +0000 (10:25 +0000)]
Merge "Put the resolved class in HLoadClass."

7 years agoMerge "MethodHandles: Implement invoker / exactInvoker."
Narayan Kamath [Tue, 17 Jan 2017 10:24:03 +0000 (10:24 +0000)]
Merge "MethodHandles: Implement invoker / exactInvoker."

7 years agoMerge "Handle verify-profile and bootclasspath classes in vdex."
Nicolas Geoffray [Tue, 17 Jan 2017 10:22:01 +0000 (10:22 +0000)]
Merge "Handle verify-profile and bootclasspath classes in vdex."

7 years agoMerge "Fix missing OOME check in reflection."
Vladimir Marko [Tue, 17 Jan 2017 10:22:00 +0000 (10:22 +0000)]
Merge "Fix missing OOME check in reflection."
am: c1b02c5ea7

Change-Id: Ibc239be00a04dac3d10d1827c1462fb22029196b

7 years agoMerge "Fix missing OOME check in reflection."
Vladimir Marko [Tue, 17 Jan 2017 10:04:27 +0000 (10:04 +0000)]
Merge "Fix missing OOME check in reflection."

7 years agoMerge "MethodHandles: Add tests for MethodHandles.Lookup.bind" am: 64c1f53f93
Narayan Kamath [Tue, 17 Jan 2017 09:42:15 +0000 (09:42 +0000)]
Merge "MethodHandles: Add tests for MethodHandles.Lookup.bind" am: 64c1f53f93
am: 87cae0cc45

Change-Id: I561c6d10a932dfe804fcdd3acde735f23377f1bc

7 years agoMerge "Put inlined ArtMethod pointer in stack maps." am: e037a736be
Nicolas Geoffray [Tue, 17 Jan 2017 09:41:57 +0000 (09:41 +0000)]
Merge "Put inlined ArtMethod pointer in stack maps." am: e037a736be
am: 93d18ba252

Change-Id: If5ac420f354ef77c33f415964196c6552605f521

7 years agoRemove unused code for patching oat files.
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

7 years agoMerge "Fix braino in RTP." am: db54cc4285
Nicolas Geoffray [Tue, 17 Jan 2017 09:29:31 +0000 (09:29 +0000)]
Merge "Fix braino in RTP." am: db54cc4285
am: 6c203ad997

Change-Id: I1e40f5abd6bc9ce67f9085959e35706a328982e1

7 years agoMerge "MethodHandles: Add tests for MethodHandles.Lookup.bind"
Narayan Kamath [Tue, 17 Jan 2017 09:29:18 +0000 (09:29 +0000)]
Merge "MethodHandles: Add tests for MethodHandles.Lookup.bind"
am: 64c1f53f93

Change-Id: Ifdee9bb486697af7ba87997d9b13aa97cb827a55

7 years agoMerge "Put inlined ArtMethod pointer in stack maps."
Nicolas Geoffray [Tue, 17 Jan 2017 09:28:57 +0000 (09:28 +0000)]
Merge "Put inlined ArtMethod pointer in stack maps."
am: e037a736be

Change-Id: I30cfb7e71cfd58827e1445f5fad296c6620230e0

7 years agoMerge "MethodHandles: Add tests for MethodHandles.Lookup.bind"
Narayan Kamath [Tue, 17 Jan 2017 09:24:18 +0000 (09:24 +0000)]
Merge "MethodHandles: Add tests for MethodHandles.Lookup.bind"

7 years agoMerge "Fix braino in RTP."
Nicolas Geoffray [Tue, 17 Jan 2017 09:17:29 +0000 (09:17 +0000)]
Merge "Fix braino in RTP."
am: db54cc4285

Change-Id: I6e428e1e3a7c5792cc8d340775db1ebd521c5554

7 years agoMerge "Put inlined ArtMethod pointer in stack maps."
Nicolas Geoffray [Tue, 17 Jan 2017 09:16:31 +0000 (09:16 +0000)]
Merge "Put inlined ArtMethod pointer in stack maps."

7 years agoMerge "Fix braino in RTP."
Nicolas Geoffray [Tue, 17 Jan 2017 09:02:44 +0000 (09:02 +0000)]
Merge "Fix braino in RTP."

7 years agoPut the resolved class in HLoadClass.
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

7 years agoFix missing OOME check in reflection.
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

7 years agoPut inlined ArtMethod pointer in stack maps.
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

7 years agoHandle verify-profile and bootclasspath classes in vdex.
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

7 years agoMerge "ART: Add Thread TLS support" am: 0d478f289f
Andreas Gampe [Mon, 16 Jan 2017 19:09:07 +0000 (19:09 +0000)]
Merge "ART: Add Thread TLS support" am: 0d478f289f
am: 17f0be6732

Change-Id: I5aeb353c360c7e9111671de01ea83411f63f0f77

7 years agoMerge "ART: Add Thread TLS support"
Andreas Gampe [Mon, 16 Jan 2017 19:04:05 +0000 (19:04 +0000)]
Merge "ART: Add Thread TLS support"
am: 0d478f289f

Change-Id: If75e5a108a224b64d501795ee00a5250a2edbfbb

7 years agoMerge "ART: Add Thread TLS support"
Treehugger Robot [Mon, 16 Jan 2017 18:58:33 +0000 (18:58 +0000)]
Merge "ART: Add Thread TLS support"

7 years agoMethodHandles: Implement invoker / exactInvoker.
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

7 years agoFix braino in RTP.
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

7 years agoART: Add Thread TLS support
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

7 years agoMerge "ART: Add GetAllThreads" am: 4ca818c31c
Andreas Gampe [Mon, 16 Jan 2017 16:18:58 +0000 (16:18 +0000)]
Merge "ART: Add GetAllThreads" am: 4ca818c31c
am: 595f331ff4

Change-Id: I1f3c5adc335570830d495fb3f8a215ff5e92847f

7 years agoMerge "ART: Add GetAllThreads"
Andreas Gampe [Mon, 16 Jan 2017 16:14:26 +0000 (16:14 +0000)]
Merge "ART: Add GetAllThreads"
am: 4ca818c31c

Change-Id: I2e104979d32ac059a178a765ea582c49a85b4f38

7 years agoMerge "ART: Add GetAllThreads"
Treehugger Robot [Mon, 16 Jan 2017 16:07:49 +0000 (16:07 +0000)]
Merge "ART: Add GetAllThreads"

7 years agoMerge changes I168f24de,I8ec60a98,I3c426ed7,Ic809b0f3 am: 5e01df491f
Vladimir Marko [Mon, 16 Jan 2017 16:01:35 +0000 (16:01 +0000)]
Merge changes I168f24de,I8ec60a98,I3c426ed7,Ic809b0f3 am: 5e01df491f
am: 08834f6904

Change-Id: I83fa53d0d82c654b1c77df191d823aa7b3e26743

7 years agoImplement HLoadClass/kBssEntry for boot image. am: 1998cd0260
Vladimir Marko [Mon, 16 Jan 2017 16:01:26 +0000 (16:01 +0000)]
Implement HLoadClass/kBssEntry for boot image. am: 1998cd0260
am: bf4e2c3d4b

Change-Id: Ide457dc251af6c2fb392ed41c52a5ccd5931292c

7 years agoStore resolved types for AOT code in .bss. am: 6bec91c7d4
Vladimir Marko [Mon, 16 Jan 2017 16:01:18 +0000 (16:01 +0000)]
Store resolved types for AOT code in .bss. am: 6bec91c7d4
am: 0f5529768c

Change-Id: I551f49c542c74b76c797cd23d114bccd9c9e6a8e

7 years agoMake runtime call on main for HLoadClass/kDexCacheViaMethod. am: 4155998a2f
Vladimir Marko [Mon, 16 Jan 2017 16:01:09 +0000 (16:01 +0000)]
Make runtime call on main for HLoadClass/kDexCacheViaMethod. am: 4155998a2f
am: f00ae65afd

Change-Id: I939d11a38d23065e696c30654bf5ed95a18024c6

7 years agoRemove HLoadClass::LoadKind::kDexCachePcRelative. am: 48886c2ee6
Vladimir Marko [Mon, 16 Jan 2017 16:00:59 +0000 (16:00 +0000)]
Remove HLoadClass::LoadKind::kDexCachePcRelative. am: 48886c2ee6
am: 38a2a1645a

Change-Id: I565fe61b740118b2740a7aa3a3bef553dc94ac6d

7 years agoMerge changes I168f24de,I8ec60a98,I3c426ed7,Ic809b0f3
Vladimir Marko [Mon, 16 Jan 2017 15:56:22 +0000 (15:56 +0000)]
Merge changes I168f24de,I8ec60a98,I3c426ed7,Ic809b0f3
am: 5e01df491f

Change-Id: Ie48b865f4be84851153d4b67a055a164f65cdeaa

7 years agoImplement HLoadClass/kBssEntry for boot image.
Vladimir Marko [Mon, 16 Jan 2017 15:56:21 +0000 (15:56 +0000)]
Implement HLoadClass/kBssEntry for boot image.
am: 1998cd0260

Change-Id: Iaacccb37f0c0b7272acb42f604446de9ddd39494

7 years agoStore resolved types for AOT code in .bss.
Vladimir Marko [Mon, 16 Jan 2017 15:56:12 +0000 (15:56 +0000)]
Store resolved types for AOT code in .bss.
am: 6bec91c7d4

Change-Id: Ibe8454204b13103131655f9de2fa266ea1b0d97f

7 years agoMake runtime call on main for HLoadClass/kDexCacheViaMethod.
Vladimir Marko [Mon, 16 Jan 2017 15:56:04 +0000 (15:56 +0000)]
Make runtime call on main for HLoadClass/kDexCacheViaMethod.
am: 4155998a2f

Change-Id: Ib41477d435236a47897a58531385840087fcef8e

7 years agoRemove HLoadClass::LoadKind::kDexCachePcRelative.
Vladimir Marko [Mon, 16 Jan 2017 15:55:55 +0000 (15:55 +0000)]
Remove HLoadClass::LoadKind::kDexCachePcRelative.
am: 48886c2ee6

Change-Id: I72b52604f4ba786d857ab6f534356fd081220af2

7 years agoMerge changes I168f24de,I8ec60a98,I3c426ed7,Ic809b0f3
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.

7 years agoMethodHandles: Add tests for MethodHandles.Lookup.bind
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

7 years agoMerge "ART: Fix artInvokePolymorphic." am: d9a9d44ae0
Orion Hodson [Mon, 16 Jan 2017 14:55:22 +0000 (14:55 +0000)]
Merge "ART: Fix artInvokePolymorphic." am: d9a9d44ae0
am: 4b3c3ddf1f

Change-Id: I7fe4431e3e0fb4c82788ba89a4343d3d87b978ca

7 years agoMerge "ART: Fix artInvokePolymorphic."
Orion Hodson [Mon, 16 Jan 2017 14:50:52 +0000 (14:50 +0000)]
Merge "ART: Fix artInvokePolymorphic."
am: d9a9d44ae0

Change-Id: Ia885f1127d4f9b52f4b5a10e7d33d9affd3a4091

7 years agoMerge "MIPS64: Make GetFeatureString() returns default instead of empty string" am...
Goran Jakovljevic [Mon, 16 Jan 2017 14:50:52 +0000 (14:50 +0000)]
Merge "MIPS64: Make GetFeatureString() returns default instead of empty string" am: a11ad8a46d
am: d644db4b85

Change-Id: Iaa65155af1c4115770d27b058c61750ffd2797a0

7 years agoMerge "MIPS64: Make GetFeatureString() returns default instead of empty string"
Goran Jakovljevic [Mon, 16 Jan 2017 14:46:24 +0000 (14:46 +0000)]
Merge "MIPS64: Make GetFeatureString() returns default instead of empty string"
am: a11ad8a46d

Change-Id: I8054b6a949ffa0750274c97809d29461891669df

7 years agoMerge "ART: Fix artInvokePolymorphic."
Orion Hodson [Mon, 16 Jan 2017 14:45:28 +0000 (14:45 +0000)]
Merge "ART: Fix artInvokePolymorphic."

7 years agoMerge "MIPS64: Make GetFeatureString() returns default instead of empty string"
Treehugger Robot [Mon, 16 Jan 2017 14:39:03 +0000 (14:39 +0000)]
Merge "MIPS64: Make GetFeatureString() returns default instead of empty string"

7 years agoART: Fix artInvokePolymorphic.
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

7 years agoImplement HLoadClass/kBssEntry for boot image.
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

7 years agoMerge "Revert "ART: Add ThreadGroup API support"" am: a48d74a59a
Nicolas Geoffray [Mon, 16 Jan 2017 12:51:15 +0000 (12:51 +0000)]
Merge "Revert "ART: Add ThreadGroup API support"" am: a48d74a59a
am: ff5c7adfde

Change-Id: Ifae60a6ef29b59203a87a19c9f8a4c3e5f213f2e

7 years agoMerge "Revert "ART: Add ThreadGroup API support""
Nicolas Geoffray [Mon, 16 Jan 2017 12:46:47 +0000 (12:46 +0000)]
Merge "Revert "ART: Add ThreadGroup API support""
am: a48d74a59a

Change-Id: Ib6662233e71249b92a3b3bc730e09eaa01dd9cc2

7 years agoMerge "Revert "ART: Add ThreadGroup API support""
Treehugger Robot [Mon, 16 Jan 2017 12:39:37 +0000 (12:39 +0000)]
Merge "Revert "ART: Add ThreadGroup API support""

7 years agoMerge "Revert "Revert "ART: Compiler support for invoke-polymorphic.""" am: 58207cfd22
Orion Hodson [Mon, 16 Jan 2017 12:14:44 +0000 (12:14 +0000)]
Merge "Revert "Revert "ART: Compiler support for invoke-polymorphic.""" am: 58207cfd22
am: ceef65ed6c

Change-Id: I80e36cb5f66114ad770b8fc4cb8588b37d5fcb22

7 years agoMerge "Revert "Revert "ART: Compiler support for invoke-polymorphic."""
Orion Hodson [Mon, 16 Jan 2017 12:10:13 +0000 (12:10 +0000)]
Merge "Revert "Revert "ART: Compiler support for invoke-polymorphic."""
am: 58207cfd22

Change-Id: I298e0f0cb1522481666ef325df8abd0a46057b52

7 years agoStore resolved types for AOT code in .bss.
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

7 years agoMake runtime call on main for HLoadClass/kDexCacheViaMethod.
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

7 years agoRemove HLoadClass::LoadKind::kDexCachePcRelative.
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

7 years agoMerge "Revert "Revert "ART: Compiler support for invoke-polymorphic."""
Orion Hodson [Mon, 16 Jan 2017 12:05:10 +0000 (12:05 +0000)]
Merge "Revert "Revert "ART: Compiler support for invoke-polymorphic."""

7 years agoRevert "ART: Add ThreadGroup API support"
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

7 years agoMIPS64: Make GetFeatureString() returns default instead of empty string
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

7 years agoRevert "Revert "ART: Compiler support for invoke-polymorphic.""
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

7 years agoART: Add SetVerboseFlags
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

7 years agoMerge "Revert "Try really hard for JIT in test 916"" am: 4cddd03950
Alex Light [Sat, 14 Jan 2017 01:53:19 +0000 (01:53 +0000)]
Merge "Revert "Try really hard for JIT in test 916"" am: 4cddd03950
am: 3aa010910b

Change-Id: I14d2d70242f5e02b79a899911e5ca778d2429117

7 years agoMerge "Revert "Try really hard for JIT in test 916""
Alex Light [Sat, 14 Jan 2017 01:50:50 +0000 (01:50 +0000)]
Merge "Revert "Try really hard for JIT in test 916""
am: 4cddd03950

Change-Id: Ie8c700b10c1de1ef51661b4e290123c1d3dbe837

7 years agoMerge "Implement RedefineClasses, also redefine multiple classes atomically." am...
Alex Light [Sat, 14 Jan 2017 01:50:49 +0000 (01:50 +0000)]
Merge "Implement RedefineClasses, also redefine multiple classes atomically." am: dd1dd32c87
am: d7e51b56e8

Change-Id: Idf160fec18667f9a97c8e252143297e51f78556d

7 years agoMerge "Implement RedefineClasses, also redefine multiple classes atomically."
Alex Light [Sat, 14 Jan 2017 01:48:23 +0000 (01:48 +0000)]
Merge "Implement RedefineClasses, also redefine multiple classes atomically."
am: dd1dd32c87

Change-Id: I64f2b6b0bd144f59e71ebf6cdc668d266b894d3a

7 years agoMerge "Revert "Try really hard for JIT in test 916""
Alex Light [Sat, 14 Jan 2017 01:46:28 +0000 (01:46 +0000)]
Merge "Revert "Try really hard for JIT in test 916""

7 years agoMerge "Implement RedefineClasses, also redefine multiple classes atomically."
Alex Light [Sat, 14 Jan 2017 01:44:56 +0000 (01:44 +0000)]
Merge "Implement RedefineClasses, also redefine multiple classes atomically."

7 years agoMerge "ART: Add GetFrameCount and GetFrameLocation" am: cca87081f8
Andreas Gampe [Sat, 14 Jan 2017 01:04:46 +0000 (01:04 +0000)]
Merge "ART: Add GetFrameCount and GetFrameLocation" am: cca87081f8
am: a5638b114d

Change-Id: I2c95c05914f396e4f826a0fed2b0b09fbc489758

7 years agoMerge "ART: Add GetFrameCount and GetFrameLocation"
Andreas Gampe [Sat, 14 Jan 2017 01:00:16 +0000 (01:00 +0000)]
Merge "ART: Add GetFrameCount and GetFrameLocation"
am: cca87081f8

Change-Id: I135d73458e3f34c3632f8b2262d9633742eb8267

7 years agoMerge "ART: Add GetFrameCount and GetFrameLocation"
Andreas Gampe [Sat, 14 Jan 2017 00:52:22 +0000 (00:52 +0000)]
Merge "ART: Add GetFrameCount and GetFrameLocation"

7 years agoART: Add GetAllThreads
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

7 years agoART: Add GetFrameCount and GetFrameLocation
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

7 years agoRevert "Try really hard for JIT in test 916"
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

7 years agoImplement RedefineClasses, also redefine multiple classes atomically.
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

7 years agoMerge "ART: Remove suspension from AttachAgent" am: 2db7a1d7d6
Andreas Gampe [Fri, 13 Jan 2017 20:49:30 +0000 (20:49 +0000)]
Merge "ART: Remove suspension from AttachAgent" am: 2db7a1d7d6
am: 923ceebf94

Change-Id: I7b73be74bca85a875ac88d63ae7216d3d1bd553c