OSDN Git Service

android-x86/art.git
9 years agoam e163a3a1: Merge "Fix oatdump for no image"
Mathieu Chartier [Wed, 15 Oct 2014 17:41:42 +0000 (17:41 +0000)]
am e163a3a1: Merge "Fix oatdump for no image"

* commit 'e163a3a150983943ea08d5c8487e3789875ffe7e':
  Fix oatdump for no image

9 years agoMerge "Fix oatdump for no image"
Mathieu Chartier [Wed, 15 Oct 2014 17:33:37 +0000 (17:33 +0000)]
Merge "Fix oatdump for no image"

9 years agoFix oatdump for no image
Mathieu Chartier [Wed, 15 Oct 2014 17:31:46 +0000 (10:31 -0700)]
Fix oatdump for no image

Added MemMap::Init if we dont initialize the runtime.

Bug: 18000219
Change-Id: I1bd715e18838919c0773db5fa25623348326baa6

9 years agoam 5c5efc25: Merge "ART: NullCheckElimination should converge with MIR_IGNORE_NULL_CHECK"
Vladimir Marko [Wed, 15 Oct 2014 12:45:01 +0000 (12:45 +0000)]
am 5c5efc25: Merge "ART: NullCheckElimination should converge with MIR_IGNORE_NULL_CHECK"

* commit '5c5efc253507eb43265997c9afcd778f72b6cef4':
  ART: NullCheckElimination should converge with MIR_IGNORE_NULL_CHECK

9 years agoMerge "ART: NullCheckElimination should converge with MIR_IGNORE_NULL_CHECK"
Vladimir Marko [Wed, 15 Oct 2014 12:35:54 +0000 (12:35 +0000)]
Merge "ART: NullCheckElimination should converge with MIR_IGNORE_NULL_CHECK"

9 years agoART: NullCheckElimination should converge with MIR_IGNORE_NULL_CHECK
Yevgeny Rouban [Wed, 15 Oct 2014 10:32:25 +0000 (17:32 +0700)]
ART: NullCheckElimination should converge with MIR_IGNORE_NULL_CHECK

If the MIRGraph::EliminateNullChecksAndInferTypes() function managed
to prove that some regs are non-null then it sets the flag
MIR_IGNORE_NULL_CHECK and resets this flag for all the other regs.
If some previous optimizations have already set MIR_IGNORE_NULL_CHECK
then it can be reset by EliminateNullChecksAndInferTypes. This way
NullCheckElimination discards some optimization efforts.
Optimization passes should not reset MIR_IGNORE_NULL_CHECK unless
they 100% sure NullCheck is needed.

This patch makes the NCE_TypeInference pass merge its own
calculated MIR_IGNORE_NULL_CHECK with the one came from previous
optimizations. Technically NCE_TypeInference calculates the flag
in a temporary MIR_MARK-th bit by preserving MIR_IGNORE_NULL_CHECK.
Then at the end of NCE pass MIR_MARK is or-ed with
MIR_IGNORE_NULL_CHECK.

Change-Id: Ib26997c70ecf2c158f61496dee9b1fe45c812096
Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
9 years agoam 2df6840f: Merge "Add tests for missing classes"
Brian Carlstrom [Wed, 15 Oct 2014 04:44:40 +0000 (04:44 +0000)]
am 2df6840f: Merge "Add tests for missing classes"

* commit '2df6840f68dd18d7dd8dbf53f8b6181bbfdc4fc4':
  Add tests for missing classes

9 years agoMerge "Add tests for missing classes"
Brian Carlstrom [Wed, 15 Oct 2014 04:36:12 +0000 (04:36 +0000)]
Merge "Add tests for missing classes"

9 years agoam d2caad30: Merge "Fix mac build (second attempt)"
Dmitriy Ivanov [Wed, 15 Oct 2014 02:44:01 +0000 (02:44 +0000)]
am d2caad30: Merge "Fix mac build (second attempt)"

* commit 'd2caad30be6598c78f900bb27738466875efaeec':
  Fix mac build (second attempt)

9 years agoMerge "Fix mac build (second attempt)"
Dmitriy Ivanov [Wed, 15 Oct 2014 01:34:56 +0000 (01:34 +0000)]
Merge "Fix mac build (second attempt)"

9 years agoFix mac build (second attempt)
Dmitriy Ivanov [Wed, 15 Oct 2014 00:55:28 +0000 (17:55 -0700)]
Fix mac build (second attempt)

  It appears that the version of mac ld with
  -export_dynamic is pretty recent.

  Remove -export_dynamic to fix build for older
  mac versions (?)

Change-Id: Ibc3b2f9a0aeec9125cd73b7df0cf22de9e8e4d16

