OSDN Git Service

android-x86/art.git
10 years agoam ed9fe4ff: Merge "Avoid handle-less methods in ClassLinker::LinkInterfaceMethods()."
Hiroshi Yamauchi [Tue, 19 Aug 2014 22:15:31 +0000 (22:15 +0000)]
am ed9fe4ff: Merge "Avoid handle-less methods in ClassLinker::LinkInterfaceMethods()."

* commit 'ed9fe4ffd9516cfb01b53a3a2c81d3e223ee352c':
  Avoid handle-less methods in ClassLinker::LinkInterfaceMethods().

10 years agoam 64a88b25: am 38bd1e1b: ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test
Andreas Gampe [Tue, 19 Aug 2014 22:10:38 +0000 (22:10 +0000)]
am 64a88b25: am 38bd1e1b: ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test

* commit '64a88b25482180fdae5cba4b0feeaa176356b424':
  ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test

10 years agoam 38bd1e1b: ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test
Andreas Gampe [Tue, 19 Aug 2014 22:02:12 +0000 (22:02 +0000)]
am 38bd1e1b: ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test

* commit '38bd1e1b8aa39bdc6e67c5dc205cc8d294d985c5':
  ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test

10 years agoam 40be3b81: Merge "Make apps able to run with a failing patchoat"
Brian Carlstrom [Tue, 19 Aug 2014 21:24:18 +0000 (21:24 +0000)]
am 40be3b81: Merge "Make apps able to run with a failing patchoat"

* commit '40be3b816c860a42e2761e1a614762ea24d12a32':
  Make apps able to run with a failing patchoat

10 years agoam 57101be6: Merge "ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test"
Andreas Gampe [Tue, 19 Aug 2014 21:16:27 +0000 (21:16 +0000)]
am 57101be6: Merge "ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test"

* commit '57101be6db093d9d27776f77eb8880ae5bae9913':
  ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test

10 years agoART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test
Andreas Gampe [Mon, 18 Aug 2014 23:43:12 +0000 (16:43 -0700)]
ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test

On devices which support it, run all jni compiler tests also with
the Generic JNI infrastructure.

Fix art_quick_invoke_stub for ARM32 to enforce 16B stack alignment.
As the native convention does not require as much, the previous
code would keep it unaligned.

Bug: 17107929

(cherry picked from commit 6e498695b60f1532d2264ec6badb1cd6e10ecaa9)

Change-Id: I1481500ff7c627ab4e5bfbfd7245099a639aa049

10 years agoam e30100f1: Merge "ART: Set default visibility to protected"
Andreas Gampe [Tue, 19 Aug 2014 20:21:50 +0000 (20:21 +0000)]
am e30100f1: Merge "ART: Set default visibility to protected"

* commit 'e30100f164f8ac46f0428c28be87ad289adf4ac2':
  ART: Set default visibility to protected

10 years agoam 1a8f106d: am e22c03ce: Merge "ART: Set default visibility to protected" into lmp-dev
Andreas Gampe [Tue, 19 Aug 2014 19:33:58 +0000 (19:33 +0000)]
am 1a8f106d: am e22c03ce: Merge "ART: Set default visibility to protected" into lmp-dev

* commit '1a8f106d36539781f286b56fdecdc0de706b251a':
  ART: Set default visibility to protected

10 years agoam e22c03ce: Merge "ART: Set default visibility to protected" into lmp-dev
Andreas Gampe [Tue, 19 Aug 2014 19:25:22 +0000 (19:25 +0000)]
am e22c03ce: Merge "ART: Set default visibility to protected" into lmp-dev

* commit 'e22c03ceaa847e3b6c8fcb7ee9d838f61945cda7':
  ART: Set default visibility to protected

10 years agoam fd5a3f79: Merge "ART: More failure output on run-test"
Andreas Gampe [Tue, 19 Aug 2014 18:22:34 +0000 (18:22 +0000)]
am fd5a3f79: Merge "ART: More failure output on run-test"

* commit 'fd5a3f796797c32c0346d13589f25cfd8bc4e465':
  ART: More failure output on run-test

10 years agoam 82771c03: Merge "Check for constructor first when installing tracing stubs."
Jeff Hao [Tue, 19 Aug 2014 17:58:00 +0000 (17:58 +0000)]
am 82771c03: Merge "Check for constructor first when installing tracing stubs."

* commit '82771c03ac7e5ed01aec036ff894235bc4dd0cd4':
  Check for constructor first when installing tracing stubs.

10 years agoam 614fbb86: am 5afe466c: Check for constructor first when installing tracing stubs.
Jeff Hao [Tue, 19 Aug 2014 17:45:06 +0000 (17:45 +0000)]
am 614fbb86: am 5afe466c: Check for constructor first when installing tracing stubs.

* commit '614fbb8630351c8a69345fd7bc6bef08cefe3658':
  Check for constructor first when installing tracing stubs.

10 years agoam 5afe466c: Check for constructor first when installing tracing stubs.
Jeff Hao [Tue, 19 Aug 2014 17:35:59 +0000 (17:35 +0000)]
am 5afe466c: Check for constructor first when installing tracing stubs.

