OSDN Git Service

android-x86/art.git
7 years agoMerge "Ensure environment is ready when populating loop." am: 6bca1c6389
Aart Bik [Thu, 6 Apr 2017 00:16:43 +0000 (00:16 +0000)]
Merge "Ensure environment is ready when populating loop." am: 6bca1c6389
am: 83de4147d4

Change-Id: Ib552af862ebef1a8aa566c63a9ecaa62b1cebdfe

7 years agoMerge "Ensure environment is ready when populating loop."
Aart Bik [Thu, 6 Apr 2017 00:13:43 +0000 (00:13 +0000)]
Merge "Ensure environment is ready when populating loop."
am: 6bca1c6389

Change-Id: Ica891205599832f7b192ba553779e61459e0cab5

7 years agoMerge "Ensure environment is ready when populating loop."
Aart Bik [Thu, 6 Apr 2017 00:02:23 +0000 (00:02 +0000)]
Merge "Ensure environment is ready when populating loop."

7 years agoMerge "Check LocalInfo descriptor for nullptr in dexlayout." am: 30b262c298
Jeff Hao [Wed, 5 Apr 2017 21:25:03 +0000 (21:25 +0000)]
Merge "Check LocalInfo descriptor for nullptr in dexlayout." am: 30b262c298
am: d185e7810f

Change-Id: I6d899f8b74c8180982e8e2c312eca67eb881ccb5

7 years agoMerge "Check LocalInfo descriptor for nullptr in dexlayout."
Jeff Hao [Wed, 5 Apr 2017 21:22:33 +0000 (21:22 +0000)]
Merge "Check LocalInfo descriptor for nullptr in dexlayout."
am: 30b262c298

Change-Id: I2ccad5503b0d99096a24a10624aca100621bd531

7 years agoMerge "Check LocalInfo descriptor for nullptr in dexlayout."
Treehugger Robot [Wed, 5 Apr 2017 21:18:39 +0000 (21:18 +0000)]
Merge "Check LocalInfo descriptor for nullptr in dexlayout."

7 years agoMerge "Add dexdiag_test" am: b629050b19
David Sehr [Wed, 5 Apr 2017 20:51:29 +0000 (20:51 +0000)]
Merge "Add dexdiag_test" am: b629050b19
am: 22863ea6d6

Change-Id: I24fe13ee5a76530887655d08807c4fb9173bca8a

7 years agoMerge "Add dexdiag_test"
David Sehr [Wed, 5 Apr 2017 20:48:30 +0000 (20:48 +0000)]
Merge "Add dexdiag_test"
am: b629050b19

Change-Id: I79d6f4d5dc8408d7a2aae8e7ce85db56302b1e64

7 years agoMerge "Add dexdiag_test"
Treehugger Robot [Wed, 5 Apr 2017 20:41:10 +0000 (20:41 +0000)]
Merge "Add dexdiag_test"

7 years agoMerge "Implemented ABS vectorization." am: a2078418d1
Aart Bik [Wed, 5 Apr 2017 20:33:00 +0000 (20:33 +0000)]
Merge "Implemented ABS vectorization." am: a2078418d1
am: 9b46e8db90

Change-Id: I59e67e10e13587fbf8b3e98068506b1a6b1a4e44

7 years agoMerge "Implemented ABS vectorization."
Aart Bik [Wed, 5 Apr 2017 20:30:28 +0000 (20:30 +0000)]
Merge "Implemented ABS vectorization."
am: a2078418d1

Change-Id: I87ec4c3c24af1a79709b2ef6912d3dca517655fb

7 years agoMerge "Implemented ABS vectorization."
Aart Bik [Wed, 5 Apr 2017 20:22:42 +0000 (20:22 +0000)]
Merge "Implemented ABS vectorization."

7 years agoCheck LocalInfo descriptor for nullptr in dexlayout.
Jeff Hao [Wed, 5 Apr 2017 16:29:43 +0000 (09:29 -0700)]
Check LocalInfo descriptor for nullptr in dexlayout.

Bug: 36966414
Test: mm test-art-host-gtest-dexlayout_test
Change-Id: Iff289e4b877354d6ae7922a55ded961072aa0186

7 years agoMerge "Add test for kryo support." am: b27febced6
Christopher Ferris [Wed, 5 Apr 2017 17:35:15 +0000 (17:35 +0000)]
Merge "Add test for kryo support." am: b27febced6
am: 2844533d0b

Change-Id: I22e73483666d2f977da750f2ee9788889fec16ed

7 years agoMerge "Add test for kryo support."
Christopher Ferris [Wed, 5 Apr 2017 17:32:58 +0000 (17:32 +0000)]
Merge "Add test for kryo support."
am: b27febced6

Change-Id: I82576c4430df46ff5bc1a7df504ccfd240432c28