9 years agoam cfd8adec: Merge "Add VLOG(class_linker) for clinit errors"
Brian Carlstrom [Wed, 15 Oct 2014 00:20:35 +0000 (00:20 +0000)]
am cfd8adec: Merge "Add VLOG(class_linker) for clinit errors"

* commit 'cfd8adec84701752a56ddccf556b8c40142a9e0f':
  Add VLOG(class_linker) for clinit errors

9 years agoAdd tests for missing classes
Brian Carlstrom [Tue, 14 Oct 2014 07:06:31 +0000 (00:06 -0700)]
Add tests for missing classes

Bug: 17959926
Change-Id: I659e410051dc52e054953a779d573807f8aa54fa

9 years agoMerge "Add VLOG(class_linker) for clinit errors"
Brian Carlstrom [Wed, 15 Oct 2014 00:03:55 +0000 (00:03 +0000)]
Merge "Add VLOG(class_linker) for clinit errors"

9 years agoam eff81605: Merge "Use exit(1), not exit(-1)"
Brian Carlstrom [Tue, 14 Oct 2014 23:56:50 +0000 (23:56 +0000)]
am eff81605: Merge "Use exit(1), not exit(-1)"

* commit 'eff81605b674f75ff541f84ef63523fdc9939a9a':
  Use exit(1), not exit(-1)

9 years agoAdd VLOG(class_linker) for clinit errors
Brian Carlstrom [Thu, 9 Oct 2014 00:55:21 +0000 (17:55 -0700)]
Add VLOG(class_linker) for clinit errors

Bug: 17915141
Change-Id: I3002cf4348ec3fa241f63ff1515f813f6051c267

9 years agoMerge "Use exit(1), not exit(-1)"
Brian Carlstrom [Tue, 14 Oct 2014 23:49:24 +0000 (23:49 +0000)]
Merge "Use exit(1), not exit(-1)"

9 years agoam c54e12a4: (-s ours) Change MemMap::maps_ to not be global variable
Mathieu Chartier [Tue, 14 Oct 2014 23:48:03 +0000 (23:48 +0000)]
am c54e12a4: (-s ours) Change MemMap::maps_ to not be global variable

* commit 'c54e12a413e16f90526318f1f466a900a717fbb0':
  Change MemMap::maps_ to not be global variable

9 years agoam 67555f1f: Merge "Fixing mac build"
Dmitriy Ivanov [Tue, 14 Oct 2014 23:23:03 +0000 (23:23 +0000)]
am 67555f1f: Merge "Fixing mac build"

* commit '67555f1f1c890b12f5936bfa5a25efa70865970a':
  Fixing mac build

9 years agoChange MemMap::maps_ to not be global variable
Mathieu Chartier [Tue, 14 Oct 2014 23:22:41 +0000 (16:22 -0700)]
Change MemMap::maps_ to not be global variable

Runtime.exit() was causing globals to get destructed at the same time
that another thread was using it for allocating a new mem map.

(cherry picked from commit 6e88ef6b604a7a945a466784580c42e6554c1289)

Bug: 17962201
Change-Id: I400cb7b8141d858f3c08a6fe59a02838c04c6962

9 years agoMerge "Fixing mac build"
Dmitriy Ivanov [Tue, 14 Oct 2014 23:12:15 +0000 (23:12 +0000)]
Merge "Fixing mac build"

9 years agoUse exit(1), not exit(-1)
Brian Carlstrom [Tue, 14 Oct 2014 22:39:01 +0000 (15:39 -0700)]
Use exit(1), not exit(-1)

Change-Id: If59f988ee8b37f6f87363fe8ea8edfde738f3397

9 years agoam b13d4c59: Merge "Change MemMap::maps_ to not be global variable"
Mathieu Chartier [Tue, 14 Oct 2014 23:04:15 +0000 (23:04 +0000)]
am b13d4c59: Merge "Change MemMap::maps_ to not be global variable"

* commit 'b13d4c592c187c54d6870b1d46601f3c00783fc7':
  Change MemMap::maps_ to not be global variable

9 years agoMerge "Change MemMap::maps_ to not be global variable"
Mathieu Chartier [Tue, 14 Oct 2014 22:57:06 +0000 (22:57 +0000)]
Merge "Change MemMap::maps_ to not be global variable"

9 years agoFixing mac build
Dmitriy Ivanov [Tue, 14 Oct 2014 19:18:10 +0000 (12:18 -0700)]
Fixing mac build

 MacOS static linker does not understand --export-dynamic
 and --version-script. According to man ld there is
 -export_dynamic option which should do the same
 thing.

Change-Id: I8cde8c6c7305bebbbcc9dded143fa5cdaf386d65