* commit '5afe466c027c6ac821bf7c9a88cd7de5260a639b':
  Check for constructor first when installing tracing stubs.

10 years agoCheck for constructor first when installing tracing stubs.
Jeff Hao [Tue, 19 Aug 2014 17:17:36 +0000 (10:17 -0700)]
Check for constructor first when installing tracing stubs.

Addresses comments in
https://android-review.googlesource.com/#/c/104383/ made after the commit.

Bug: 16386215
Change-Id: I0e59b8507f601fd6508fbda8d24dd3c98ead1537

10 years agoMerge "ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test"
Andreas Gampe [Tue, 19 Aug 2014 21:03:22 +0000 (21:03 +0000)]
Merge "ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test"

10 years agoART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test
Andreas Gampe [Mon, 18 Aug 2014 23:43:12 +0000 (16:43 -0700)]
ART: Fix ARM invoke stub, run Generic JNI in jni_compiler_test

On devices which support it, run all jni compiler tests also with
the Generic JNI infrastructure.

Fix art_quick_invoke_stub for ARM32 to enforce 16B stack alignment.
As the native convention does not require as much, the previous
code would keep it unaligned.

Bug: 17107929
Change-Id: Ibce423949846e447d2b0246d07973b6b717691ac

10 years agoMerge "ART: Set default visibility to protected" into lmp-dev
Andreas Gampe [Tue, 19 Aug 2014 19:16:29 +0000 (19:16 +0000)]
Merge "ART: Set default visibility to protected" into lmp-dev

10 years agoam 75dd9883: Merge "Fix JDWP event races"
Sebastien Hertz [Tue, 19 Aug 2014 12:22:30 +0000 (12:22 +0000)]
am 75dd9883: Merge "Fix JDWP event races"

* commit '75dd98835859ca98c9f98339da8b64640d09a175':
  Fix JDWP event races

10 years agoam 9be4be58: Merge "AArch64: Add tbz/tbnz and tst."
Vladimir Marko [Tue, 19 Aug 2014 10:06:47 +0000 (10:06 +0000)]
am 9be4be58: Merge "AArch64: Add tbz/tbnz and tst."

* commit '9be4be5882a05b3aa6ec822901ff4092203d8dc5':
  AArch64: Add tbz/tbnz and tst.

10 years agoam b71adf18: am 214f4f15: Merge "Fix JDWP event races" into lmp-dev
Sebastien Hertz [Tue, 19 Aug 2014 09:21:44 +0000 (09:21 +0000)]
am b71adf18: am 214f4f15: Merge "Fix JDWP event races" into lmp-dev

* commit 'b71adf18363d852f568b1ca125f5fdd468760e1f':
  Fix JDWP event races

10 years agoam 214f4f15: Merge "Fix JDWP event races" into lmp-dev
Sebastien Hertz [Tue, 19 Aug 2014 09:12:07 +0000 (09:12 +0000)]
am 214f4f15: Merge "Fix JDWP event races" into lmp-dev

* commit '214f4f15fe0137c285a05b3f70e52a211aecfdb5':
  Fix JDWP event races

10 years agoam 562f0ef6: Merge "Fix heap corruption and verification."
Mathieu Chartier [Tue, 19 Aug 2014 01:00:50 +0000 (01:00 +0000)]
am 562f0ef6: Merge "Fix heap corruption and verification."

* commit '562f0ef60bb1498fdf3c43fe747ba067ffe6ebed':
  Fix heap corruption and verification.

10 years agoam 5638b7ee: am 5a001b3e: Merge "AttachCurrentThread should only warn on missing...
Brian Carlstrom [Tue, 19 Aug 2014 00:56:42 +0000 (00:56 +0000)]
am 5638b7ee: am 5a001b3e: Merge "AttachCurrentThread should only warn on missing thread name if CheckJNI is enabled." into lmp-dev

* commit '5638b7ee01bb7e64662fcf4beffd14523488d6bd':
  AttachCurrentThread should only warn on missing thread name if CheckJNI is enabled.

10 years agoam 5a001b3e: Merge "AttachCurrentThread should only warn on missing thread name if...
Brian Carlstrom [Tue, 19 Aug 2014 00:48:48 +0000 (00:48 +0000)]
am 5a001b3e: Merge "AttachCurrentThread should only warn on missing thread name if CheckJNI is enabled." into lmp-dev

* commit '5a001b3e4a4b4d066fd987071eb38b2b97493807':
  AttachCurrentThread should only warn on missing thread name if CheckJNI is enabled.

10 years agoam 7df1754a: Merge "Really fix target gtest dependencies"
Brian Carlstrom [Mon, 18 Aug 2014 23:56:41 +0000 (23:56 +0000)]
am 7df1754a: Merge "Really fix target gtest dependencies"

* commit '7df1754ae17acd891995159fc50f3bb176b770dd':
  Really fix target gtest dependencies

