OSDN Git Service

android-x86/art.git
9 years agoam 0f601655: Merge "Add loop- and phi-related checks in the optimizing compiler."
Roland Levillain [Tue, 23 Sep 2014 09:42:02 +0000 (09:42 +0000)]
am 0f601655: Merge "Add loop- and phi-related checks in the optimizing compiler."

* commit '0f6016557d300a5a07c972465aef1ab2a125f5d1':
  Add loop- and phi-related checks in the optimizing compiler.

9 years agoMerge "Add loop- and phi-related checks in the optimizing compiler."
Roland Levillain [Tue, 23 Sep 2014 09:02:32 +0000 (09:02 +0000)]
Merge "Add loop- and phi-related checks in the optimizing compiler."

9 years agoam 8380c7c2: Merge "Add ScopedAssertNoThreadSuspension"
Mathieu Chartier [Mon, 22 Sep 2014 21:55:46 +0000 (21:55 +0000)]
am 8380c7c2: Merge "Add ScopedAssertNoThreadSuspension"

* commit '8380c7c246337e66291a88f633dfaa250457bb0f':
  Add ScopedAssertNoThreadSuspension

9 years agoMerge "Add ScopedAssertNoThreadSuspension"
Mathieu Chartier [Mon, 22 Sep 2014 21:40:06 +0000 (21:40 +0000)]
Merge "Add ScopedAssertNoThreadSuspension"

9 years agoAdd loop- and phi-related checks in the optimizing compiler.
Roland Levillain [Mon, 22 Sep 2014 16:13:44 +0000 (17:13 +0100)]
Add loop- and phi-related checks in the optimizing compiler.

- Ensure the pre-header block is first in the list of
  predecessors of a loop header.
- Ensure the loop header has only two predecessors and that
  only the second one is the back edge.
- Ensure there is only one back edge per loop.
- Ensure the first input of a phi is not itself.
- Ensure the number of phi inputs is the same as the number
  of its predecessors.
- Ensure phi input at index I either comes from the Ith
  predecessor or from a block that dominates this
  predecessor.

Change-Id: I4db5c68cfbc9b74d2d03125753d0143ece625378

9 years agoam b36bba6d: Merge "Also remove environment links to removed instructions."
Nicolas Geoffray [Mon, 22 Sep 2014 14:35:55 +0000 (14:35 +0000)]
am b36bba6d: Merge "Also remove environment links to removed instructions."

* commit 'b36bba6d35e88687852b108c8d4b73b3ec2a9397':
  Also remove environment links to removed instructions.

9 years agoMerge "Also remove environment links to removed instructions."
Nicolas Geoffray [Mon, 22 Sep 2014 14:22:08 +0000 (14:22 +0000)]
Merge "Also remove environment links to removed instructions."

9 years agoAlso remove environment links to removed instructions.
Nicolas Geoffray [Mon, 22 Sep 2014 11:27:27 +0000 (12:27 +0100)]
Also remove environment links to removed instructions.

Change-Id: I505163fb8683269c7d3fe21b34df92337d244552

9 years agoam ef3e89b9: Merge "Fix a bug in the handling of moves in register allocator."
Nicolas Geoffray [Mon, 22 Sep 2014 11:16:54 +0000 (11:16 +0000)]
am ef3e89b9: Merge "Fix a bug in the handling of moves in register allocator."

* commit 'ef3e89b9281525d6c084136c379346608b44d933':
  Fix a bug in the handling of moves in register allocator.

9 years agoMerge "Fix a bug in the handling of moves in register allocator."
Nicolas Geoffray [Mon, 22 Sep 2014 10:56:06 +0000 (10:56 +0000)]
Merge "Fix a bug in the handling of moves in register allocator."

9 years agoFix a bug in the handling of moves in register allocator.
Nicolas Geoffray [Mon, 22 Sep 2014 10:51:51 +0000 (11:51 +0100)]
Fix a bug in the handling of moves in register allocator.

Change-Id: Iaf1f34b0bece4f252290a97c3b73cc06e365985a

9 years agoam c4481dbf: Merge "Optimize JDWP stack local values access"
Sebastien Hertz [Mon, 22 Sep 2014 10:49:32 +0000 (10:49 +0000)]
am c4481dbf: Merge "Optimize JDWP stack local values access"

* commit 'c4481dbf1052f4ed9cb88aacbe0533e110fe6c1e':
  Optimize JDWP stack local values access

9 years agoMerge "Optimize JDWP stack local values access"
Sebastien Hertz [Mon, 22 Sep 2014 10:30:36 +0000 (10:30 +0000)]
Merge "Optimize JDWP stack local values access"

9 years agoOptimize JDWP stack local values access
Sebastien Hertz [Mon, 1 Sep 2014 15:07:11 +0000 (17:07 +0200)]
Optimize JDWP stack local values access