9 years agoChange MemMap::maps_ to not be global variable
Mathieu Chartier [Tue, 14 Oct 2014 22:01:24 +0000 (15:01 -0700)]
Change MemMap::maps_ to not be global variable

Runtime.exit() was causing globals to get destructed at the same time
that another thread was using it for allocating a new mem map.

Bug: 17962201
Change-Id: I400cb7b8141d858f3c08a6fe59a02838c04c6962

9 years agoam 58e51f38: Merge "Untie gtest executables from LD_PRELOAD"
Dmitriy Ivanov [Tue, 14 Oct 2014 18:54:15 +0000 (18:54 +0000)]
am 58e51f38: Merge "Untie gtest executables from LD_PRELOAD"

* commit '58e51f38e2304a08aa9ec380383e0b3614f96a96':
  Untie gtest executables from LD_PRELOAD

9 years agoMerge "Untie gtest executables from LD_PRELOAD"
Dmitriy Ivanov [Tue, 14 Oct 2014 18:44:26 +0000 (18:44 +0000)]
Merge "Untie gtest executables from LD_PRELOAD"

9 years agoUntie gtest executables from LD_PRELOAD
Dmitriy Ivanov [Tue, 14 Oct 2014 18:38:46 +0000 (11:38 -0700)]
Untie gtest executables from LD_PRELOAD

Bug: 15345057
Bug: 15426766
Change-Id: I053ddbacaf918405ce6b38a5ba0d623299c7b5c8

9 years agoam e4228d93: Merge "Remove libsigchain from LD_PRELOADS"
Dmitriy Ivanov [Tue, 14 Oct 2014 17:44:40 +0000 (17:44 +0000)]
am e4228d93: Merge "Remove libsigchain from LD_PRELOADS"

* commit 'e4228d93de256c72df9d57f0def938b11cfe21a1':
  Remove libsigchain from LD_PRELOADS

9 years agoMerge "Remove libsigchain from LD_PRELOADS"
Dmitriy Ivanov [Tue, 14 Oct 2014 17:36:34 +0000 (17:36 +0000)]
Merge "Remove libsigchain from LD_PRELOADS"

9 years agoam b8f24808: Merge "Merge reference-run-test-classes and run-test-jar."
Nicolas Geoffray [Tue, 14 Oct 2014 09:35:52 +0000 (09:35 +0000)]
am b8f24808: Merge "Merge reference-run-test-classes and run-test-jar."

* commit 'b8f2480853aeca1db33ed623b9a9b2648954906e':
  Merge reference-run-test-classes and run-test-jar.

9 years agoMerge "Merge reference-run-test-classes and run-test-jar."
Nicolas Geoffray [Tue, 14 Oct 2014 09:28:07 +0000 (09:28 +0000)]
Merge "Merge reference-run-test-classes and run-test-jar."

9 years agoresolved conflicts for merge of 5d1c1bbd to lmp-dev-plus-aosp
Sebastien Hertz [Tue, 14 Oct 2014 07:11:57 +0000 (09:11 +0200)]
resolved conflicts for merge of 5d1c1bbd to lmp-dev-plus-aosp

Change-Id: Ibf08c35044e3f6ac2aac1bf4f418f35a4ecc42e4

9 years agoam 35274252: Merge "Make finalization test more robust"
Mathieu Chartier [Mon, 13 Oct 2014 22:10:04 +0000 (22:10 +0000)]
am 35274252: Merge "Make finalization test more robust"

* commit '35274252040670cec78b7abe8322e5dd9b24ee26':
  Make finalization test more robust

9 years agoam cbcbd909: Merge "Revert "Adjust the suspend check interval to 16.""
Ian Rogers [Mon, 13 Oct 2014 22:10:01 +0000 (22:10 +0000)]
am cbcbd909: Merge "Revert "Adjust the suspend check interval to 16.""

* commit 'cbcbd90981c1e85984759c504df662616d7f93b7':
  Revert "Adjust the suspend check interval to 16."

9 years agoam bbacc2c3: Merge "Make gc-thrash able to handle OOME"
Mathieu Chartier [Mon, 13 Oct 2014 22:09:59 +0000 (22:09 +0000)]
am bbacc2c3: Merge "Make gc-thrash able to handle OOME"

* commit 'bbacc2c3a0473b067b58524c58015be193af03cc':
  Make gc-thrash able to handle OOME

9 years agoam f14cc2cb: Merge "Adjust the suspend check interval to 16."
Hiroshi Yamauchi [Mon, 13 Oct 2014 22:09:52 +0000 (22:09 +0000)]
am f14cc2cb: Merge "Adjust the suspend check interval to 16."

* commit 'f14cc2cb813b34536e94a851daf53a89c5c7dd3e':
  Adjust the suspend check interval to 16.