10 years agoam 7968bfc8: Merge "AttachCurrentThread should only warn on missing thread name if...
Brian Carlstrom [Mon, 18 Aug 2014 23:56:40 +0000 (23:56 +0000)]
am 7968bfc8: Merge "AttachCurrentThread should only warn on missing thread name if CheckJNI is enabled."

* commit '7968bfc840c926fbb1e4955b165e6eeb67bcc3f5':
  AttachCurrentThread should only warn on missing thread name if CheckJNI is enabled.

10 years agoam 84438f89: am 6724d864: Fix heap corruption and verification.
Mathieu Chartier [Mon, 18 Aug 2014 23:50:28 +0000 (23:50 +0000)]
am 84438f89: am 6724d864: Fix heap corruption and verification.

* commit '84438f891c83a064b243d89e57b958770f86323d':
  Fix heap corruption and verification.

10 years agoam 6724d864: Fix heap corruption and verification.
Mathieu Chartier [Mon, 18 Aug 2014 23:41:25 +0000 (23:41 +0000)]
am 6724d864: Fix heap corruption and verification.

* commit '6724d8649ab73e4fb86c8014bda51b13bddf2f3f':
  Fix heap corruption and verification.

10 years agoMerge "Really fix target gtest dependencies"
Brian Carlstrom [Mon, 18 Aug 2014 23:42:43 +0000 (23:42 +0000)]
Merge "Really fix target gtest dependencies"

10 years agoFix heap corruption and verification.
Mathieu Chartier [Mon, 18 Aug 2014 22:02:59 +0000 (15:02 -0700)]
Fix heap corruption and verification.

There was a faulty assumption that space End() was always aligned to
card boundaries. This was true for all spaces other than the image
and resulted in heap corruption when the last object of the image
space contained a reference to an object in another space.

Also fixed an error where we called the pre GC verification post GC.

Bug: 17080623

Change-Id: I041ee564518f53b79c6e8dc2ad782a3152577a4e

10 years agoReally fix target gtest dependencies
Brian Carlstrom [Mon, 18 Aug 2014 23:07:10 +0000 (16:07 -0700)]
Really fix target gtest dependencies

In 64006834b26f7138131fac87c3b0973cda70e560 we started depending on
TARGET_CORE_JARS which are phony targets and undefined when using
"mm test-art-target".

Change-Id: I671c5d6068ff999782ad5f388f3077f4c1594884

10 years agoAttachCurrentThread should only warn on missing thread name if CheckJNI is enabled.
Brian Carlstrom [Mon, 18 Aug 2014 22:38:34 +0000 (15:38 -0700)]
AttachCurrentThread should only warn on missing thread name if CheckJNI is enabled.

Bug: 17108693
Change-Id: I346cc090e091605c552e5954d7ea1ca4874cea5f

10 years agoMerge "Make apps able to run with a failing patchoat"
Brian Carlstrom [Tue, 19 Aug 2014 21:11:18 +0000 (21:11 +0000)]
Merge "Make apps able to run with a failing patchoat"

10 years agoMake apps able to run with a failing patchoat
Alex Light [Thu, 14 Aug 2014 21:16:26 +0000 (14:16 -0700)]
Make apps able to run with a failing patchoat

Bug: 17000769

Change-Id: I0a1a4dc7f5d4bb268530840302ecfb1555231e05

10 years agoMerge "ART: Set default visibility to protected"
Andreas Gampe [Tue, 19 Aug 2014 20:05:38 +0000 (20:05 +0000)]
Merge "ART: Set default visibility to protected"

10 years agoART: Set default visibility to protected
Andreas Gampe [Wed, 13 Aug 2014 07:15:43 +0000 (00:15 -0700)]
ART: Set default visibility to protected

Set default visibility of symbols to protected. This allows the
linker to optimize internal calls and helps avoid plt calls.

Make almost all assembly stubs hidden, as -fvisibility does not
seem to apply to them. Change the assembly tests accordingly. Also
allows to clean up previous hacks to avoid plt calls.

Bug: 16974467

(cherry picked from commit 235e77bd9f19e4faefda109be40f8744f3a66f40)

Change-Id: I9030dcf6116251f434f94a2b08e56e12085af652

10 years agoMerge "ART: More failure output on run-test"
Andreas Gampe [Tue, 19 Aug 2014 18:13:41 +0000 (18:13 +0000)]
Merge "ART: More failure output on run-test"

10 years agoART: More failure output on run-test
Andreas Gampe [Tue, 19 Aug 2014 05:26:49 +0000 (22:26 -0700)]
ART: More failure output on run-test

Change-Id: Ifdf1516e950117069b3cfa58c4bda03281dad661

10 years agoMerge "Check for constructor first when installing tracing stubs."
Jeff Hao [Tue, 19 Aug 2014 17:47:41 +0000 (17:47 +0000)]
Merge "Check for constructor first when installing tracing stubs."

10 years agoCheck for constructor first when installing tracing stubs.
Jeff Hao [Tue, 19 Aug 2014 17:17:36 +0000 (10:17 -0700)]
Check for constructor first when installing tracing stubs.

Addresses comments in
https://android-review.googlesource.com/#/c/104383/ made after the commit.