The StackFrame.GetValues and StackFrame.SetValues JDWP commands can refer to
multiple variables at the same time in a given frame. However we used to walk
the stack until getting to the requested frame for each variable.

Now, we walk the stack only once until getting to the frame so the context is
initialized. Then we read/write value for each variable from this context.

Bug: 17343501
Bug: 15680615

Change-Id: I2a4128f29a3c5856b994e280037c0a09eb48c5c8

9 years agoam 400376f0: Merge "Do not hold breakpoint lock when running the verifier"
Sebastien Hertz [Mon, 22 Sep 2014 09:29:14 +0000 (09:29 +0000)]
am 400376f0: Merge "Do not hold breakpoint lock when running the verifier"

* commit '400376f01747427313d4acf31b5ac508a8e368f7':
  Do not hold breakpoint lock when running the verifier

9 years agoam cff942b1: Merge "Add adb root to test-art-target, required by adb remount."
Nicolas Geoffray [Mon, 22 Sep 2014 09:29:13 +0000 (09:29 +0000)]
am cff942b1: Merge "Add adb root to test-art-target, required by adb remount."

* commit 'cff942b1f7ebb82e3d5e0a1334467544eced1575':
  Add adb root to test-art-target, required by adb remount.

9 years agoam b236d8c6: Merge "Fix JDWP crash when reporting exception"
Sebastien Hertz [Mon, 22 Sep 2014 09:29:12 +0000 (09:29 +0000)]
am b236d8c6: Merge "Fix JDWP crash when reporting exception"

* commit 'b236d8c61bb32bb433d1e289be07c427d11985ab':
  Fix JDWP crash when reporting exception

9 years agoMerge "Do not hold breakpoint lock when running the verifier"
Sebastien Hertz [Mon, 22 Sep 2014 09:10:17 +0000 (09:10 +0000)]
Merge "Do not hold breakpoint lock when running the verifier"

9 years agoMerge "Add adb root to test-art-target, required by adb remount."
Nicolas Geoffray [Mon, 22 Sep 2014 08:31:34 +0000 (08:31 +0000)]
Merge "Add adb root to test-art-target, required by adb remount."

9 years agoMerge "Fix JDWP crash when reporting exception"
Sebastien Hertz [Mon, 22 Sep 2014 08:15:52 +0000 (08:15 +0000)]
Merge "Fix JDWP crash when reporting exception"

9 years agoresolved conflicts for merge of 4e94fe3e to lmp-dev-plus-aosp
Sebastien Hertz [Mon, 22 Sep 2014 08:09:01 +0000 (10:09 +0200)]
resolved conflicts for merge of 4e94fe3e to lmp-dev-plus-aosp

Change-Id: I9d827debec0eea3d10cc04319f1e15bf8d904d55

9 years agoFix JDWP crash when reporting exception
Sebastien Hertz [Fri, 19 Sep 2014 10:07:51 +0000 (12:07 +0200)]
Fix JDWP crash when reporting exception

The exception's throw location may be null so we need to handle that
case. Also fixes a memset issue.

Bug: 17571297
(cherry picked from commit bbb63897d7f2d99219cb50721fe530521e08ddff)

Change-Id: Iedebb58f9460c5f04913c269200e51161bda1ba9

9 years agoDo not hold breakpoint lock when running the verifier
Sebastien Hertz [Thu, 18 Sep 2014 14:03:34 +0000 (16:03 +0200)]
Do not hold breakpoint lock when running the verifier

When setting a breakpoint, we need to know whether the method may be
inlined. We run the method verifier but that may cause thread
suspension. Therefore we must not hold any lock at this time. The
issue is we do hold the breakpoint lock so we fails a check in debug
mode.

This CL ensures we don't hold the breakpoint lock when running the
method verifier to detect inlining.

Bug: 17562442
Change-Id: Ia6b128fc8917ce00025b68ae4ac62fb2a1f154e6

9 years agoam 344f4145: Merge "Fix JDWP crash when reporting exception" into lmp-dev
Sebastien Hertz [Mon, 22 Sep 2014 07:49:09 +0000 (07:49 +0000)]
am 344f4145: Merge "Fix JDWP crash when reporting exception" into lmp-dev

* commit '344f4145bdff3c4123d8a1808964ea9761a9edc4':
  Fix JDWP crash when reporting exception

9 years agoMerge "Fix JDWP crash when reporting exception" into lmp-dev
Sebastien Hertz [Mon, 22 Sep 2014 07:40:24 +0000 (07:40 +0000)]
Merge "Fix JDWP crash when reporting exception" into lmp-dev

9 years agoam 38dcf0b6: Merge "Dump kernel/native stacks of pure native threads."
Christopher Ferris [Sun, 21 Sep 2014 23:32:23 +0000 (23:32 +0000)]
am 38dcf0b6: Merge "Dump kernel/native stacks of pure native threads."