9 years agoam c39eb4ae: Merge "Add regression test for null check elimination."
Vladimir Marko [Mon, 13 Oct 2014 22:09:51 +0000 (22:09 +0000)]
am c39eb4ae: Merge "Add regression test for null check elimination."

* commit 'c39eb4aef19b7fe64283fb3ae7ce6d13cd6c8294':
  Add regression test for null check elimination.

9 years agoam 72ab3cad: Merge "Revert "ART: fix NullCheckElimination to preserve MIR_IGNORE_NULL...
Vladimir Marko [Mon, 13 Oct 2014 22:09:50 +0000 (22:09 +0000)]
am 72ab3cad: Merge "Revert "ART: fix NullCheckElimination to preserve MIR_IGNORE_NULL_CHECK""

* commit '72ab3cadce5002163783d7b76781b9f26413b773':
  Revert "ART: fix NullCheckElimination to preserve MIR_IGNORE_NULL_CHECK"

9 years agoMerge "Make finalization test more robust"
Mathieu Chartier [Mon, 13 Oct 2014 20:24:25 +0000 (20:24 +0000)]
Merge "Make finalization test more robust"

9 years agoMerge "Revert "Adjust the suspend check interval to 16.""
Ian Rogers [Mon, 13 Oct 2014 19:28:50 +0000 (19:28 +0000)]
Merge "Revert "Adjust the suspend check interval to 16.""

9 years agoRevert "Adjust the suspend check interval to 16."
Ian Rogers [Mon, 13 Oct 2014 19:28:25 +0000 (19:28 +0000)]
Revert "Adjust the suspend check interval to 16."

This reverts commit dc0f40e484dc4bf72032f6d9f1c5db694c6fad55.

Change-Id: I4dd1acf2adfc49b03bac9c9fbd0ea3deebbd054e

9 years agoMerge "Make gc-thrash able to handle OOME"
Mathieu Chartier [Mon, 13 Oct 2014 19:01:56 +0000 (19:01 +0000)]
Merge "Make gc-thrash able to handle OOME"

9 years agoMake gc-thrash able to handle OOME
Mathieu Chartier [Mon, 13 Oct 2014 18:45:52 +0000 (11:45 -0700)]
Make gc-thrash able to handle OOME

Bug: 17962200
Change-Id: I0dab063af7583bd4f34bbf101858be4c9c0955fa

9 years agoMerge "Adjust the suspend check interval to 16."
Hiroshi Yamauchi [Mon, 13 Oct 2014 18:09:55 +0000 (18:09 +0000)]
Merge "Adjust the suspend check interval to 16."

9 years agoMerge "Add regression test for null check elimination."
Vladimir Marko [Mon, 13 Oct 2014 18:00:28 +0000 (18:00 +0000)]
Merge "Add regression test for null check elimination."

9 years agoMake finalization test more robust
Mathieu Chartier [Mon, 13 Oct 2014 17:58:01 +0000 (10:58 -0700)]
Make finalization test more robust

Moved some logic to its own function to prevent vregs keeping objects
live. Not sure if it fixes flaky test, can't reproduce.

Bug: 17932313
Change-Id: Ib9c70d954a9692d6529f6ac645c9d0e9f596e502

9 years agoAdjust the suspend check interval to 16.
Hiroshi Yamauchi [Mon, 13 Oct 2014 17:40:07 +0000 (10:40 -0700)]
Adjust the suspend check interval to 16.

Bug: 17953517
Change-Id: I4145f65a79f382f9f807df071f996ffdb60ac4a5

9 years agoAdd regression test for null check elimination.
Vladimir Marko [Mon, 13 Oct 2014 17:29:44 +0000 (18:29 +0100)]
Add regression test for null check elimination.

Prompted by
    https://android-review.googlesource.com/110090

Bug: 17969907
Change-Id: I938c27cda0681b9431d69baf4eafa7ca2f9b5c9c

9 years agoMerge "Revert "ART: fix NullCheckElimination to preserve MIR_IGNORE_NULL_CHECK""
Vladimir Marko [Mon, 13 Oct 2014 17:19:04 +0000 (17:19 +0000)]
Merge "Revert "ART: fix NullCheckElimination to preserve MIR_IGNORE_NULL_CHECK""

9 years agoam 472b1591: Merge "Handlerize throw location in DumpJavaStack"
Ian Rogers [Mon, 13 Oct 2014 16:03:12 +0000 (16:03 +0000)]
am 472b1591: Merge "Handlerize throw location in DumpJavaStack"

* commit '472b1591300912af2430e3299c3b6119624c2849':
  Handlerize throw location in DumpJavaStack