Bug: 16386215

(cherry picked from commit 5afe466c027c6ac821bf7c9a88cd7de5260a639b)

Change-Id: Ic81161d0b96a0633c4c534a93172cff59312fa61

10 years agoMerge "Fix heap corruption and verification."
Mathieu Chartier [Tue, 19 Aug 2014 00:44:50 +0000 (00:44 +0000)]
Merge "Fix heap corruption and verification."

10 years agoFix heap corruption and verification.
Mathieu Chartier [Mon, 18 Aug 2014 22:02:59 +0000 (15:02 -0700)]
Fix heap corruption and verification.

There was a faulty assumption that space End() was always aligned to
card boundaries. This was true for all spaces other than the image
and resulted in heap corruption when the last object of the image
space contained a reference to an object in another space.

Also fixed an error where we called the pre GC verification post GC.

Bug: 17080623

(cherry picked from commit 6724d8649ab73e4fb86c8014bda51b13bddf2f3f)

Change-Id: I931149421c738653863eb6105dfdf7ecd750601a

10 years agoMerge "AttachCurrentThread should only warn on missing thread name if CheckJNI is...
Brian Carlstrom [Mon, 18 Aug 2014 23:42:35 +0000 (23:42 +0000)]
Merge "AttachCurrentThread should only warn on missing thread name if CheckJNI is enabled."

10 years agoam 76bc718d: Merge "[MIPS] Fix the code generated by GenSelectConst32"
Andreas Gampe [Mon, 18 Aug 2014 20:10:55 +0000 (20:10 +0000)]
am 76bc718d: Merge "[MIPS] Fix the code generated by GenSelectConst32"

* commit '76bc718dc2cf0279ec5afd08c3a82b6ad61756d8':
  [MIPS] Fix the code generated by GenSelectConst32

10 years agoam 92fd388b: Merge "Check that we don\'t accidentally invoke compiled code when ...
Hiroshi Yamauchi [Mon, 18 Aug 2014 19:34:21 +0000 (19:34 +0000)]
am 92fd388b: Merge "Check that we don\'t accidentally invoke compiled code when -Xint."

* commit '92fd388b9bb433a54e9e7a4e6ab9415f59d8956c':
  Check that we don't accidentally invoke compiled code when -Xint.

10 years agoam 506a79fd: Merge "Optimized instrumentation listener handling"
Ian Rogers [Mon, 18 Aug 2014 19:34:20 +0000 (19:34 +0000)]
am 506a79fd: Merge "Optimized instrumentation listener handling"

* commit '506a79fd8a698911b5a82575eed59b9320ae97cd':
  Optimized instrumentation listener handling

10 years agoam 90b180ee: Merge "ART: Do not recursively abort when visiting locks in a bad state"
Andreas Gampe [Mon, 18 Aug 2014 16:52:21 +0000 (16:52 +0000)]
am 90b180ee: Merge "ART: Do not recursively abort when visiting locks in a bad state"

* commit '90b180ee1edd17b8dca34ea9e58624818d2ee15a':
  ART: Do not recursively abort when visiting locks in a bad state

10 years agoam 9d352c06: Merge "ART: Avoid expensive class lookup in compiler driver"
Andreas Gampe [Mon, 18 Aug 2014 16:52:20 +0000 (16:52 +0000)]
am 9d352c06: Merge "ART: Avoid expensive class lookup in compiler driver"

* commit '9d352c06d8b6e9ea6343cc4f361a3309c2ce7ebe':
  ART: Avoid expensive class lookup in compiler driver

10 years agoam 2311e3db: am dfa7a6c8: Disable load/store elimination. DO NOT MERGE
Vladimir Marko [Mon, 18 Aug 2014 13:27:54 +0000 (13:27 +0000)]
am 2311e3db: am dfa7a6c8: Disable load/store elimination. DO NOT MERGE

* commit '2311e3db454dcad1546a1b67f0443b3b742b5d7f':
  Disable load/store elimination. DO NOT MERGE

10 years agoam dfa7a6c8: Disable load/store elimination. DO NOT MERGE
Vladimir Marko [Mon, 18 Aug 2014 13:20:29 +0000 (13:20 +0000)]
am dfa7a6c8: Disable load/store elimination. DO NOT MERGE

* commit 'dfa7a6c8711623bf20aad58f57ae980b497ef4d7':
  Disable load/store elimination. DO NOT MERGE

10 years agoDisable load/store elimination. DO NOT MERGE
Vladimir Marko [Mon, 18 Aug 2014 10:42:51 +0000 (11:42 +0100)]
Disable load/store elimination. DO NOT MERGE

The optimization has several issues and it has been
effectively disabled by
    https://android-review.googlesource.com/103511
Disable it completely to avoid wasting compilation time.

Bug: 16862804
Change-Id: I42f69ae64170dc44f5fd6455b6a51c9bd3f93672

10 years agoam 76288481: Merge "Update ziparchive usage to the new API."
Piotr Jastrzebski [Mon, 18 Aug 2014 09:12:34 +0000 (09:12 +0000)]
am 76288481: Merge "Update ziparchive usage to the new API."