* commit '38dcf0b640ea448100e297bb369e0dcb6558e5a9':
  Dump kernel/native stacks of pure native threads.

9 years agoMerge "Dump kernel/native stacks of pure native threads."
Christopher Ferris [Sun, 21 Sep 2014 23:19:37 +0000 (23:19 +0000)]
Merge "Dump kernel/native stacks of pure native threads."

9 years agoDump kernel/native stacks of pure native threads.
Christopher Ferris [Sat, 20 Sep 2014 00:23:59 +0000 (17:23 -0700)]
Dump kernel/native stacks of pure native threads.

Bug: 16463406

(cherry picked from commit 7da37cca5a5f71a0cd2442b2a119f76fa62e84b5)

Change-Id: I22a26d4ec4e3048ddcfd668eee4fccd8b2b3b727

9 years agoam e781c0d0: am e1a3950d: Merge "Dump kernel/native stacks of pure native threads...
Christopher Ferris [Sun, 21 Sep 2014 21:58:03 +0000 (21:58 +0000)]
am e781c0d0: am e1a3950d: Merge "Dump kernel/native stacks of pure native threads." into lmp-dev

* commit 'e781c0d0ca1fc0457692dd6d22364e3c3e1be305':
  Dump kernel/native stacks of pure native threads.

9 years agoam e1a3950d: Merge "Dump kernel/native stacks of pure native threads." into lmp-dev
Christopher Ferris [Sun, 21 Sep 2014 21:51:35 +0000 (21:51 +0000)]
am e1a3950d: Merge "Dump kernel/native stacks of pure native threads." into lmp-dev

* commit 'e1a3950de3eb46504aef5be693417cb8781564fe':
  Dump kernel/native stacks of pure native threads.

9 years agoMerge "Dump kernel/native stacks of pure native threads." into lmp-dev
Christopher Ferris [Sun, 21 Sep 2014 21:43:05 +0000 (21:43 +0000)]
Merge "Dump kernel/native stacks of pure native threads." into lmp-dev

9 years agoam 956b5539: am 503b9b08: Fix sput-wide verification flag.
Logan Chien [Sat, 20 Sep 2014 21:40:54 +0000 (21:40 +0000)]
am 956b5539: am 503b9b08: Fix sput-wide verification flag.

* commit '956b5539d53a4cc28147cf83da51c4c5efd3d610':
  Fix sput-wide verification flag.

9 years agoam 503b9b08: Fix sput-wide verification flag.
Logan Chien [Sat, 20 Sep 2014 21:30:28 +0000 (21:30 +0000)]
am 503b9b08: Fix sput-wide verification flag.

* commit '503b9b08a65ce8acd041aa78eb5e490360cff71b':
  Fix sput-wide verification flag.

9 years agoAdd ScopedAssertNoThreadSuspension
Mathieu Chartier [Sat, 20 Sep 2014 00:52:37 +0000 (17:52 -0700)]
Add ScopedAssertNoThreadSuspension

Added a new class, ScopedAssertNoThreadSuspension.
Deleted some unnecessary ScopedAssertNoThreadSuspension since
VisitObjects already has a ScopedAssertNoThreadSuspension.

Change-Id: I29ec0006120c39a27184d30e2d1d0c179e203776

9 years agoam 4266fd72: Merge "Fix sput-wide verification flag."
Ian Rogers [Sat, 20 Sep 2014 00:56:11 +0000 (00:56 +0000)]
am 4266fd72: Merge "Fix sput-wide verification flag."

* commit '4266fd721b17f1a95de619c55f69dff16f768662':
  Fix sput-wide verification flag.

9 years agoFix sput-wide verification flag.
Logan Chien [Thu, 11 Sep 2014 09:36:05 +0000 (17:36 +0800)]
Fix sput-wide verification flag.

The vA register for sput-wide is a wide register.  Thus, the
verification flag should be kVerifyRegAWide instead of
kVerifyRegA.

Without this change, the invalid Dex bytecode won't be
rejected by VerifyInstruction().  As the result, the
DCHECK_LT() in register_line-inl.h will abort the program.

Change-Id: I24b746d8a85ddaf811d9aebed12a3dd9f97d755f
(cherry picked from commit be8d99c228a76e70a19c1122aabe111c25a2121c)

9 years agoMerge "Fix sput-wide verification flag."
Ian Rogers [Sat, 20 Sep 2014 00:34:21 +0000 (00:34 +0000)]
Merge "Fix sput-wide verification flag."

9 years agoDump kernel/native stacks of pure native threads.
Christopher Ferris [Sat, 20 Sep 2014 00:23:59 +0000 (17:23 -0700)]
Dump kernel/native stacks of pure native threads.