7 years agoMerge "Add test for kryo support."
Christopher Ferris [Wed, 5 Apr 2017 17:26:22 +0000 (17:26 +0000)]
Merge "Add test for kryo support."

7 years agoEnsure environment is ready when populating loop.
Aart Bik [Wed, 5 Apr 2017 17:03:15 +0000 (10:03 -0700)]
Ensure environment is ready when populating loop.

Rationale:
OSR requires the suspend check to already have an environment,
albeit just for testing irreducible loops. This CL fixes the
omission. Note, the error is spurious on OSR and writing a
unit or regression test for this is hard.

Test: test-art-host
Bug: 36950873
Change-Id: Ica89e18e10deb438dead79e2cc40dd00a60b529f

7 years agoImplemented ABS vectorization.
Aart Bik [Mon, 3 Apr 2017 21:35:41 +0000 (14:35 -0700)]
Implemented ABS vectorization.

Rationale:
This CL adds the concept of vectorizing intrinsics
to the ART vectorizer. More can follow (MIN, MAX, etc).

Test: test-art-host, test-art-target (angler)
Change-Id: Ieed8aa83ec64c1250ac0578570249cce338b5d36

7 years agoMerge "Sigchainlib: Add OWNERS file" am: 207f9bac6f
Andreas Gampe [Wed, 5 Apr 2017 16:20:10 +0000 (16:20 +0000)]
Merge "Sigchainlib: Add OWNERS file" am: 207f9bac6f
am: 0a4c8f9aaa

Change-Id: I746c304df5f0c09666a23c554626351bb7902a7e

7 years agoMerge "Sigchainlib: Add OWNERS file"
Andreas Gampe [Wed, 5 Apr 2017 16:17:40 +0000 (16:17 +0000)]
Merge "Sigchainlib: Add OWNERS file"
am: 207f9bac6f

Change-Id: Ia89ffc49d4c1942705755f42c2e15240e7dfa707

7 years agoMerge "Sigchainlib: Add OWNERS file"
Treehugger Robot [Wed, 5 Apr 2017 16:11:51 +0000 (16:11 +0000)]
Merge "Sigchainlib: Add OWNERS file"

7 years agoAdd dexdiag_test
David Sehr [Tue, 4 Apr 2017 22:40:12 +0000 (15:40 -0700)]
Add dexdiag_test

Tests that dexdiag runs on the current process and returns with a
non-error status.

Bug: 35800981
Test: make test-art-target-gtest-dexdiag_test
Change-Id: I4254939307b035dfe2a83667ef6c853f710dde47

7 years agoSigchainlib: Add OWNERS file
Andreas Gampe [Wed, 5 Apr 2017 00:34:57 +0000 (17:34 -0700)]
Sigchainlib: Add OWNERS file

Test: m
Bug: 33166666
Change-Id: Ic4d695313e18adc31392cc1ab326a2ded0439d6d

7 years agoMerge "Ensure invoking obsolete methods throws errors." am: c48266eb44
Alex Light [Tue, 4 Apr 2017 22:01:30 +0000 (22:01 +0000)]
Merge "Ensure invoking obsolete methods throws errors." am: c48266eb44
am: ec2e5d82a9

Change-Id: Ie07aaee1ada5e7143dab8fbe3fb617372593625b

7 years agoMerge "Ensure invoking obsolete methods throws errors."
Alex Light [Tue, 4 Apr 2017 22:00:00 +0000 (22:00 +0000)]
Merge "Ensure invoking obsolete methods throws errors."
am: c48266eb44

Change-Id: I6494022dee5f08156222d582d9aa6f761cbd363a

7 years agoMerge "Ensure invoking obsolete methods throws errors."
Treehugger Robot [Tue, 4 Apr 2017 21:52:11 +0000 (21:52 +0000)]
Merge "Ensure invoking obsolete methods throws errors."

7 years agoMerge "ART: Fix preloaded dex cache expectations" am: f6e11e9e21
Andreas Gampe [Tue, 4 Apr 2017 20:12:36 +0000 (20:12 +0000)]
Merge "ART: Fix preloaded dex cache expectations" am: f6e11e9e21
am: dffbc8e734

Change-Id: I0b3cc5b615192354a1da62635452fda72a4615cb

7 years agoMerge "build: Add golem run_build_test_targets for go/ab" am: 04d66f1add
Igor Murashkin [Tue, 4 Apr 2017 20:12:22 +0000 (20:12 +0000)]
Merge "build: Add golem run_build_test_targets for go/ab" am: 04d66f1add
am: c23645ff7b

Change-Id: Iab12aa1c462e61cb41addc2c3889a3e3ae301fab

7 years agoMerge "ART: Fix preloaded dex cache expectations"
Andreas Gampe [Tue, 4 Apr 2017 20:09:06 +0000 (20:09 +0000)]
Merge "ART: Fix preloaded dex cache expectations"
am: f6e11e9e21

Change-Id: If4f639020819adb01634cf1c759fd9e6e15dbdde