* commit '7628848182492bdcdcd7e4161680a4e24ce9486e':
  Update ziparchive usage to the new API.

10 years agoam d75383af: am 5e8a63ae: Merge "ART: Do not recursively abort when visiting locks...
Andreas Gampe [Mon, 18 Aug 2014 05:19:46 +0000 (05:19 +0000)]
am d75383af: am 5e8a63ae: Merge "ART: Do not recursively abort when visiting locks in a bad state" into lmp-dev

* commit 'd75383af2f0843ecd2f493fd64b4eb38630c6071':
  ART: Do not recursively abort when visiting locks in a bad state

10 years agoam 5e8a63ae: Merge "ART: Do not recursively abort when visiting locks in a bad state...
Andreas Gampe [Mon, 18 Aug 2014 05:12:55 +0000 (05:12 +0000)]
am 5e8a63ae: Merge "ART: Do not recursively abort when visiting locks in a bad state" into lmp-dev

* commit '5e8a63ae39cb5db996229c6c4a1a21a4b8dec5a2':
  ART: Do not recursively abort when visiting locks in a bad state

10 years agoam 73386e5e: am d84f916d: ART: Avoid expensive class lookup in compiler driver
Andreas Gampe [Sun, 17 Aug 2014 09:54:48 +0000 (09:54 +0000)]
am 73386e5e: am d84f916d: ART: Avoid expensive class lookup in compiler driver

* commit '73386e5e0358a43c18bd0952a36ef5d4f89ed02b':
  ART: Avoid expensive class lookup in compiler driver

10 years agoam d84f916d: ART: Avoid expensive class lookup in compiler driver
Andreas Gampe [Sun, 17 Aug 2014 09:39:32 +0000 (09:39 +0000)]
am d84f916d: ART: Avoid expensive class lookup in compiler driver

* commit 'd84f916d35bb0dc74d7daa075b883e5ee1ce1109':
  ART: Avoid expensive class lookup in compiler driver

10 years agoART: Avoid expensive class lookup in compiler driver
Andreas Gampe [Sat, 16 Aug 2014 05:35:46 +0000 (22:35 -0700)]
ART: Avoid expensive class lookup in compiler driver

When we are not compiling multidex, avoid an expensive by-descriptor
lookup for classes when deciding whether to skip compilation.

Bug: 17072698
Change-Id: I19bcb2a2928207fcae0badd466cdc52945bd37c4

10 years agoMerge "Fix JDWP event races"
Sebastien Hertz [Tue, 19 Aug 2014 12:09:20 +0000 (12:09 +0000)]
Merge "Fix JDWP event races"

10 years agoFix JDWP event races
Sebastien Hertz [Mon, 18 Aug 2014 17:26:39 +0000 (19:26 +0200)]
Fix JDWP event races

Fix a race where the JDWP connection could be closed before the VM_DEATH event
is sent during runtime shutdown.

Fix potential race where we could wait forever for the JDWP thread to establish
connection.

Bug: 16720689

(cherry picked from commit d8b3537b89fa68599534a65afc3b272639cd4a75)

Change-Id: I4b8996ade6a38fa8f7f23c3000b7184b162907d7

10 years agoMerge "AArch64: Add tbz/tbnz and tst."
Vladimir Marko [Tue, 19 Aug 2014 09:58:50 +0000 (09:58 +0000)]
Merge "AArch64: Add tbz/tbnz and tst."

10 years agoAArch64: Add tbz/tbnz and tst.
Zheng Xu [Mon, 18 Aug 2014 09:28:22 +0000 (17:28 +0800)]
AArch64: Add tbz/tbnz and tst.

Since the branch offset supported by tbz/tbnz is quite small(-32k ~ +32k),
it will be replaced by tst and beq/bneq in the fix-up stage if the branch
offset is too large.

Change-Id: I4cace06bec6425e0f2e1f5f7c471eec08d06bca6

10 years agoMerge "Update ziparchive usage to the new API."
Piotr Jastrzebski [Mon, 18 Aug 2014 08:27:04 +0000 (08:27 +0000)]
Merge "Update ziparchive usage to the new API."

10 years agoMerge "AttachCurrentThread should only warn on missing thread name if CheckJNI is...
Brian Carlstrom [Tue, 19 Aug 2014 00:42:52 +0000 (00:42 +0000)]
Merge "AttachCurrentThread should only warn on missing thread name if CheckJNI is enabled." into lmp-dev

10 years agoAttachCurrentThread should only warn on missing thread name if CheckJNI is enabled.
Brian Carlstrom [Mon, 18 Aug 2014 22:38:34 +0000 (15:38 -0700)]
AttachCurrentThread should only warn on missing thread name if CheckJNI is enabled.

Bug: 17108693

(cherry picked from commit 3ea69c0abce1b81b3c45033867d49b00e6d6b709)

Change-Id: Ide8158cc3e12e604f4fa344cd881fe6f68476ab7