Bug: 16463406
Change-Id: Ifa18d7ec6c60721ce4d3e73944851d1f07372043

9 years agoam 04db9465: Merge "ART: Address three issues with x86 assembler before enabling...
Ian Rogers [Fri, 19 Sep 2014 23:46:52 +0000 (23:46 +0000)]
am 04db9465: Merge "ART: Address three issues with x86 assembler before enabling load store elimination."

* commit '04db94656e4316fe84a19856452c6ca037799d11':
  ART: Address three issues with x86 assembler before enabling load store elimination.

9 years agoMerge "ART: Address three issues with x86 assembler before enabling load store elimin...
Ian Rogers [Fri, 19 Sep 2014 23:23:01 +0000 (23:23 +0000)]
Merge "ART: Address three issues with x86 assembler before enabling load store elimination."

9 years agoFix JDWP crash when reporting exception
Sebastien Hertz [Fri, 19 Sep 2014 10:07:51 +0000 (12:07 +0200)]
Fix JDWP crash when reporting exception

The exception's throw location may be null so we need to handle that
case. Also fixes a memset issue.

Bug: 17571297
Change-Id: I954b67207b1ba99a8f3240ce936579dc5644cc69

9 years agoam 24f4b816: Merge "ART: Allow oatdump to verify oat file"
Andreas Gampe [Fri, 19 Sep 2014 17:13:04 +0000 (17:13 +0000)]
am 24f4b816: Merge "ART: Allow oatdump to verify oat file"

* commit '24f4b816dd50793e8456dc60fe1b50856004d708':
  ART: Allow oatdump to verify oat file

9 years agoam d7fe69ba: Merge "ART: Fix host test failure (assembler_thumb_test)."
Ian Rogers [Fri, 19 Sep 2014 17:13:03 +0000 (17:13 +0000)]
am d7fe69ba: Merge "ART: Fix host test failure (assembler_thumb_test)."

* commit 'd7fe69baee699ef1c9ec17f95b2d4f2522f03557':
  ART: Fix host test failure (assembler_thumb_test).

9 years agoam 8147dcb6: Merge "ART: Overflow of bound check in ArrayCopy intrinsic"
Ian Rogers [Fri, 19 Sep 2014 17:13:02 +0000 (17:13 +0000)]
am 8147dcb6: Merge "ART: Overflow of bound check in ArrayCopy intrinsic"

* commit '8147dcb6b149ba5bba0915fdf0cbcb2dd18d431e':
  ART: Overflow of bound check in ArrayCopy intrinsic

9 years agoMerge "ART: Allow oatdump to verify oat file"
Andreas Gampe [Fri, 19 Sep 2014 16:54:18 +0000 (16:54 +0000)]
Merge "ART: Allow oatdump to verify oat file"

9 years agoMerge "ART: Fix host test failure (assembler_thumb_test)."
Ian Rogers [Fri, 19 Sep 2014 16:51:13 +0000 (16:51 +0000)]
Merge "ART: Fix host test failure (assembler_thumb_test)."

9 years agoMerge "ART: Overflow of bound check in ArrayCopy intrinsic"
Ian Rogers [Fri, 19 Sep 2014 16:48:19 +0000 (16:48 +0000)]
Merge "ART: Overflow of bound check in ArrayCopy intrinsic"

9 years agoam 87258edd: Merge "Slow path should break def tracking"
Bill Buzbee [Fri, 19 Sep 2014 16:28:27 +0000 (16:28 +0000)]
am 87258edd: Merge "Slow path should break def tracking"

* commit '87258edd817672daefc1d262af4cfdf732d4e454':
  Slow path should break def tracking

9 years agoMerge "Slow path should break def tracking"
Bill Buzbee [Fri, 19 Sep 2014 16:11:08 +0000 (16:11 +0000)]
Merge "Slow path should break def tracking"

9 years agoam 8d050d8c: Merge "AddIntrinsicSlowPath with resume requires clobbering"
Bill Buzbee [Fri, 19 Sep 2014 16:09:20 +0000 (16:09 +0000)]
am 8d050d8c: Merge "AddIntrinsicSlowPath with resume requires clobbering"

* commit '8d050d8cccaa4e7d4a3fde863ccb0411337c9c98':
  AddIntrinsicSlowPath with resume requires clobbering

9 years agoam d872b794: Merge "ART: Fix instruction flags of kMirOpCheck and kMirOpCheckPart2"
Ian Rogers [Fri, 19 Sep 2014 16:09:19 +0000 (16:09 +0000)]
am d872b794: Merge "ART: Fix instruction flags of kMirOpCheck and kMirOpCheckPart2"

* commit 'd872b7945ea07ba93ff984cb42b7388e0551a16c':
  ART: Fix instruction flags of kMirOpCheck and kMirOpCheckPart2