9 years agoam bae113dc: Merge "ART: Stash any exception before dumping a stack"
Ian Rogers [Mon, 13 Oct 2014 16:03:11 +0000 (16:03 +0000)]
am bae113dc: Merge "ART: Stash any exception before dumping a stack"

* commit 'bae113dc4bd8de4be4a0186125f2c2e00c91c9d2':
  ART: Stash any exception before dumping a stack

9 years agoam a881c38b: Merge "ART: ARM64: Fix instruction addresses in the disassembly."
Ian Rogers [Mon, 13 Oct 2014 16:03:10 +0000 (16:03 +0000)]
am a881c38b: Merge "ART: ARM64: Fix instruction addresses in the disassembly."

* commit 'a881c38b16a2b7bfe0f649629e3b6036a92dc7a0':
  ART: ARM64: Fix instruction addresses in the disassembly.

9 years agoMerge "Handlerize throw location in DumpJavaStack"
Ian Rogers [Mon, 13 Oct 2014 15:54:12 +0000 (15:54 +0000)]
Merge "Handlerize throw location in DumpJavaStack"

9 years agoMerge "ART: Stash any exception before dumping a stack"
Ian Rogers [Mon, 13 Oct 2014 15:53:47 +0000 (15:53 +0000)]
Merge "ART: Stash any exception before dumping a stack"

9 years agoMerge "ART: ARM64: Fix instruction addresses in the disassembly."
Ian Rogers [Mon, 13 Oct 2014 15:53:15 +0000 (15:53 +0000)]
Merge "ART: ARM64: Fix instruction addresses in the disassembly."

9 years agoRevert "ART: fix NullCheckElimination to preserve MIR_IGNORE_NULL_CHECK"
Vladimir Marko [Mon, 13 Oct 2014 15:18:34 +0000 (15:18 +0000)]
Revert "ART: fix NullCheckElimination to preserve MIR_IGNORE_NULL_CHECK"

This reverts commit 504b7882fbb841787e350f2da54b1fa9171ce82a.

Change-Id: I41c7a03c49f7904370a64c6ececc89146ff735c8

9 years agoART: ARM64: Fix instruction addresses in the disassembly.
Alexandre Rames [Fri, 10 Oct 2014 16:14:18 +0000 (17:14 +0100)]
ART: ARM64: Fix instruction addresses in the disassembly.

Change-Id: Ic8b6e0d5cd15e029de9bc82e0a4fc2e33d07936c

9 years agoam f8e28f57: Merge "Use Is*() helpers to shorten code in the optimizing compiler."
Roland Levillain [Mon, 13 Oct 2014 11:43:10 +0000 (11:43 +0000)]
am f8e28f57: Merge "Use Is*() helpers to shorten code in the optimizing compiler."

* commit 'f8e28f575b1382e984edb2e8c9846a27a1bdea10':
  Use Is*() helpers to shorten code in the optimizing compiler.

9 years agoMerge "Use Is*() helpers to shorten code in the optimizing compiler."
Roland Levillain [Mon, 13 Oct 2014 11:36:10 +0000 (11:36 +0000)]
Merge "Use Is*() helpers to shorten code in the optimizing compiler."

9 years agoam f659bec2: Merge "Fix ScopedArenaAllocator::Reset() for Create()d allocators."
Vladimir Marko [Mon, 13 Oct 2014 10:16:50 +0000 (10:16 +0000)]
am f659bec2: Merge "Fix ScopedArenaAllocator::Reset() for Create()d allocators."

* commit 'f659bec20db45c809a891ff528fb6aecf2c76149':
  Fix ScopedArenaAllocator::Reset() for Create()d allocators.

9 years agoMerge "Fix ScopedArenaAllocator::Reset() for Create()d allocators."
Vladimir Marko [Mon, 13 Oct 2014 10:08:32 +0000 (10:08 +0000)]
Merge "Fix ScopedArenaAllocator::Reset() for Create()d allocators."

9 years agoHandlerize throw location in DumpJavaStack
Ian Rogers [Fri, 10 Oct 2014 22:57:19 +0000 (15:57 -0700)]
Handlerize throw location in DumpJavaStack

Handlerize this object and method during DumpJavaStack.
Bug: 17669899

(cherry picked from commit 79ffe35fa0784f26c2d25242ea1b3ce300a009cb)

Change-Id: Id090daaa2eef8cd445e52cbbe71b2e2ed7fef2fe

9 years agoART: Stash any exception before dumping a stack
Andreas Gampe [Fri, 3 Oct 2014 04:00:06 +0000 (21:00 -0700)]
ART: Stash any exception before dumping a stack

Dumping a managed stack entails dumping held locks, in the process
of which the verifier will be run. The verifier works under the
assumption that there were no exceptions when started. This
assumption is violated for example on certain JNI aborts.