10 years agoMerge "Fix JDWP event races" into lmp-dev
Sebastien Hertz [Tue, 19 Aug 2014 09:05:47 +0000 (09:05 +0000)]
Merge "Fix JDWP event races" into lmp-dev

10 years agoFix JDWP event races
Sebastien Hertz [Mon, 18 Aug 2014 17:26:39 +0000 (19:26 +0200)]
Fix JDWP event races

Fix a race where the JDWP connection could be closed before the VM_DEATH event
is sent during runtime shutdown.

Fix potential race where we could wait forever for the JDWP thread to establish
connection.

Bug: 16720689

Change-Id: I227e0a15a2fd17d7bfe2a66a35d719d558fcd32d

10 years agoMerge "Optimized instrumentation listener handling"
Ian Rogers [Mon, 18 Aug 2014 18:22:03 +0000 (18:22 +0000)]
Merge "Optimized instrumentation listener handling"

10 years agoOptimized instrumentation listener handling
Daniel Mihalyi [Mon, 18 Aug 2014 16:45:31 +0000 (18:45 +0200)]
Optimized instrumentation listener handling

Some instrumentation listener lists may be modified while iterating
over the list to deliver an instrumentation event. Therefore the
previous implementation copied the list of listeners before starting
the iteration.

This new implementation only copies the list of instrumentation
listeners when the list is changed. Instances of the list are
reference counted using std::shared_ptr<>.

Change-Id: I1b84db1f2042836dc1110925243f49e5790156d6

10 years agoMerge "ART: Avoid expensive class lookup in compiler driver"
Andreas Gampe [Mon, 18 Aug 2014 16:40:13 +0000 (16:40 +0000)]
Merge "ART: Avoid expensive class lookup in compiler driver"

10 years agoART: Avoid expensive class lookup in compiler driver
Andreas Gampe [Sat, 16 Aug 2014 05:35:46 +0000 (22:35 -0700)]
ART: Avoid expensive class lookup in compiler driver

When we are not compiling multidex, avoid an expensive by-descriptor
lookup for classes when deciding whether to skip compilation.

Bug: 17072698

(cherry picked from commit d84f916d35bb0dc74d7daa075b883e5ee1ce1109)

Change-Id: I19bcb2a2928207fcae0badd466cdc52945bd37c4

10 years agoMerge "[MIPS] Fix the code generated by GenSelectConst32"
Andreas Gampe [Mon, 18 Aug 2014 20:00:14 +0000 (20:00 +0000)]
Merge "[MIPS] Fix the code generated by GenSelectConst32"

10 years agoMerge "Check that we don't accidentally invoke compiled code when -Xint."
Hiroshi Yamauchi [Mon, 18 Aug 2014 18:53:39 +0000 (18:53 +0000)]
Merge "Check that we don't accidentally invoke compiled code when -Xint."

10 years agoCheck that we don't accidentally invoke compiled code when -Xint.
Hiroshi Yamauchi [Sat, 16 Aug 2014 00:11:12 +0000 (17:11 -0700)]
Check that we don't accidentally invoke compiled code when -Xint.

The heap poisoning breakge (b/17018234) would have been detected with
this check.

Bug: 17018234
Change-Id: If4827ea1b02396d41012f0955e55c887387a0565

10 years agoMerge "ART: Do not recursively abort when visiting locks in a bad state"
Andreas Gampe [Mon, 18 Aug 2014 16:41:58 +0000 (16:41 +0000)]
Merge "ART: Do not recursively abort when visiting locks in a bad state"

10 years agoART: Do not recursively abort when visiting locks in a bad state
Andreas Gampe [Sat, 16 Aug 2014 20:41:10 +0000 (13:41 -0700)]
ART: Do not recursively abort when visiting locks in a bad state

This avoids a nested abort in VisitLocks.

Bug: 1708062116382675

(cherry picked from commit 760172c3ccd6e75f6f1a89d8006934e8ffb1303e)

Change-Id: Id604976ac9dcac0e319fb25cab4d2cbc98d7ee24

10 years agoMerge "Avoid handle-less methods in ClassLinker::LinkInterfaceMethods()."
Hiroshi Yamauchi [Tue, 19 Aug 2014 21:58:24 +0000 (21:58 +0000)]
Merge "Avoid handle-less methods in ClassLinker::LinkInterfaceMethods()."

10 years agoAvoid handle-less methods in ClassLinker::LinkInterfaceMethods().
Hiroshi Yamauchi [Tue, 19 Aug 2014 20:10:36 +0000 (13:10 -0700)]
Avoid handle-less methods in ClassLinker::LinkInterfaceMethods().

There were some handle-less methods in local variables across
potential GC points.

Bug: 12687968

Change-Id: I786fbaadf7a52e98194080c67c90fc1c35060d59

10 years agoMerge "ART: Do not recursively abort when visiting locks in a bad state" into lmp-dev
Andreas Gampe [Mon, 18 Aug 2014 05:06:15 +0000 (05:06 +0000)]
Merge "ART: Do not recursively abort when visiting locks in a bad state" into lmp-dev