9 years agoam f33e4d41: Merge "X86 QBE: Make some X86 routines virtual"
Ian Rogers [Fri, 19 Sep 2014 15:57:29 +0000 (15:57 +0000)]
am f33e4d41: Merge "X86 QBE: Make some X86 routines virtual"

* commit 'f33e4d419e90b9a8514c040e5c8b5780965dd538':
  X86 QBE: Make some X86 routines virtual

9 years agoMerge "AddIntrinsicSlowPath with resume requires clobbering"
Bill Buzbee [Fri, 19 Sep 2014 15:52:49 +0000 (15:52 +0000)]
Merge "AddIntrinsicSlowPath with resume requires clobbering"

9 years agoMerge "ART: Fix instruction flags of kMirOpCheck and kMirOpCheckPart2"
Ian Rogers [Fri, 19 Sep 2014 15:44:24 +0000 (15:44 +0000)]
Merge "ART: Fix instruction flags of kMirOpCheck and kMirOpCheckPart2"

9 years agoMerge "X86 QBE: Make some X86 routines virtual"
Ian Rogers [Fri, 19 Sep 2014 15:37:26 +0000 (15:37 +0000)]
Merge "X86 QBE: Make some X86 routines virtual"

9 years agoam d026d88e: Merge "First optimization in new compiler: simple GVN."
Nicolas Geoffray [Fri, 19 Sep 2014 13:44:06 +0000 (13:44 +0000)]
am d026d88e: Merge "First optimization in new compiler: simple GVN."

* commit 'd026d88e07894cb8ca45aaec4d7b5e68b87b3218':
  First optimization in new compiler: simple GVN.

9 years agoMerge "First optimization in new compiler: simple GVN."
Nicolas Geoffray [Fri, 19 Sep 2014 13:21:14 +0000 (13:21 +0000)]
Merge "First optimization in new compiler: simple GVN."

9 years agoFirst optimization in new compiler: simple GVN.
Nicolas Geoffray [Mon, 8 Sep 2014 16:30:24 +0000 (17:30 +0100)]
First optimization in new compiler: simple GVN.

Change-Id: Ibe0efa4e84fd020a53ded310a92e0b4363f91b12

9 years agoAdd adb root to test-art-target, required by adb remount.
Nicolas Geoffray [Mon, 15 Sep 2014 08:46:08 +0000 (09:46 +0100)]
Add adb root to test-art-target, required by adb remount.

Also replace our sleep 3 with wait-for-device.
Change-Id: Icb53c4ad0e8d5c6e93b9610eb7e9530242720581

9 years agoam e07d111b: Merge "Update comment about disabling vmap dump."
Nicolas Geoffray [Fri, 19 Sep 2014 09:32:57 +0000 (09:32 +0000)]
am e07d111b: Merge "Update comment about disabling vmap dump."

* commit 'e07d111b9bff8b68b8d0ed44fb95805a5c6f47fb':
  Update comment about disabling vmap dump.

9 years agoMerge "Update comment about disabling vmap dump."
Nicolas Geoffray [Fri, 19 Sep 2014 08:29:26 +0000 (08:29 +0000)]
Merge "Update comment about disabling vmap dump."

9 years agoam 59e4480d: am dcfd6cad: Move spammy logs to JDWP verbose mode
Sebastien Hertz [Fri, 19 Sep 2014 08:04:23 +0000 (08:04 +0000)]
am 59e4480d: am dcfd6cad: Move spammy logs to JDWP verbose mode

* commit '59e4480d387bc85222cc11151eae47872cda9b48':
  Move spammy logs to JDWP verbose mode

9 years agoam 323fe34f: Merge "ART: Only allow the zygote to create the global boot image"
Andreas Gampe [Fri, 19 Sep 2014 07:58:12 +0000 (07:58 +0000)]
am 323fe34f: Merge "ART: Only allow the zygote to create the global boot image"

* commit '323fe34f5c26848a37720b2ec42d8b15fb8410c0':
  ART: Only allow the zygote to create the global boot image

9 years agoam dcfd6cad: Move spammy logs to JDWP verbose mode
Sebastien Hertz [Fri, 19 Sep 2014 07:50:14 +0000 (07:50 +0000)]
am dcfd6cad: Move spammy logs to JDWP verbose mode

* commit 'dcfd6cad9670ca3ae460a4af0bbe7d88cae21a3c':
  Move spammy logs to JDWP verbose mode

9 years agoMerge "ART: Only allow the zygote to create the global boot image"
Andreas Gampe [Fri, 19 Sep 2014 07:33:46 +0000 (07:33 +0000)]
Merge "ART: Only allow the zygote to create the global boot image"