7 years agoMerge "build: Add golem run_build_test_targets for go/ab"
Igor Murashkin [Tue, 4 Apr 2017 20:08:51 +0000 (20:08 +0000)]
Merge "build: Add golem run_build_test_targets for go/ab"
am: 04d66f1add

Change-Id: I8bcaaac6daa3674a2cc8e4d0f2b03e9b8ab425ca

7 years agoMerge "ART: Fix preloaded dex cache expectations"
Treehugger Robot [Tue, 4 Apr 2017 18:54:04 +0000 (18:54 +0000)]
Merge "ART: Fix preloaded dex cache expectations"

7 years agoMerge "build: Add golem run_build_test_targets for go/ab"
Treehugger Robot [Tue, 4 Apr 2017 18:53:35 +0000 (18:53 +0000)]
Merge "build: Add golem run_build_test_targets for go/ab"

7 years agoEnsure invoking obsolete methods throws errors.
Alex Light [Mon, 3 Apr 2017 22:39:55 +0000 (15:39 -0700)]
Ensure invoking obsolete methods throws errors.

This sets the entrypoint for obsolete methods to a special stub that
will ensure that calling them results in an Error being thrown.
Previously we were allowing obsolete methods to be run if they could
reach the appropriate places in the runtime.

Getting into the state where this is possible is extremely difficult
since one can only get an jmethodID to an obsolete method by snatching
it off the stack (or by inspecting internal runtime data). From there
normally invoking it will do lookup on the receiver which will get you
the original version.

Bug: 36867251
Bug: 31455788

Test: ./test.py --host -j40
Test: (with aosp_marlin-userdebug device) ./test.py --target -j4

Change-Id: I2ca0503966a4e3de18dd89cb7ff224eba1459b49

7 years agoMerge "SIMD pcmpgtb,w,d,q for x86/x86_64" am: 7cd18fb5a7
Aart Bik [Tue, 4 Apr 2017 18:11:57 +0000 (18:11 +0000)]
Merge "SIMD pcmpgtb,w,d,q for x86/x86_64" am: 7cd18fb5a7
am: 820b72ab44

Change-Id: I805d6628d21b9ac266d59c59f5ac8064d514cd9e

7 years agoAdd test for kryo support.
Christopher Ferris [Wed, 29 Mar 2017 20:12:32 +0000 (13:12 -0700)]
Add test for kryo support.

Bug: 36728278

Test: Ran all art unit tests on host and against a sailfish set to use kryo.
Change-Id: If9a4c3d10b082610d38b28e77b6155e3f60a6f2b

7 years agoMerge "SIMD pcmpgtb,w,d,q for x86/x86_64"
Aart Bik [Tue, 4 Apr 2017 18:07:58 +0000 (18:07 +0000)]
Merge "SIMD pcmpgtb,w,d,q for x86/x86_64"
am: 7cd18fb5a7

Change-Id: I7e54ae1206be1dd8bc0f15b89a0567ca640cfabc

7 years agoMerge "SIMD pcmpgtb,w,d,q for x86/x86_64"
Treehugger Robot [Tue, 4 Apr 2017 17:59:09 +0000 (17:59 +0000)]
Merge "SIMD pcmpgtb,w,d,q for x86/x86_64"

7 years agoMerge "Add analyzer for dex memory map" am: 674bc3c984
David Sehr [Tue, 4 Apr 2017 17:24:25 +0000 (17:24 +0000)]
Merge "Add analyzer for dex memory map" am: 674bc3c984
am: 00a2410bf1

Change-Id: Ied2edc1a3de3eeff7b5e4804ea366f87a1e77d3c

7 years agoMerge "Add analyzer for dex memory map"
David Sehr [Tue, 4 Apr 2017 17:20:54 +0000 (17:20 +0000)]
Merge "Add analyzer for dex memory map"
am: 674bc3c984

Change-Id: Ica8f665892856bbf42cdb7b9ae425011fb374a3b

7 years agoMerge "Add analyzer for dex memory map"
Treehugger Robot [Tue, 4 Apr 2017 17:13:11 +0000 (17:13 +0000)]
Merge "Add analyzer for dex memory map"

7 years agoART: Fix preloaded dex cache expectations
Andreas Gampe [Tue, 4 Apr 2017 17:09:05 +0000 (10:09 -0700)]
ART: Fix preloaded dex cache expectations

In fallback mode, there may not be dex caches for all boot classpath
dex files - there is no guarantee that a class from every dex file
has been loaded.

Bug: 36033084
Test: m
Test: m test-art-host
Test: manual - fill the /data partition, reboot
Change-Id: I3752b48d9d61947959e8056bd01db0e323724d37

7 years agoSIMD pcmpgtb,w,d,q for x86/x86_64
Aart Bik [Mon, 3 Apr 2017 21:09:01 +0000 (14:09 -0700)]
SIMD pcmpgtb,w,d,q for x86/x86_64