The solution is to stash any pending exception before dumping the
stack, and re-installing it afterwards.

Bug: 17669899

(cherry picked from commit d87bc135dba41f0f21cf0018a3b2cb46809890d7)

Change-Id: Ic44780bad90a8e1ba80858c807e2bef3bf6651c6

9 years agoam b71c9d7a: Merge "Switch to C++11 style [[noreturn]]."
Ian Rogers [Sun, 12 Oct 2014 15:45:46 +0000 (15:45 +0000)]
am b71c9d7a: Merge "Switch to C++11 style [[noreturn]]."

* commit 'b71c9d7a6a26070d302b97a95a0fecc0acc73e87':
  Switch to C++11 style [[noreturn]].

9 years agoMerge "Switch to C++11 style [[noreturn]]."
Ian Rogers [Sun, 12 Oct 2014 15:34:28 +0000 (15:34 +0000)]
Merge "Switch to C++11 style [[noreturn]]."

9 years agoCheck for errors in ThreadGroupReference JDWP commands
Sebastien Hertz [Mon, 15 Sep 2014 17:21:30 +0000 (19:21 +0200)]
Check for errors in ThreadGroupReference JDWP commands

Returns INVALID_OBJECT error for null or invalid object. Also returns
INVALID_THREAD_GROUP error when the object is not a java.lang.ThreadGroup.

Removes unused Dbg::GetMainThreadGroupId method.

Bug: 17503230
(cherry picked from commit a06430c76981d545b5f2b64a7ef53c44c030cf73)

Change-Id: Ic39d3d2c45bf288fc22d908a3c90a3ca24f1c4d4

9 years agoam 3f5b8a1e: Merge "ART: Add smali-based run-test"
Ian Rogers [Sat, 11 Oct 2014 03:13:23 +0000 (03:13 +0000)]
am 3f5b8a1e: Merge "ART: Add smali-based run-test"

* commit '3f5b8a1e7dfdf010591e17396d1d126740c5706c':
  ART: Add smali-based run-test

9 years agoSwitch to C++11 style [[noreturn]].
Ian Rogers [Sat, 11 Oct 2014 03:05:39 +0000 (20:05 -0700)]
Switch to C++11 style [[noreturn]].

Also remove old comment about calls to Abort getting merged. We have few
LOG(FATAL)s so merging is less of an issue. Also, recompiling with O0 and
similar will avoid the optimization and we expect that for GDB debugging.

Change-Id: I840dc6f4b8511294be0e117c634ec15b745e7be5

9 years agoMerge "ART: Add smali-based run-test"
Ian Rogers [Sat, 11 Oct 2014 02:51:08 +0000 (02:51 +0000)]
Merge "ART: Add smali-based run-test"

9 years agoam eac27389: Merge "ART Runtime: Add movb ,yy fault handling"
Ian Rogers [Sat, 11 Oct 2014 02:24:53 +0000 (02:24 +0000)]
am eac27389: Merge "ART Runtime: Add movb ,yy fault handling"

* commit 'eac2738941bc603b8f9fea347b548bfc0c3e3f7a':
  ART Runtime: Add movb $xx,yy fault handling

9 years agoART: Add smali-based run-test
Andreas Gampe [Fri, 3 Oct 2014 23:15:37 +0000 (16:15 -0700)]
ART: Add smali-based run-test

Add run-test 800 for smali-based tests. To use, drop a smali file
into the src/ directory and add a TestCase in src/Main.java.

Bug: 17814475

Change-Id: Ica9eb830689862cb3a4ffa0019fbc447c01af744

9 years agoMerge "ART Runtime: Add movb $xx,yy fault handling"
Ian Rogers [Sat, 11 Oct 2014 01:24:47 +0000 (01:24 +0000)]
Merge "ART Runtime: Add movb $xx,yy fault handling"

9 years agoam 824e124c: Merge "Hold mutator lock in DdmSendHeapSegments for all spaces"
Mathieu Chartier [Fri, 10 Oct 2014 22:56:15 +0000 (22:56 +0000)]
am 824e124c: Merge "Hold mutator lock in DdmSendHeapSegments for all spaces"

* commit '824e124cf4757720f54efbdf667c07c1db27d4a6':
  Hold mutator lock in DdmSendHeapSegments for all spaces

9 years agoMerge "Hold mutator lock in DdmSendHeapSegments for all spaces"
Mathieu Chartier [Fri, 10 Oct 2014 22:47:08 +0000 (22:47 +0000)]
Merge "Hold mutator lock in DdmSendHeapSegments for all spaces"

9 years agoHold mutator lock in DdmSendHeapSegments for all spaces
Mathieu Chartier [Fri, 10 Oct 2014 19:45:50 +0000 (12:45 -0700)]
Hold mutator lock in DdmSendHeapSegments for all spaces