9 years agoam 068ab177: am 33c36d4f: ART: Only allow the zygote to create the global boot image
Andreas Gampe [Fri, 19 Sep 2014 07:06:23 +0000 (07:06 +0000)]
am 068ab177: am 33c36d4f: ART: Only allow the zygote to create the global boot image

* commit '068ab177f61e67cc7394b0fc93286d85304ee433':
  ART: Only allow the zygote to create the global boot image

9 years agoam 33c36d4f: ART: Only allow the zygote to create the global boot image
Andreas Gampe [Fri, 19 Sep 2014 06:53:58 +0000 (06:53 +0000)]
am 33c36d4f: ART: Only allow the zygote to create the global boot image

* commit '33c36d4f22ab6a5e61eb47b654deaf647c34e49c':
  ART: Only allow the zygote to create the global boot image

9 years agoam 5cdd0734: Merge "Move spammy logs to JDWP verbose mode"
Sebastien Hertz [Fri, 19 Sep 2014 06:53:13 +0000 (06:53 +0000)]
am 5cdd0734: Merge "Move spammy logs to JDWP verbose mode"

* commit '5cdd0734d2f79eedc530f5f1e876cd2110e29c86':
  Move spammy logs to JDWP verbose mode

9 years agoMove spammy logs to JDWP verbose mode
Sebastien Hertz [Thu, 18 Sep 2014 08:20:42 +0000 (10:20 +0200)]
Move spammy logs to JDWP verbose mode

We are spammed by warning messages when debugging, especially each time we
suspend/resume all threads (to update instrumentation or collect monitor info).
It's common to get into the cases where these warnings are logged so they
shouldn't be warning but debug messages.

This CL moves these LOG(WARNING) to VLOG(jdwp) to not disturb developers when
debugging their app (especially when looking for specific messages in logcat).
We keep them in JDWP verbose mode because they help knowing when we initiate
these sequences of "suspend/resume all threads".

Also adds debug suspend count in the log message for more context.

Bug: 17524544
Bug: 17170697

(cherry picked from commit f272af4b9dcd39cdd50fa6655601a26e837eaea9)

Change-Id: I61df70ace1475bf10d83202b6bb774f7036354cb

9 years agoART: Only allow the zygote to create the global boot image
Andreas Gampe [Fri, 19 Sep 2014 03:56:04 +0000 (20:56 -0700)]
ART: Only allow the zygote to create the global boot image

Do not allow arbitrary processes, even when root, to write the
boot image in /data/dalvik-cache.

Bug: 174787521751048917439961
Change-Id: Iba2b74be6d0752f4221f4ff5ee295b45a34cb2e1
(cherry picked from commit 33c36d4f22ab6a5e61eb47b654deaf647c34e49c)

9 years agoART: Only allow the zygote to create the global boot image
Andreas Gampe [Fri, 19 Sep 2014 03:56:04 +0000 (20:56 -0700)]
ART: Only allow the zygote to create the global boot image

Do not allow arbitrary processes, even when root, to write the
boot image in /data/dalvik-cache.

Bug: 174787521751048917439961
Change-Id: Iba2b74be6d0752f4221f4ff5ee295b45a34cb2e1

9 years agoMerge "Move spammy logs to JDWP verbose mode"
Sebastien Hertz [Fri, 19 Sep 2014 06:29:26 +0000 (06:29 +0000)]
Merge "Move spammy logs to JDWP verbose mode"

9 years agoART: Fix instruction flags of kMirOpCheck and kMirOpCheckPart2
Udayan Banerji [Tue, 9 Sep 2014 23:49:34 +0000 (16:49 -0700)]
ART: Fix instruction flags of kMirOpCheck and kMirOpCheckPart2

Since they are just wrappers for correct modeling, it was believed
that these instructions do not need flags. However, the flags
are needed to correctly reflect their semantic behavior in a manner
consistent with all other instructions.

Also, missing flags for new extended instructions have also been added.

Change-Id: I2282eebf4b9c82b82e26722914645fcc0be49c82
Signed-off-by: Udayan Banerji <udayan.banerji@intel.com>
Signed-off-by: Razvan A Lupusoru <razvan.a.lupusoru@intel.com>
9 years agoam c3c7f5fa: (-s ours) am 63bc11ef: DO NOT MERGE. Only have a portable entrypoint...
Ian Rogers [Thu, 18 Sep 2014 20:56:10 +0000 (20:56 +0000)]
am c3c7f5fa: (-s ours) am 63bc11ef: DO NOT MERGE. Only have a portable entrypoint in portable builds.

* commit 'c3c7f5fabd5c00eb945d492db4bba1825ad6a6f3':
  DO NOT MERGE. Only have a portable entrypoint in portable builds.

9 years agoam c64746c1: Merge "Don\'t call dlsym from signal context in signal chain"
Brian Carlstrom [Thu, 18 Sep 2014 19:26:37 +0000 (19:26 +0000)]
am c64746c1: Merge "Don\'t call dlsym from signal context in signal chain"