Rationale:
Enables fast compare gt.

Test: assembler_x86[_64]_test
Change-Id: I0a069649480529f3fec2c2b100e2aaaa2cd79820

7 years agoAdd analyzer for dex memory map
David Sehr [Fri, 31 Mar 2017 00:50:24 +0000 (17:50 -0700)]
Add analyzer for dex memory map

Use libpagemap to process vdex pages that are resident in memory.
Walks over each vdex file mapping in a given pid, processing in one of
two ways.

Using the -s (summarize) option gives, e.g.:

MAPPING /system/framework/arm64/boot.vdex: 7e90133000-7e90641000
DEX classes.dex: 7e90133000-7e90608000
Section name                resident     total % of   % of
                               pages     pages sect.  total
Header                             0         0   0.00   0.00
AnnotationSetReferenceItem         0         0   0.00   0.00
StringId                           1        33   3.03   0.08
TypeId                             0         4   0.00   0.00
ProtoId                            1        21   4.76   0.08
FieldId                            0        25   0.00   0.00
MethodId                           2        69   2.90   0.16
ClassDef                           0        26   0.00   0.00
AnnotationSetItem                  0        13   0.00   0.00
CodeItem                           1       555   0.18   0.08
AnnotationsDirectoryItem           0        34   0.00   0.00
TypeList                           0        10   0.00   0.00
StringData                         2       174   1.15   0.16
DebugInfo                          0       175   0.00   0.00
AnnotationItem                     0        29   0.00   0.00
EncodedArrayItem                   0         3   0.00   0.00
ClassData                          0        59   0.00   0.00
GRAND TOTAL                        7      1230          0.57

Using the -v (verbose) option gives, e.g.:

MAPPING /system/framework/arm64/boot.vdex: 7e90133000-7e90641000
DEX classes.dex: 7e90133000-7e90608000
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
STTTTPPPPPPP.PPPPPPPPPPPPPPFFFFF
FFF.FFFF.F.F.FFFF...MMMMMMMMMMMM
MMMMMMMM.MM.....MMMMMMMMMMM..MMM
.M.MMM..MMMM.MMMMMMMMMMM.CCCCCCC
CCCCCCCCCCC.C.CCCCCC22.2........
.XX...XXX..XXXXXXX.............X
.XXXX......XXXXX..XXXX.XXXX..XXX
.............X..XX....X.XXXX....
..X....X...X..X..XXX.XXXXX.XXX.X
X.X.X..........X.X...........XXX
X...............................
.......X.....................XXX
..XX...XX.....X............XX.X.
.....XXXX......X.X..X...........
.XXXXXXX..XXXXXXXX..............
......XXXX...XX...XX..XXXX...X..
.......................X........
.......................X.XX..XX.
X...........X.X.X.X.............
X.....XXX..........XXXXX.XX.XX.X
XXXXX...........................
............X.................X.
X..............4....4...........
............4.tttttttttts...sss.
.ss.ss..s.ss.sssssss.sssssssssss
ssssssssssssssssssssssssssssssss
ssssssssssssssssssss.ss...ssss.s
ssssssssssssssssssssssssssssssss
ssssssssssssssssssssssssssssssss
sssssssss..DD.DD...DD...........
............D...................
................................
...................D.....DD.....
...........................D.D..
.D........................3...3.
......................EEE.c..ccc
.cc.ccc.c.c.....c.cc.ccc..c.....
.c...ccc.cc.ccc......

Where the letters indicate a page of a particular dex file section are
resident in memory and '.' indicates a page is not resident.

Bug: 35800981
Test: dexdiag <pid>
Change-Id: Ib4662fe499ad82d4f0baace2affab0d56f0890c9

7 years agoMerge "Allow -Xjitsaveprofilinginfo for system server" am: 8682fce263
Mathieu Chartier [Tue, 4 Apr 2017 03:24:37 +0000 (03:24 +0000)]
Merge "Allow -Xjitsaveprofilinginfo for system server" am: 8682fce263
am: 1d9fa389bc

Change-Id: Ia213186c3c432f07cacbad4b1bf0a143ad46cbe1

7 years agoMerge "Allow -Xjitsaveprofilinginfo for system server"
Mathieu Chartier [Tue, 4 Apr 2017 03:20:05 +0000 (03:20 +0000)]
Merge "Allow -Xjitsaveprofilinginfo for system server"
am: 8682fce263

Change-Id: I01af28a95bb1722725131588ea2ecefa6bb4896d

7 years agoMerge "Allow -Xjitsaveprofilinginfo for system server"
Treehugger Robot [Tue, 4 Apr 2017 03:11:33 +0000 (03:11 +0000)]
Merge "Allow -Xjitsaveprofilinginfo for system server"

7 years agoAllow -Xjitsaveprofilinginfo for system server
Mathieu Chartier [Fri, 31 Mar 2017 21:49:09 +0000 (14:49 -0700)]
Allow -Xjitsaveprofilinginfo for system server