10 years agoART: Do not recursively abort when visiting locks in a bad state
Andreas Gampe [Sat, 16 Aug 2014 20:41:10 +0000 (13:41 -0700)]
ART: Do not recursively abort when visiting locks in a bad state

This avoids a nested abort in VisitLocks.

Bug: 1708062116382675
Change-Id: Id604976ac9dcac0e319fb25cab4d2cbc98d7ee24

10 years agoam aa1ed01d: Merge "ART source line debug info in OAT files"
Ian Rogers [Fri, 15 Aug 2014 23:35:16 +0000 (23:35 +0000)]
am aa1ed01d: Merge "ART source line debug info in OAT files"

* commit 'aa1ed01d119ee6d93e6254789c79246e91fcec32':
  ART source line debug info in OAT files

10 years agoam c28d8a6f: Merge "x86_64: Use RegClassBySize() for field accesses"
Ian Rogers [Fri, 15 Aug 2014 23:22:59 +0000 (23:22 +0000)]
am c28d8a6f: Merge "x86_64: Use RegClassBySize() for field accesses"

* commit 'c28d8a6f0fbfbec8993854b1a9be08af7d506e7b':
  x86_64: Use RegClassBySize() for field accesses

10 years agoam 2b2148e8: Merge "Tidy up monitor comments."
Ian Rogers [Fri, 15 Aug 2014 22:13:31 +0000 (22:13 +0000)]
am 2b2148e8: Merge "Tidy up monitor comments."

* commit '2b2148e89ac3852f29b96c3d0629d3344229ba00':
  Tidy up monitor comments.

10 years agoMerge "x86_64: Use RegClassBySize() for field accesses"
Ian Rogers [Fri, 15 Aug 2014 23:14:01 +0000 (23:14 +0000)]
Merge "x86_64: Use RegClassBySize() for field accesses"

10 years agoam de941877: am ebee8de7: Fix bugs in the x86 and arm versions of generic JNI.
Nicolas Geoffray [Fri, 15 Aug 2014 21:16:38 +0000 (21:16 +0000)]
am de941877: am ebee8de7: Fix bugs in the x86 and arm versions of generic JNI.

* commit 'de94187722a762aab48cc1ca28e959d481116ee5':
  Fix bugs in the x86 and arm versions of generic JNI.

10 years agoam a0d73331: (-s ours) am 9c290012: Execute an application even when dex2oat crashes.
Nicolas Geoffray [Fri, 15 Aug 2014 21:16:38 +0000 (21:16 +0000)]
am a0d73331: (-s ours) am 9c290012: Execute an application even when dex2oat crashes.

* commit 'a0d733319bfa3293e4e51db28832022b96f8620d':
  Execute an application even when dex2oat crashes.

10 years agoam 02d4602b: am 378fe3d3: Merge "Make Monitor::Wait more robust to spurious Inflate...
Ian Rogers [Fri, 15 Aug 2014 20:59:04 +0000 (20:59 +0000)]
am 02d4602b: am 378fe3d3: Merge "Make Monitor::Wait more robust to spurious Inflate failures." into lmp-dev

* commit '02d4602bc98f3214c721f7a5787a3cf1dc670700':
  Make Monitor::Wait more robust to spurious Inflate failures.

10 years agoam 220dfee8: am bb6eccca: Merge "Use handle in one case that spans a gc-point." into...
Mathieu Chartier [Fri, 15 Aug 2014 20:58:33 +0000 (20:58 +0000)]
am 220dfee8: am bb6eccca: Merge "Use handle in one case that spans a gc-point." into lmp-dev

* commit '220dfee8bc87789d4b2be6352541d5e5770cb4cb':
  Use handle in one case that spans a gc-point.

10 years agoam 574760b6: am 95b4c65d: Prevent stubs from being installed in java.lang.reflect...
Jeff Hao [Fri, 15 Aug 2014 20:58:30 +0000 (20:58 +0000)]
am 574760b6: am 95b4c65d: Prevent stubs from being installed in java.lang.reflect.Proxy.<init>.

* commit '574760b603d27a42f3eacee3a1c7368faf61a18b':
  Prevent stubs from being installed in java.lang.reflect.Proxy.<init>.

10 years agoam 549c9b17: am 4bf8d11d: Fix proxy tracing and enable tests that now work with tracing.
Jeff Hao [Fri, 15 Aug 2014 20:58:30 +0000 (20:58 +0000)]
am 549c9b17: am 4bf8d11d: Fix proxy tracing and enable tests that now work with tracing.

* commit '549c9b1776c03789699f0fa6b7b0c90d7fcca019':
  Fix proxy tracing and enable tests that now work with tracing.

10 years agoresolved conflicts for merge of 549c9b17 to lmp-dev-plus-aosp
Jeff Hao [Fri, 15 Aug 2014 20:54:24 +0000 (13:54 -0700)]
resolved conflicts for merge of 549c9b17 to lmp-dev-plus-aosp

Change-Id: Icea7763c830aeefa02d6a86c960c4b41148d397b