* commit 'c64746c1d224143d85232c8899126930e3fe5d27':
  Don't call dlsym from signal context in signal chain

9 years agoam 63bc11ef: DO NOT MERGE. Only have a portable entrypoint in portable builds.
Ian Rogers [Thu, 18 Sep 2014 18:47:51 +0000 (18:47 +0000)]
am 63bc11ef: DO NOT MERGE. Only have a portable entrypoint in portable builds.

* commit '63bc11efaac0c041e849ab401f9fc368631a00f5':
  DO NOT MERGE. Only have a portable entrypoint in portable builds.

9 years agoMerge "Don't call dlsym from signal context in signal chain"
Brian Carlstrom [Thu, 18 Sep 2014 18:24:06 +0000 (18:24 +0000)]
Merge "Don't call dlsym from signal context in signal chain"

9 years agoDO NOT MERGE. Only have a portable entrypoint in portable builds.
Ian Rogers [Thu, 18 Sep 2014 15:56:45 +0000 (08:56 -0700)]
DO NOT MERGE. Only have a portable entrypoint in portable builds.

Bug: 16214885

Change-Id: Iff7b7415efdbdabd7e6020e221a540f6a774c852

9 years agoam 53562d9a: Merge "Initiate a constant propagation pass in the optimizing compiler."
Roland Levillain [Thu, 18 Sep 2014 16:24:28 +0000 (16:24 +0000)]
am 53562d9a: Merge "Initiate a constant propagation pass in the optimizing compiler."

* commit '53562d9a8fb210cf33a694f5e81f3d13ce3a8c48':
  Initiate a constant propagation pass in the optimizing compiler.

9 years agoMerge "Initiate a constant propagation pass in the optimizing compiler."
Roland Levillain [Thu, 18 Sep 2014 16:07:18 +0000 (16:07 +0000)]
Merge "Initiate a constant propagation pass in the optimizing compiler."

9 years agoam f67bda68: Merge "Fix a lint error and update a test after the phi fix."
Nicolas Geoffray [Thu, 18 Sep 2014 16:00:46 +0000 (16:00 +0000)]
am f67bda68: Merge "Fix a lint error and update a test after the phi fix."

* commit 'f67bda68a579a8ac79f9d8f889e0233a8f94da55':
  Fix a lint error and update a test after the phi fix.

9 years agoMerge "Fix a lint error and update a test after the phi fix."
Nicolas Geoffray [Thu, 18 Sep 2014 15:48:23 +0000 (15:48 +0000)]
Merge "Fix a lint error and update a test after the phi fix."

9 years agoFix a lint error and update a test after the phi fix.
Nicolas Geoffray [Thu, 18 Sep 2014 15:46:20 +0000 (16:46 +0100)]
Fix a lint error and update a test after the phi fix.

Change-Id: I6e9ab2a8300c2493a8d3e93ab4ced3d7c9552fc5

9 years agoam aaadf03f: Merge "Ensure the first predecessor of a loop is the pre header."
Nicolas Geoffray [Thu, 18 Sep 2014 15:22:56 +0000 (15:22 +0000)]
am aaadf03f: Merge "Ensure the first predecessor of a loop is the pre header."

* commit 'aaadf03fd8d9f6a50a3b8b4b916e7cc161e4edba':
  Ensure the first predecessor of a loop is the pre header.

9 years agoMerge "Ensure the first predecessor of a loop is the pre header."
Nicolas Geoffray [Thu, 18 Sep 2014 15:02:40 +0000 (15:02 +0000)]
Merge "Ensure the first predecessor of a loop is the pre header."

9 years agoInitiate a constant propagation pass in the optimizing compiler.
Roland Levillain [Thu, 18 Sep 2014 14:25:07 +0000 (15:25 +0100)]
Initiate a constant propagation pass in the optimizing compiler.

- Perform constant folding on int and long additions and subtractions in
  the optimizing compiler.
- Apply constant folding to conditions and comparisons.

Change-Id: Ic88783a3c975fda777c74c531e257fa777be42eb

9 years agoMerge "resolved conflicts for merge of 6da664b2 to lmp-dev-plus-aosp" into lmp-dev...
Sebastien Hertz [Thu, 18 Sep 2014 13:16:17 +0000 (13:16 +0000)]
Merge "resolved conflicts for merge of 6da664b2 to lmp-dev-plus-aosp" into lmp-dev-plus-aosp

9 years agoresolved conflicts for merge of 6da664b2 to lmp-dev-plus-aosp
Sebastien Hertz [Thu, 18 Sep 2014 12:57:46 +0000 (14:57 +0200)]
resolved conflicts for merge of 6da664b2 to lmp-dev-plus-aosp