setenforce 0 is still required to prevent selinux violations.

Test: adb shell setprop dalvik.vm.extra-opts "'-Xusejit:false -Xint -Xjitsaveprofilinginfo'" && adb shell start

Bug: 34927277
Bug: 36457259

(cherry picked from commit 449f0589c8c8572e32c57befee089123e9eea1ba)

Change-Id: I644cefe8aebf9ff47dc736eda8143d2f6258c324

7 years agoMerge "Dump profile logs after the last save" am: 25732aec3d
Calin Juravle [Tue, 4 Apr 2017 01:00:25 +0000 (01:00 +0000)]
Merge "Dump profile logs after the last save" am: 25732aec3d
am: 033225edc8

Change-Id: I7d68ef559d8a835e4f9d0ff1093ff104d30df300

7 years agoMerge "Dump profile logs after the last save"
Calin Juravle [Tue, 4 Apr 2017 00:56:56 +0000 (00:56 +0000)]
Merge "Dump profile logs after the last save"
am: 25732aec3d

Change-Id: Ic88433c75e095974e672245d6aecc5ad311b5700

7 years agoMerge "Dump profile logs after the last save"
Calin Juravle [Tue, 4 Apr 2017 00:50:09 +0000 (00:50 +0000)]
Merge "Dump profile logs after the last save"

7 years agoMerge "Make base64 explicitly check dst_size for nullptr" am: 1a5a1e5527
Alex Light [Mon, 3 Apr 2017 22:18:45 +0000 (22:18 +0000)]
Merge "Make base64 explicitly check dst_size for nullptr" am: 1a5a1e5527
am: 4633a44f84

Change-Id: I3bfa68e10269fd4c1fe31682cc447541cd2632f4

7 years agoMerge "Make base64 explicitly check dst_size for nullptr"
Alex Light [Mon, 3 Apr 2017 22:15:45 +0000 (22:15 +0000)]
Merge "Make base64 explicitly check dst_size for nullptr"
am: 1a5a1e5527

Change-Id: I0deeef9e5e45e7e788888df48e8547d18498579c

7 years agoMerge "Make base64 explicitly check dst_size for nullptr"
Treehugger Robot [Mon, 3 Apr 2017 22:09:26 +0000 (22:09 +0000)]
Merge "Make base64 explicitly check dst_size for nullptr"

7 years agoMerge "MIPS64: Add ldi.df MSA instruction" am: e2a2395609
Aart Bik [Mon, 3 Apr 2017 21:54:15 +0000 (21:54 +0000)]
Merge "MIPS64: Add ldi.df MSA instruction" am: e2a2395609
am: 497e77e855

Change-Id: Ib2396a63d2a8b3668edc6aa59c815593c5dbca22

7 years agoMerge "MIPS64: Add ldi.df MSA instruction"
Aart Bik [Mon, 3 Apr 2017 21:50:14 +0000 (21:50 +0000)]
Merge "MIPS64: Add ldi.df MSA instruction"
am: e2a2395609

Change-Id: Ie380252315099eb4b59eb9eb9e1e2ac6c2698ac2

7 years agoMerge "MIPS64: Add ldi.df MSA instruction"
Aart Bik [Mon, 3 Apr 2017 21:42:11 +0000 (21:42 +0000)]
Merge "MIPS64: Add ldi.df MSA instruction"

7 years agobuild: Add golem run_build_test_targets for go/ab
Igor Murashkin [Tue, 21 Mar 2017 18:36:09 +0000 (11:36 -0700)]
build: Add golem run_build_test_targets for go/ab

Adds following golem build targets:
 * art-golem-android-armv7
 * art-golem-android-armv8
 * art-golem-linux-armv7
 * art-golem-linux-armv8
 * art-golem-linux-ia32 (this is a host build)
 * art-golem-linux-x64  (this is a host build)

Call the art/tools/golem/build-target.sh with its corresponding target name as the
machine type, and it uses art-opt-cc for golem config type.

Ensures that we don't accidentally break the golem targets.

Also refactor the target_config.py to make it more clear
what's a make, run-test, or golem command.

Bug: 35766356
Change-Id: Id1a72e5eaed8b20d1d208cf0720b1cb45d48e74d

7 years agoMerge "Add a cpplint preupload hook." am: 432fccc4c0
Alex Light [Mon, 3 Apr 2017 20:03:37 +0000 (20:03 +0000)]
Merge "Add a cpplint preupload hook." am: 432fccc4c0
am: d1a465235f

Change-Id: Id3b948f8274429c2d44e8430c433c3fb9885f8de

7 years agoMerge "Add a cpplint preupload hook."
Alex Light [Mon, 3 Apr 2017 20:00:06 +0000 (20:00 +0000)]
Merge "Add a cpplint preupload hook."
am: 432fccc4c0