10 years agoam ebee8de7: Fix bugs in the x86 and arm versions of generic JNI.
Nicolas Geoffray [Fri, 15 Aug 2014 19:39:31 +0000 (19:39 +0000)]
am ebee8de7: Fix bugs in the x86 and arm versions of generic JNI.

* commit 'ebee8de725d5fa83483642786b19ea453d865762':
  Fix bugs in the x86 and arm versions of generic JNI.

10 years agoam 9c290012: Execute an application even when dex2oat crashes.
Nicolas Geoffray [Fri, 15 Aug 2014 19:39:31 +0000 (19:39 +0000)]
am 9c290012: Execute an application even when dex2oat crashes.

* commit '9c290012b7f505ae1943ab87236f775b97a46e2d':
  Execute an application even when dex2oat crashes.

10 years agoam 9dcf75c8: Merge "Make gdb fixup work with multiple DWARF Compilation Units"
Brian Carlstrom [Fri, 15 Aug 2014 19:26:03 +0000 (19:26 +0000)]
am 9dcf75c8: Merge "Make gdb fixup work with multiple DWARF Compilation Units"

* commit '9dcf75c80187504ec88e7ef91d64a6a68279eb9d':
  Make gdb fixup work with multiple DWARF Compilation Units

10 years agoFix bugs in the x86 and arm versions of generic JNI.
Nicolas Geoffray [Wed, 13 Aug 2014 02:40:45 +0000 (03:40 +0100)]
Fix bugs in the x86 and arm versions of generic JNI.

Also fix the run script of 116-nodex2oat to use the non-prebuild
script for target.

Bug: 17000769

(cherry-picked from commit 54accbca0b549b1b1ad3ef09655dad438bc1e104)

Change-Id: I439fcd710fb8bb408f3288ff8fb34fef23890adb

10 years agoExecute an application even when dex2oat crashes.
Nicolas Geoffray [Tue, 22 Jul 2014 09:48:00 +0000 (10:48 +0100)]
Execute an application even when dex2oat crashes.

Bug: 17000769

(cherry picked from commit 4fcdc94d22a4608e355aa8df36240181149d10e8)

Change-Id: Iccb1fec94fe64ce4c3097510952f275482b86aa9

10 years agoMerge "Make gdb fixup work with multiple DWARF Compilation Units"
Brian Carlstrom [Fri, 15 Aug 2014 19:05:09 +0000 (19:05 +0000)]
Merge "Make gdb fixup work with multiple DWARF Compilation Units"

10 years agoam ee736b29: Merge "Make Monitor::Wait more robust to spurious Inflate failures."
Ian Rogers [Fri, 15 Aug 2014 18:52:43 +0000 (18:52 +0000)]
am ee736b29: Merge "Make Monitor::Wait more robust to spurious Inflate failures."

* commit 'ee736b29675455ab0be615581145aa239ce7a6b3':
  Make Monitor::Wait more robust to spurious Inflate failures.

10 years agoMerge "ART source line debug info in OAT files"
Ian Rogers [Fri, 15 Aug 2014 23:27:29 +0000 (23:27 +0000)]
Merge "ART source line debug info in OAT files"

10 years agoART source line debug info in OAT files
Yevgeny Rouban [Fri, 8 Aug 2014 09:29:38 +0000 (16:29 +0700)]
ART source line debug info in OAT files

OAT files have source line information enough for ART runtime needs like
jump to/from interpreter and thread suspension. But this information
is not enough for finer grained source level debugging and low-level
profiling (VTune or perf).

This patch adds to OAT files two additional sections:
.debug_line - DWARF formatted Elf32 section with detailed source line
              information (mapping from native PC to Java source lines).

In addition to the debugging symbols added using the dex2oat option
--include-debug-symbols, the source line information is added to
the section .debug_line.

The source line info can be read by many Elf reading tools like objdump,
readelf, dwarfdump, gdb, perf, VTune, ...

gdb can use this debug line information in x86. In 64-bit mode
the information can be used if the oat file is mapped in the lower
address space (address has higher 32 bits zeroed). Relocation works.

Testing:
1. art/test/run-test --host --gdb [--64] 001-HelloWorld
2. in gdb: break Main.java:19
3. in gdb: break Runtime.java:111
4. in gdb: run  - stops at void java.lang.Runtime.<init>()
5. in gdb: backtrace  - shows call stack down to main()
6. in gdb: continue - stops at void Main.main() (only in 32-bit mode)
7. in gdb: backtrace  - shows call stack down to main()
8. objdump -W <oat-file> - addresses are from VMA range of .text
   section reported by objdump -h <file>
9. dwarfdump -ka <oat-file> - no errors expected

Size of aosp-x86-eng boot.oat increased by 11% from 80.5Mb to 89.2Mb
with two sections added .debug_line (7.2Mb) and .rel.debug (1.5Mb).

Change-Id: Ib8828832686e49782a63d5529008ff4814ed9cda
Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
10 years agoMerge "Tidy up monitor comments."
Ian Rogers [Fri, 15 Aug 2014 21:47:37 +0000 (21:47 +0000)]
Merge "Tidy up monitor comments."