Previously we were releasing the mutator lock in DdmSendHeapSegments
and only reacquiring it for RosAlloc spaces. This was causing problems
since the HeapChunkCallback access object fields through mirror.

Bug: 17950534

(cherry picked from commit d6527cf8e824d9057f32755f2ff4bdcf46c7095b)

Change-Id: Idb307fd4c01450a07e3c9621e04d2aabf2c6a0b9

9 years agoam b7f1c067: Merge "Work around ICE bugs with MIPS GCC and O1."
Ian Rogers [Fri, 10 Oct 2014 22:33:02 +0000 (22:33 +0000)]
am b7f1c067: Merge "Work around ICE bugs with MIPS GCC and O1."

* commit 'b7f1c06737c14cccca91153c714f58d99c69adcc':
  Work around ICE bugs with MIPS GCC and O1.

9 years agoMerge "Work around ICE bugs with MIPS GCC and O1."
Ian Rogers [Fri, 10 Oct 2014 22:24:24 +0000 (22:24 +0000)]
Merge "Work around ICE bugs with MIPS GCC and O1."

9 years agoWork around ICE bugs with MIPS GCC and O1.
Ian Rogers [Fri, 10 Oct 2014 20:03:39 +0000 (13:03 -0700)]
Work around ICE bugs with MIPS GCC and O1.

Also, work around GCC warning bugs where array accesses with explicit
bounds checks are flagged as being out-of-bounds. Significantly, clean-up
the HandleScope so the array accesses don't appear out-of-bounds at compile
time.

Change-Id: I5d66567559cc1f97cd0aa02c0df8575ebadbfe3d

9 years agoam 6055bccd: Merge "Fix 2 new sets of clang compiler warnings."
Ian Rogers [Fri, 10 Oct 2014 20:30:54 +0000 (20:30 +0000)]
am 6055bccd: Merge "Fix 2 new sets of clang compiler warnings."

* commit '6055bccdffcda19542775c7042a06508cd8f90ca':
  Fix 2 new sets of clang compiler warnings.

9 years agoMerge "Fix 2 new sets of clang compiler warnings."
Ian Rogers [Fri, 10 Oct 2014 20:23:09 +0000 (20:23 +0000)]
Merge "Fix 2 new sets of clang compiler warnings."

9 years agoam b2a7ec2a: Merge "Disable 114-ParallelGC for GC stress testing."
Ian Rogers [Fri, 10 Oct 2014 19:56:17 +0000 (19:56 +0000)]
am b2a7ec2a: Merge "Disable 114-ParallelGC for GC stress testing."

* commit 'b2a7ec2ad3f24c4094185cbf87bd0a39f727ffe7':
  Disable 114-ParallelGC for GC stress testing.

9 years agoMerge "Disable 114-ParallelGC for GC stress testing."
Ian Rogers [Fri, 10 Oct 2014 19:48:22 +0000 (19:48 +0000)]
Merge "Disable 114-ParallelGC for GC stress testing."

9 years agoDisable 114-ParallelGC for GC stress testing.
Ian Rogers [Fri, 10 Oct 2014 19:39:31 +0000 (12:39 -0700)]
Disable 114-ParallelGC for GC stress testing.

Bug: 17387969
Change-Id: Ic50e9642468646c36afa5cfbe4050d24e9190ae6

9 years agoFix 2 new sets of clang compiler warnings.
Ian Rogers [Fri, 10 Oct 2014 18:02:11 +0000 (11:02 -0700)]
Fix 2 new sets of clang compiler warnings.

Fix issues that are flagged by -Wfloat-equal and -Wmissing-noreturn.
In the case of -Wfloat-equal the current cases in regular code are deliberate,
so the change is to silence the warning. For gtest code the appropriate fix is
to switch from EXPECT_EQ to EXPECT_(FLOAT|DOUBLE)_EQ.
The -Wmissing-noreturn warning isn't enabled due to a missing noreturn in
gtest. This issue has been reported to gtest.

Change-Id: Id84c70c21c542716c9ee0c41492e8ff8788c4ef8

9 years agoam a4fee49a: Don\'t call dlsym from signal context in signal chain
Dave Allison [Fri, 10 Oct 2014 15:42:04 +0000 (15:42 +0000)]
am a4fee49a: Don\'t call dlsym from signal context in signal chain

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

9 years agoFix ScopedArenaAllocator::Reset() for Create()d allocators.
Vladimir Marko [Fri, 10 Oct 2014 14:39:11 +0000 (15:39 +0100)]
Fix ScopedArenaAllocator::Reset() for Create()d allocators.