Change-Id: Ie3edcc46b0781d92e137dc7ceb0f13506aceb748

7 years agoMerge "Add a cpplint preupload hook."
Treehugger Robot [Mon, 3 Apr 2017 19:52:18 +0000 (19:52 +0000)]
Merge "Add a cpplint preupload hook."

7 years agoMerge "ART: TI Agent test library refactor" am: 1927f66beb
Andreas Gampe [Mon, 3 Apr 2017 18:00:30 +0000 (18:00 +0000)]
Merge "ART: TI Agent test library refactor" am: 1927f66beb
am: 42fc455ab8

Change-Id: I0491a61e2229ec76e81398774540d5a08d9d7215

7 years agoMerge "ART: TI Agent test library refactor"
Andreas Gampe [Mon, 3 Apr 2017 17:56:59 +0000 (17:56 +0000)]
Merge "ART: TI Agent test library refactor"
am: 1927f66beb

Change-Id: Ie14195b4dcd9063af20acb21e0877a2222c8a277

7 years agoMerge "ART: TI Agent test library refactor"
Treehugger Robot [Mon, 3 Apr 2017 17:52:12 +0000 (17:52 +0000)]
Merge "ART: TI Agent test library refactor"

7 years agoAdd a cpplint preupload hook.
Alex Light [Fri, 31 Mar 2017 16:20:02 +0000 (09:20 -0700)]
Add a cpplint preupload hook.

This runs cpplint.py over modified .cc and .h files before uploading
them to gerrit. This generally takes ~1-2 seconds based on my testing
and the longest one I've been able to find was ~10 seconds.

Test: PREUPLOAD_COMMIT=d9911eeca ./tools/cpplint_presubmit.py
Test: PREUPLOAD_COMMIT=405284789 ./tools/cpplint_presubmit.py
Test: PREUPLOAD_COMMIT=9763f2eb7 ./tools/cpplint_presubmit.py
Test: Manual

Bug: 35810246
Bug: 36855589

Change-Id: Ie0ed9136bdde15d78f2aa40c73fef97e12d12dda

7 years agoMake base64 explicitly check dst_size for nullptr
Alex Light [Mon, 27 Mar 2017 17:15:27 +0000 (10:15 -0700)]
Make base64 explicitly check dst_size for nullptr

Also moved it out of utils.h and into common_runtime_test.h since it
is only used for tests.

Test: ./test.py --host -j40
Change-Id: Ib3c18cb510be833928482c0b2f47f9fb02933f7f

7 years agoMerge "ART vectorizer." am: 08ae45625d
Aart Bik [Mon, 3 Apr 2017 17:15:57 +0000 (17:15 +0000)]
Merge "ART vectorizer." am: 08ae45625d
am: 2f113f6355

Change-Id: Iea96f48428415da181049e9df8a6bb7e4c28a230

7 years agoMerge "ART vectorizer."
Aart Bik [Mon, 3 Apr 2017 17:12:27 +0000 (17:12 +0000)]
Merge "ART vectorizer."
am: 08ae45625d

Change-Id: I123a156aaf593762a0f21dde475ffb1d73929c20

7 years agoMerge "ART vectorizer."
Aart Bik [Mon, 3 Apr 2017 17:05:52 +0000 (17:05 +0000)]
Merge "ART vectorizer."

7 years agoMerge "Make GetSortedDexFileSections a utility" am: 2eaacede1e
David Sehr [Mon, 3 Apr 2017 16:47:53 +0000 (16:47 +0000)]
Merge "Make GetSortedDexFileSections a utility" am: 2eaacede1e
am: b166e4f89f

Change-Id: Ib09f51d98935581004585b71d5fd717f5b763cbe

7 years agoMerge "Make GetSortedDexFileSections a utility"
David Sehr [Mon, 3 Apr 2017 16:44:26 +0000 (16:44 +0000)]
Merge "Make GetSortedDexFileSections a utility"
am: 2eaacede1e

Change-Id: Ida699a678f7edfab5778da4432d03eaf784b6d25

7 years agoMerge "Make GetSortedDexFileSections a utility"
Treehugger Robot [Mon, 3 Apr 2017 16:36:01 +0000 (16:36 +0000)]
Merge "Make GetSortedDexFileSections a utility"

7 years agoMerge "SIMD pavgb,w for x86/x86_64" am: 0d9ec0535c
Aart Bik [Mon, 3 Apr 2017 16:09:22 +0000 (16:09 +0000)]
Merge "SIMD pavgb,w for x86/x86_64" am: 0d9ec0535c
am: 0381ce6b05

Change-Id: Ifa1a6a03d7e3deddb8d017b5977c5f2d25344b5c

7 years agoMerge "SIMD pavgb,w for x86/x86_64"
Aart Bik [Mon, 3 Apr 2017 16:05:52 +0000 (16:05 +0000)]
Merge "SIMD pavgb,w for x86/x86_64"
am: 0d9ec0535c