Change-Id: I9b243f50ffffb2457ee859a099ab29ae83f9fd82

9 years agoam 6aa606c9: Merge "Update JDWP event filtering to avoid useless ids"
Sebastien Hertz [Thu, 18 Sep 2014 13:00:59 +0000 (13:00 +0000)]
am 6aa606c9: Merge "Update JDWP event filtering to avoid useless ids"

* commit '6aa606c9284ac31961f4c5b20c3645ac78acfaad':
  Update JDWP event filtering to avoid useless ids

9 years agoMerge "Update JDWP event filtering to avoid useless ids"
Sebastien Hertz [Thu, 18 Sep 2014 12:39:46 +0000 (12:39 +0000)]
Merge "Update JDWP event filtering to avoid useless ids"

9 years agoam b87baed1: Merge "Update JDWP event filtering to avoid useless ids" into lmp-dev
Sebastien Hertz [Thu, 18 Sep 2014 12:34:54 +0000 (12:34 +0000)]
am b87baed1: Merge "Update JDWP event filtering to avoid useless ids" into lmp-dev

* commit 'b87baed15b03e2c853e285253ac92391572502f8':
  Update JDWP event filtering to avoid useless ids

9 years agoUpdate JDWP event filtering to avoid useless ids
Sebastien Hertz [Tue, 9 Sep 2014 10:10:13 +0000 (12:10 +0200)]
Update JDWP event filtering to avoid useless ids

To reduce the number of JDWP ids in the debugger, we update the event filtering
support to work with runtime objects (Thread, Class, Object, ...) instead of
JDWP ids (ThreadId, RefTypeId, ObjectId, ...).

We used to create useless JDWP ids for events even if they were not reported
because of event filtering (thread only, class only, instance only, ...). Now
we only create JDWP ids when we know we're going to report an event.

Bug: 17343664
(cherry picked from commit d539167b7f11136fe570a77aff2ee4935842007a)

Change-Id: I8619e219733fc2fa3569f473b7bd8d9af4181f2b

9 years agoMerge "Update JDWP event filtering to avoid useless ids" into lmp-dev
Sebastien Hertz [Thu, 18 Sep 2014 12:20:26 +0000 (12:20 +0000)]
Merge "Update JDWP event filtering to avoid useless ids" into lmp-dev

9 years agoam e5cafd5f: Merge "It can be that no method has been compiled."
Nicolas Geoffray [Thu, 18 Sep 2014 11:39:39 +0000 (11:39 +0000)]
am e5cafd5f: Merge "It can be that no method has been compiled."

* commit 'e5cafd5fd1d476c1309cf10ff45877adce2f4347':
  It can be that no method has been compiled.

9 years agoMerge "It can be that no method has been compiled."
Nicolas Geoffray [Thu, 18 Sep 2014 11:22:38 +0000 (11:22 +0000)]
Merge "It can be that no method has been compiled."

9 years agoam e2aa073e: Merge "Small fixes to get the boot image compiled in debug mode."
Nicolas Geoffray [Thu, 18 Sep 2014 11:13:44 +0000 (11:13 +0000)]
am e2aa073e: Merge "Small fixes to get the boot image compiled in debug mode."

* commit 'e2aa073e57e8129706cf4f87c1e7c5cfedd2951f':
  Small fixes to get the boot image compiled in debug mode.

9 years agoMerge "Small fixes to get the boot image compiled in debug mode."
Nicolas Geoffray [Thu, 18 Sep 2014 10:59:27 +0000 (10:59 +0000)]
Merge "Small fixes to get the boot image compiled in debug mode."

9 years agoIt can be that no method has been compiled.
Nicolas Geoffray [Thu, 18 Sep 2014 10:31:32 +0000 (11:31 +0100)]
It can be that no method has been compiled.

Therefore do not divide by 0, but log it.

Change-Id: Iee7760ab7f31c73e90d62387e5fb6fb7aa2c56e2

9 years agoam 185a7a49: Merge "Initiate a dead code elimination pass in the optimizing compiler."
Roland Levillain [Thu, 18 Sep 2014 10:01:42 +0000 (10:01 +0000)]
am 185a7a49: Merge "Initiate a dead code elimination pass in the optimizing compiler."

* commit '185a7a49c2e6f8869ffd11452f1d93ef5304fb5f':
  Initiate a dead code elimination pass in the optimizing compiler.

9 years agoam 539f559e: Merge "Add CFG and SSA form checkers in the optimizing compiler."
Roland Levillain [Thu, 18 Sep 2014 10:01:41 +0000 (10:01 +0000)]
am 539f559e: Merge "Add CFG and SSA form checkers in the optimizing compiler."

* commit '539f559e0a4af726eba0ecd424cf9cd668adc45f':
  Add CFG and SSA form checkers in the optimizing compiler.