Change-Id: I88cbb329911ed489768772218b49b6f1756ffd86

9 years agoam acfbbd4d: Merge "Cleanup baseline register allocator."
Nicolas Geoffray [Fri, 10 Oct 2014 11:43:56 +0000 (11:43 +0000)]
am acfbbd4d: Merge "Cleanup baseline register allocator."

* commit 'acfbbd4df2fc1c79a7102587bebf398f95b5e5de':
  Cleanup baseline register allocator.

9 years agoMerge "Cleanup baseline register allocator."
Nicolas Geoffray [Fri, 10 Oct 2014 11:36:33 +0000 (11:36 +0000)]
Merge "Cleanup baseline register allocator."

9 years agoCleanup baseline register allocator.
Nicolas Geoffray [Thu, 9 Oct 2014 21:13:55 +0000 (22:13 +0100)]
Cleanup baseline register allocator.

- Use three arrays for blocking regsters instead of
  one and computing offsets in that array.]
- Don't pass blocked_registers_ to methods, just use the field.

Change-Id: Ib698564c31127c59b5a64c80f4262394b8394dc6

9 years agoam b76c5495: Merge "Fix code generation of materialized conditions."
Nicolas Geoffray [Fri, 10 Oct 2014 11:30:33 +0000 (11:30 +0000)]
am b76c5495: Merge "Fix code generation of materialized conditions."

* commit 'b76c5495c4879fcfa0866b1490031a3123baf9ee':
  Fix code generation of materialized conditions.

9 years agoMerge "Fix code generation of materialized conditions."
Nicolas Geoffray [Fri, 10 Oct 2014 11:22:50 +0000 (11:22 +0000)]
Merge "Fix code generation of materialized conditions."

9 years agoam 4471609d: Merge "Only watch location for BREAKPOINT event"
Sebastien Hertz [Fri, 10 Oct 2014 09:30:30 +0000 (09:30 +0000)]
am 4471609d: Merge "Only watch location for BREAKPOINT event"

* commit '4471609d86b7e846b26bebe3373707a10c222e71':
  Only watch location for BREAKPOINT event

9 years agoMerge "Only watch location for BREAKPOINT event"
Sebastien Hertz [Fri, 10 Oct 2014 08:22:18 +0000 (08:22 +0000)]
Merge "Only watch location for BREAKPOINT event"

9 years agoam 6b0518f6: Merge "Enable -Wimplicit-fallthrough."
Ian Rogers [Fri, 10 Oct 2014 06:38:27 +0000 (06:38 +0000)]
am 6b0518f6: Merge "Enable -Wimplicit-fallthrough."

* commit '6b0518f6cfa79b35c067d8bc4d50d054cfc6656c':
  Enable -Wimplicit-fallthrough.

9 years agoMerge "Enable -Wimplicit-fallthrough."
Ian Rogers [Fri, 10 Oct 2014 05:23:50 +0000 (05:23 +0000)]
Merge "Enable -Wimplicit-fallthrough."

9 years agoEnable -Wimplicit-fallthrough.
Ian Rogers [Fri, 10 Oct 2014 04:56:44 +0000 (21:56 -0700)]
Enable -Wimplicit-fallthrough.

Falling through switch cases on a clang build must now annotate the fallthrough
with the FALLTHROUGH_INTENDED macro.
Bug: 17731372

Change-Id: I836451cd5f96b01d1ababdbf9eef677fe8fa8324

9 years agoDon't call dlsym from signal context in signal chain
Dave Allison [Tue, 16 Sep 2014 17:01:01 +0000 (10:01 -0700)]
Don't call dlsym from signal context in signal chain

It is dangerous to call dlsym from within a signal context
since it takes a lock and can lead to a mutex reentry attempt if
timing is bad.

This change adds an initialization function to the signal chain
that calls dlsym for sigaction and sigprocmask from outside the
signal context (from Runtime::Init()).  The results are cached
in a static variable and used from within the signal context if
necessary.

However, tests don't necessarily call Runtime::Init() so we also
need to deal with the case where the signal chain is not initialized
and perform a lazy initialization from inside sigaction or sigprocmask.
This is always outside a signal context since we have not initialized
the runtime.

Bug: 1749857117896006

(cherry picked from commit cefcea838729287a04174664a76514dd793dd77d)

Change-Id: I9bf8540a1250eadf977ff9af249dbe1c73b5ac63

9 years agoam 8fa8c904: Merge "Fix object header size for baker read barrier."
Ian Rogers [Thu, 9 Oct 2014 23:55:25 +0000 (23:55 +0000)]
am 8fa8c904: Merge "Fix object header size for baker read barrier."

* commit '8fa8c904f7c783204a1dc9438429391d256658da':
  Fix object header size for baker read barrier.