Change-Id: Idcda1302f7aa7da99f7ddf6c7480cae2a9eeb9b0

7 years agoMerge "SIMD pavgb,w for x86/x86_64"
Aart Bik [Mon, 3 Apr 2017 15:59:09 +0000 (15:59 +0000)]
Merge "SIMD pavgb,w for x86/x86_64"

7 years agoMerge "ARM64: Faster forwarding address check in mark entrypoints." am: fcab6513b5
Vladimir Marko [Mon, 3 Apr 2017 12:32:09 +0000 (12:32 +0000)]
Merge "ARM64: Faster forwarding address check in mark entrypoints." am: fcab6513b5
am: 032ae16eab

Change-Id: Ia06caf7fd8f4797822b5e8736c1419f6df0225a5

7 years agoMerge "ARM64: Faster forwarding address check in mark entrypoints."
Vladimir Marko [Mon, 3 Apr 2017 12:28:41 +0000 (12:28 +0000)]
Merge "ARM64: Faster forwarding address check in mark entrypoints."
am: fcab6513b5

Change-Id: I4388e3939347c7b5c8269c58f10eae0e1ea143e3

7 years agoMerge "ARM64: Faster forwarding address check in mark entrypoints."
Vladimir Marko [Mon, 3 Apr 2017 12:21:33 +0000 (12:21 +0000)]
Merge "ARM64: Faster forwarding address check in mark entrypoints."

7 years agoMerge "Kill logd in buildbot-setup.sh." am: 589e13337d
Nicolas Geoffray [Mon, 3 Apr 2017 09:37:30 +0000 (09:37 +0000)]
Merge "Kill logd in buildbot-setup.sh." am: 589e13337d
am: 318c0ba6e2

Change-Id: I98cb427e5632da9b1fa12302d5890937563b5d27

7 years agoMerge "Kill logd in buildbot-setup.sh."
Nicolas Geoffray [Mon, 3 Apr 2017 09:34:00 +0000 (09:34 +0000)]
Merge "Kill logd in buildbot-setup.sh."
am: 589e13337d

Change-Id: I1f80d00b49f51f3438b208b6201120820a3cdc55

7 years agoMerge "Kill logd in buildbot-setup.sh."
Nicolas Geoffray [Mon, 3 Apr 2017 09:26:57 +0000 (09:26 +0000)]
Merge "Kill logd in buildbot-setup.sh."

7 years agoMake GetSortedDexFileSections a utility
David Sehr [Fri, 31 Mar 2017 00:50:24 +0000 (17:50 -0700)]
Make GetSortedDexFileSections a utility

Make this method a utility in preparation for other users outside
dexlayout.

Bug: 35800981
Test: make -j 40 test-art-host
Change-Id: I054c1e1c82834a0c94be6b9ee63d1992fa9f52df

7 years agoKill logd in buildbot-setup.sh.
Nicolas Geoffray [Sun, 2 Apr 2017 20:03:33 +0000 (21:03 +0100)]
Kill logd in buildbot-setup.sh.

The daemon seems to leak on fugu with Android N.

Change-Id: I07202c0a6ce644e313c310e0592e3e0d58d158a0

7 years agoART: TI Agent test library refactor
Andreas Gampe [Fri, 31 Mar 2017 19:49:07 +0000 (12:49 -0700)]
ART: TI Agent test library refactor

More refactoring, lowering the reliance on ART-provided functionality
and adding a library that includes all the code that can run without
ART.

Bug: 32072923
Test: m test-art-host
Change-Id: I67d84056a6fd7722c58855fccbdea3f6869b2efb

7 years agoSIMD pavgb,w for x86/x86_64
Aart Bik [Fri, 31 Mar 2017 22:11:53 +0000 (15:11 -0700)]
SIMD pavgb,w for x86/x86_64

Rationale:
Break-out CL of ART Vectorizer.
Enables fast halving add with rounding

Bug: 34083438
Test: assembler_x86[_64]_test
Change-Id: I09173376b803d671a6b05a33e630f45f778cea52

7 years agoMerge "Clean up ArtClassDefinition" am: 5b92c48f99
Alex Light [Fri, 31 Mar 2017 21:58:07 +0000 (21:58 +0000)]
Merge "Clean up ArtClassDefinition" am: 5b92c48f99
am: 43cb737d59

Change-Id: Iea3378977360bc5a74d29c3a3e0419d4026dd1e7

7 years agoMerge "Clean up ArtClassDefinition"
Alex Light [Fri, 31 Mar 2017 21:55:37 +0000 (21:55 +0000)]
Merge "Clean up ArtClassDefinition"
am: 5b92c48f99

Change-Id: I6a993f84a133c1157364a106f8736b0a10623435

7 years agoMerge "Clean up ArtClassDefinition"
Alex Light [Fri, 31 Mar 2017 21:50:14 +0000 (21:50 +0000)]
Merge "Clean up ArtClassDefinition"

7 years agoART vectorizer.
Aart Bik [Mon, 6 Feb 2017 23:35:29 +0000 (15:35 -0800)]
ART vectorizer.

Rationale:
Make SIMD great again with a retargetable and easily extendable vectorizer.

Provides a full x86/x86_64 and a proof-of-concept ARM implementation. Sample
improvement (without any perf tuning yet) for Linpack on x86 is about 20% to 50%.

Test: test-art-host, test-art-target (angler)
Bug: 3408343830933338

Change-Id: Ifb77a0f25f690a87cd65bf3d5e9f6be7ea71d6c1

7 years agoMerge "Lower daemons priority to 124 (art)." am: 7298b1ae3e
Hiroshi Yamauchi [Fri, 31 Mar 2017 17:46:24 +0000 (17:46 +0000)]
Merge "Lower daemons priority to 124 (art)." am: 7298b1ae3e
am: 2974fea1ea

Change-Id: I43e5389c1809613bccd027482bdba8bdc41a878d

7 years agoMerge "Lower daemons priority to 124 (art)."
Hiroshi Yamauchi [Fri, 31 Mar 2017 17:43:55 +0000 (17:43 +0000)]
Merge "Lower daemons priority to 124 (art)."
am: 7298b1ae3e

Change-Id: I91eb1be02b879939a3b2c1bf7dac25fd7b8da0cf

7 years agoMerge "Lower daemons priority to 124 (art)."
Hiroshi Yamauchi [Fri, 31 Mar 2017 17:37:51 +0000 (17:37 +0000)]
Merge "Lower daemons priority to 124 (art)."

7 years agoMerge "ART: Refactor JVMTI run tests" am: 7201fe3b67
Andreas Gampe [Fri, 31 Mar 2017 17:05:17 +0000 (17:05 +0000)]
Merge "ART: Refactor JVMTI run tests" am: 7201fe3b67
am: 4162514b64

Change-Id: If8dc86155b43bb984e5c09bb9cf056a6044b528e

7 years agoMerge "ART: Refactor JVMTI run tests"
Andreas Gampe [Fri, 31 Mar 2017 17:02:49 +0000 (17:02 +0000)]
Merge "ART: Refactor JVMTI run tests"
am: 7201fe3b67

Change-Id: I544cd644d15dbaecf841c2451a41c21c7907c4c3

7 years agoMerge "ART: Refactor JVMTI run tests"
Treehugger Robot [Fri, 31 Mar 2017 16:57:34 +0000 (16:57 +0000)]
Merge "ART: Refactor JVMTI run tests"

7 years agoClean up ArtClassDefinition
Alex Light [Thu, 30 Mar 2017 22:17:01 +0000 (15:17 -0700)]
Clean up ArtClassDefinition

This struct was somewhat messy. Clean it up and consolidate functions
into it.

Bug: 31455788
Test: ./test.py --host -j40

Change-Id: Ia3abe92dcf3313677de5e200f673252f8e41d69e

7 years agoMIPS64: Add ldi.df MSA instruction
Goran Jakovljevic [Fri, 31 Mar 2017 12:38:20 +0000 (14:38 +0200)]
MIPS64: Add ldi.df MSA instruction

Also fixes RepeatTemplatedRegisterImmBits template.

Test: mma test-art-host-gtest

Change-Id: Ib23f8a65ba924623f8c3a2d75d4ec4491d18feb0

7 years agoARM64: Faster forwarding address check in mark entrypoints.
Vladimir Marko [Fri, 31 Mar 2017 09:55:41 +0000 (10:55 +0100)]
ARM64: Faster forwarding address check in mark entrypoints.

Bug: 12687968
Test: testrunner.py --target
Change-Id: I352971ddf8f574e600c054cf2b4c0a973d20f829

7 years agoMerge "Change thread suspend timeout to be fatal for non-debug" am: bb75449355
Mathieu Chartier [Fri, 31 Mar 2017 03:30:34 +0000 (03:30 +0000)]
Merge "Change thread suspend timeout to be fatal for non-debug" am: bb75449355
am: f3c9cef773

Change-Id: I9324890fffa81e3c5e5eaf8f623291a8bb4c9262

7 years agoMerge "Change thread suspend timeout to be fatal for non-debug"
Mathieu Chartier [Fri, 31 Mar 2017 03:26:32 +0000 (03:26 +0000)]
Merge "Change thread suspend timeout to be fatal for non-debug"
am: bb75449355

Change-Id: I2699992871038089c2edf89cd938d6a4cda89678

7 years agoMerge "Change thread suspend timeout to be fatal for non-debug"
Mathieu Chartier [Fri, 31 Mar 2017 03:17:06 +0000 (03:17 +0000)]
Merge "Change thread suspend timeout to be fatal for non-debug"